element plus 表格 table 状态解析 el-tag 电脑版发表于:2025/5/27 10:40 代码如下: ``` <el-table-column prop="period" label="投放状态" min-width="66px"> <template #default="scope"> <el-tag v-if="scope.row.useState == 1" type="success">正常投放</el-tag> <el-tag v-if="scope.row.useState == 2" type="warning">库存不足</el-tag> </template> </el-table-column> ```