封装table
重点
<slot v-if="item.slot" :scope="scope.row" :name="item.slot"/>
<template>
<div class="content">
<el-table
:data="tableData" border highlight-current-row stripe style="width: 100%" @row-click="rowClick">
<el-table-column
v-for="(item, index) in columns" :prop="item.prop" :label="item.label" :key="index"
:width="item.width" :align="item.align" >
<template slot-scope=

本文介绍了如何利用ElementUI的table组件进行二次封装,重点讲解了封装过程,并提供了具体的使用方法。
最低0.47元/天 解锁文章
853

被折叠的 条评论
为什么被折叠?



