修改bug
bug 那些tag要是没有内容的话全部加上
<el-tag v-if="scope.row.label">{{ scope.row.label }}</el-tag>
以及兴趣栏目其实是tag数组。并且表格不换行,宽度自定义
<el-table
style="width: 100%"
border
>
<el-table-column :label=" t('interest') " class="custom-column" width="600">
<template #default="scope">
<div v-if="scope.row.interest.length != 0">
<el-tag v-for="tag in scope.row.interest" style="margin-right: 1%;">{{tag}}</el-tag>
</div>
</template>
</el-table-column>
```![](/i/l/?n=23&i=blog/3004543/202305/3004543-20230518145950922-361920088.png)
标签:elementplus,自定义,表格,换行,tag,数组
From: https://www.cnblogs.com/xxdmua/p/17411999.html