随笔分类 - vue-element-admin
摘要:js处理 //this.newTableData 数组 this.newTableData.map((item,index)=>{ //item.label 数组 if(item.label){ item.label = item.label.join(','); } }) element UI t
阅读全文
摘要:效果图如下: 代码如下: <template> <div class="con-main"> <div class="con-list"> <!-- 日历 --> <el-calendar> <!-- 插槽 --> <template slot="dateCell" slot-scope="{dat
阅读全文
摘要:效果如下: 首先:在table上加:span-method="spanMethod" 其次: methods中加两个方法 dataPretreatment() { //表格数据列合并预处理,生成一个与行数相同的数组记录每一行设置的合并数 // 如果是第一条记录(索引为0),向数组中加入1,并设置索引
阅读全文
摘要:报错上图所示, Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed p
阅读全文
摘要:解决办法,需给el-dialog 加上 append-to-body 代码如下: <el-dialog title="提示" append-to-body style="z-index:3000" :visible.sync="infoDialog" width="30%" :before-clos
阅读全文