我這邊有個需求是,根據(jù)后臺返回的參數(shù),去動態(tài)的改變el-table表格的背景色,不是改變文字顏色,有沒有大神有解決辦法?我目前的代碼是<el-table-column
prop="date7"
label="歷史峰值"
align="center"
>
<template slot-scope="scope">
<span v-if="scope.row.date7=='584W'" style="color:red">{{ scope.row.date7 }}</span>
<span v-else style="color: #37B328">{{ scope.row.date7 }}</span>
</template></el-table-column>
- 1 回答
- 0 關(guān)注
- 10259 瀏覽
添加回答
舉報
0/150
提交
取消