<el-table-column
prop="todayTotal"
label="今日名片" align="center">
<template slot-scope="scope">
<span style="color:red;"
v-if="scope.row.todayTotal >= scope.row.todayLimit">{{scope.row.todayTotal}}</span>/{{scope.row.todayLimit}}
<span style="color:deepskyblue;"
v-else>{{scope.row.todayTotal}}</span>/{{scope.row.todayLimit}}
</template>
</el-table-column>
el-table-column 存放多个属性值 v-if v-else判断
最新推荐文章于 2024-07-22 12:29:37 发布