0
点赞
收藏
分享

微信扫一扫

小技巧|字典数据快捷匹配


​Tips:如果你需要字典翻译的内容不多,你可以这么写,利用数组​

<el-table-column  label="性别">
<template slot-scope="scope">
<span style="margin-left: 10px">{{["无限制", "男", "女"][scope.row.sexid]}}</span>
</template>
</el-table-column>


举报

相关推荐

0 条评论