1,el-table-column 里面直接三元运算符 a?a:'--'
2,<el-table
class="simpleTable"
:data="tableData"
stripe
height="300"
align="left"
:cell-style="cellStyle">
cellStyle({ row, column, rowIndex, columnIndex }) {
if (row[column.property] == null) {
row[column.property] = "--";
}
},
3,<el-table
class="className "
:cell-style="cellStyle">
.className :empty::before{ content:'--'; color:red; }