element+vue的table中某一行标红 ,标红指定行可以参考禁用selection某一行
<el-table:row-class-name="tableRowClassName"--------------------------><style scoped>/deep/.el-table .warning-row {background: oldlace;}</styl...
·
<el-table
:row-class-name="tableRowClassName"
-------------------------->
<style scoped>
/deep/.el-table .warning-row {
background: oldlace;
}
</style>
//标红table第一行
tableRowClassName({row, rowIndex}) {
if (rowIndex === 0) {
return 'warning-row';
}
return '';
},
更多推荐
已为社区贡献12条内容
所有评论(0)