列自定义渲染
渲染前:
参考代码:
<el-table-column label="是否有营业执照" width="120" align="center">
<template slot-scope="scope">
<el-tag v-if="scope.row.businessFlag === 1" class="ml-2" type="success">有</el-tag>
<el-tag v-else class="ml-2" type="danger">无</el-tag>
</template>
</el-table-column>
渲染后:
表格合并:
只用在table-column 中再套一个table - column即可合并
<el-table-column label="详细地址" align="center">
<el-table-column prop="province" label="省" width="120"