效果图:

<el-table id="Table"
:data="tableData"
:cell-style="setCellColor"
border
style="width: 100%">
.............................................
</el-table>
setCellColor({row,column,rowIndex,columnIndex}){
if(columnIndex===3){
return 'color:#239ce6;';
}
},

本文介绍如何使用 Element UI 的表格组件 (el-table) 自定义单元格颜色,通过 row 和 column 参数动态设置样式,实现特定列的视觉突出。
2908

被折叠的 条评论
为什么被折叠?



