<el-table-column label="审核状态" width="120"> <template slot-scope="scope"> <div v-if="scope.row.examStatus == 'false'">未审核</div> <div v-else>已审核</div> </template> </el-table-column> <el-table-column label="订购状态" width="120"> <template slot-scope="scope"> <div v-if="scope.row.purStatus == 'false'">未订购</div> <div v-else>已订购</div> </template> </el-table-column>
<div>是必须标签,单个<v-if>+文本会将两个选择都显示出来
标签:vue,表格,未审核,渲染,订购,当中 From: https://www.cnblogs.com/qq2803572183/p/17841154.html