在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ element ui table 是循環(huán)出來的表格,如何根據(jù)字段判斷為空時(shí),將表

element ui table 是循環(huán)出來的表格,如何根據(jù)字段判斷為空時(shí),將表格背景色變成紅色

我現(xiàn)在要做的是element ui table 中的某一個(gè)表格背景色變成紅色,但是我的表格是循環(huán)出來的,如何拿到字段值,我現(xiàn)在判斷的時(shí)候如何中間有一個(gè)字段為空,我要把表格背景色變成紅色。
代碼
<el-table :data="tableData" stripe highlight-current-row fit border style="width: 100%" @sort-change="handleSort">

                <el-table-column width="180" prop="kequn" label="專業(yè)課群" show-overflow-tooltip fixed>
                    <template slot-scope="scope">
                        {{fhkequn(scope.row.kequn)}}
                    </template>
                </el-table-column>
                <el-table-column width="100" prop="name" label="姓名" align='center' fixed></el-table-column>
                <el-table-column min-width="100" prop="account" label="學(xué)號(hào)" sortable="custom"></el-table-column>
                <el-table-column min-width="120" :prop="item.prop" :label="item.title" v-for="(item,index) in titleData" :key="index">
                  <template></template>
                </el-table-column>
            </el-table>

頁面展示

回答
編輯回答
喵小咪

row-class-name 這個(gè)屬性應(yīng)該能滿足你的要求
圖片描述

2017年6月18日 14:20