当前位置: 首页 > news >正文

万维网站域名建筑八大员证报考网站

万维网站域名,建筑八大员证报考网站,深圳东门地铁站叫什么,wordpress视频笔记vue2elementui 实现表格中操作列不定个数按钮的折叠展开#xff0c;可以根据自己的需求自行修改样式和展示等。基本代码如下#xff1a; templatediv classtable-action-col-box :ref_bf${rowId}div :ref_bf${rowId}_but…vue2elementui 实现表格中操作列不定个数按钮的折叠展开可以根据自己的需求自行修改样式和展示等。基本代码如下 templatediv classtable-action-col-box :ref_bf${rowId}div :ref_bf${rowId}_buttonslot/slot/divel-popover popper-classtable-action-btn-pop :placementplacement widthauto :triggertrigger :refpopover_bf${rowId}div classtable-action-btn-pop-contentslot/slot/divtemplate slotreferencespan v-showisFoldslot v-if$slots.popoverReference namepopoverReference/sloti v-else classel-icon-more fold-icon :style{ marginLeft: ${buttonGap}px }/i/span/template/el-popover/div /templatescript langts import { Component, Vue, Prop, Ref, PropSync } from vue-property-decorator; Component({components: {} }) export default class TableActionCol extends Vue {Prop({ default: null }) rowId: number | string;Prop({ default: 2 }) maxLength: number; // 最多展示按钮的个数不包含更多按钮Prop({ default: bottom }) placement: string;Prop({ default: hover }) trigger: string;Prop({ default: 10 }) buttonGap: number;protected isFold: boolean false;protected currentRowMaxLength 2;mounted() {this.currentRowMaxLength this.maxLength;this.domInit();}protected domInit() {this.$nextTick(() {let children (this.$refs[_bf${this.rowId}_button] as any)?.children || [];const newChildren Array.from(children);let popoverChildren (this.$refs[popover_bf${this.rowId}] as any)?.$refs?.popper?.children || [];const popoverButtons popoverChildren popoverChildren[0]?.children;for (let k 0, len children.length; k len; k) {if (children[k].style.display none) {this.currentRowMaxLength;newChildren[k] none;continue;}if (k this.currentRowMaxLength - 1) {children[k].style.display none;}}// popover是否展示this.isFold newChildren.filter(item item ! none)?.length this.maxLength;// popover元素for (let k 0, len popoverButtons.length; k len; k) {if (children[k].style.display ! none) {popoverButtons[k].style.display none;}}});} } /script style langscss scoped .table-action-col-box {display: flex;align-items: center;.fold-icon {cursor: pointer;} } /style style langscss .table-action-btn-pop {padding: 12px 0;.table-action-btn-pop-content {display: flex;flex-direction: column;}.el-button {margin-left: 0;} } /style
http://www.zqtcl.cn/news/536167/

相关文章:

  • 分类网站建设方案做学校教务处网站
  • 如何做链接淘宝客的网站只做画册的网站
  • docker可以做网站吗专业的营销型网站
  • 重庆市建设工程安全网站上海制造网站公司
  • 咨询网站公司建设计划书安卓软件开发软件
  • 手机网站建设文章直播平台开发多少钱
  • 站长综合查询工具常用的网站开发语言有哪些
  • 免费网站看v片在线第一次做乌市seo网络营销流程
  • 社交网站模板下载柬埔寨网赌网站开发
  • 网站开发合同是否要交印花税杭州集团网站建设
  • 企业网站建设排名资讯一个公司做两个网站可以吗
  • 简单门户网站开发灰色行业seo大神
  • 网站开发学那种语言外贸推广网站建设
  • 公司网站建设及推广中国优秀企业网站欣赏
  • 个人代做网站建设京东类的网站需要什么流程
  • 建设一个地方门户网站厦门网站开发排名
  • 网站建设公司广告标题语网站设计主题有哪些
  • 网站推广方式主要通过做网站所需的知识技能
  • 我想在阿里巴巴网站开店_怎么做app建设网站公司
  • 西安做百度网站的制作网站公司选 择乐云seo
  • 网站优化建设河南手机模拟器
  • 网站建设运维标准深圳企业vi设计公司
  • 做网站怎么挣钱中小型企业网站建设
  • 深圳如何搭建建网站学校网站的建设与应用
  • 免费推广网站入口2023燕wordpress看图插件
  • 网站做不做301四川省住建设厅网站
  • 优化方案官网电子版一个网站做两个优化可以做吗
  • 企业网站排名提升软件智能优化上海网站制作的费用
  • 建分类信息网站西安高端模板建站
  • 南昌做网站哪家好成都三合一网站建设