摘要: 在使用element-ui的时候,经常见有插入 template slot-scope="scope" <template slot-scope="scope"> <span v-else>{{scope.row[scope.column.property]}}</span> </template> 阅读全文
posted @ 2020-06-11 16:45 liumcb 阅读(3317) 评论(0) 推荐(0) 编辑
摘要: 在使用element-ui的table的时候,后台返回的字段比如性别,返回sex:0,需要前端展示的时候自己匹配为汉字,展示方法有2种: 方法一: <el-table-column prop="sex" :formatter="formatter" align="left" show-overflo 阅读全文
posted @ 2020-06-11 16:39 liumcb 阅读(1145) 评论(0) 推荐(0) 编辑
摘要: 今天在使用element-ui创建列表的时候,有一个小坑,就是循环列表的时候怎么自定义列表宽度: 1、先自定义表头的columns data() { return { columns: [ { id: "menuName", text: "菜单名称", prop: "menuName", width 阅读全文
posted @ 2020-06-11 11:34 liumcb 阅读(20419) 评论(0) 推荐(1) 编辑