elementplus tag数组。并且表格不换行,宽度自定义

修改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>
```![](https://img2023.cnblogs.com/blog/3004543/202305/3004543-20230518145950922-361920088.png)
posted @ 2023-05-18 15:00  yjxQWQ  阅读(332)  评论(0)    收藏  举报