## 列扩展
只需要在列属性上加上属性:`slot:'abc'`,~~~
注意:`slot的命名必须不能相同`如下:
```
// 列
tableLabel:[
{prop:'province',title:'省份',slot:'abc',minWidth:150,},
],
```
接下来在表格标签中添加如下:
```
<component-table v-if="tableData.tableData.length>0" :data="tableData">
<!-- 列,abc,col 随意取的,需要在 tableLabel 中定义 slot:'abc'、slot:'col',scope 为当前行参数 -->
<!-- ***** 注意:slot的命名必须不能相同 ***** -->
<template v-slot:abc="{scope}">
<span>这是表格列扩展-1--id:{{scope.row.id}}</span>
</template>
<template v-slot:col="{scope}">
<span>这是表格列扩展-2--省:{{scope.row.province}}</span>
</template>
<!-- 按钮扩展: 需要在 tableOption 里加上 slot:true --->
<template v-slot:button="{scope}">
<el-button v-if="scope.row.id>0" type="warning" size="mini" @click="handleClick(scope)">按钮 </el-button>
</template>
</component-table>
```