el-table-column动态判断显示性别男女

 <el-table-column label="性别" width="60" align="center"  prop="gender">
         <template slot-scope="scope">{{ scope.row.gender === 0 ? '男' : '女' }}</template>
</el-table-column>

 

posted @ 2020-11-24 11:23  想念泡凤爪的味道  阅读(3591)  评论(0编辑  收藏  举报