element-ui: template模板里面的scope
摘要:在使用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
阅读(3429)
推荐(0)
element-ui:table循环列表时怎么匹配后台给的字段
摘要:在使用element-ui的table的时候,后台返回的字段比如性别,返回sex:0,需要前端展示的时候自己匹配为汉字,展示方法有2种: 方法一: <el-table-column prop="sex" :formatter="formatter" align="left" show-overflo
阅读全文
posted @
2020-06-11 16:39
liumcb
阅读(1228)
推荐(0)
element-ui:table自定义列宽 和 设置百分比宽度
摘要:今天在使用element-ui创建列表的时候,有一个小坑,就是循环列表的时候怎么自定义列表宽度: 1、先自定义表头的columns data() { return { columns: [ { id: "menuName", text: "菜单名称", prop: "menuName", width
阅读全文
posted @
2020-06-11 11:34
liumcb
阅读(21463)
推荐(1)