摘要: 后台管理经常会用到表格,一开始封装了一个常用的功能性表格,点击这里; 后来由于需求增加,在表格中还会用到switch,select,input等多种组件,每次都要在html中增加<el-table-column></el-table-column>, 维护起来相当麻烦,就想到了使用render渲染。 阅读全文
posted @ 2019-11-22 10:14 puerile 阅读(19296) 评论(4) 推荐(1) 编辑
摘要: 因为在做后台管理项目的时候用到了大量的表格, 且功能大多相同,因此封装了一些常用的功能, 方便多次复用。 组件封装代码: <template> <el-table :data="tableData" size="medium" ref="multipleTable" border fit @sort 阅读全文
posted @ 2019-11-22 10:13 puerile 阅读(7690) 评论(0) 推荐(1) 编辑