element设置table某个列的样式
<el-table style="width: 100%;" height="250" :data="tableData" border size="mini" ref="multipleTable" :header-cell-style="{ background: '#80c1e2', color: '#fff', 'text-align': 'center' }" :header-row-style="{ height: '26px' }" :row-style="{ height: '25px' }" :cell-style="cellStyle" >
/** 表格样式 【给某一列设置样式】 */ cellStyle ({ row, column, rowIndex, columnIndex }) { if (columnIndex === 0) { return "background:#eaf5fb" } return { padding: "0px", "text-align": "center", "backgroud-color": "#007acc" } },