<el-table-column label="状态" width="100">
<template slot-scope="scope">
<el-tag size="small">{{scope.row.type}}</el-tag>
</template>
</el-table-column>
prop | 对应列内容的字段名,也可以使用 property 属性这里我们没有写 |
主要是slot-scope选中标记,scope.row找到标记行即可