1.header-row-style 表头行的 style 的回调方法,也可以使用一个固定的 Object 为所有表头行设置一样的 Style。 Function({row, rowIndex})/Object — —
例子
tableRowStyle({ row, rowIndex}) {
if (columnIndex === 12) {
return {
'border': 'none'
}
}
}
2.header-cell-class-name 表头单元格的 className 的回调方法,也可以使用字符串为所有表头单元格设置一个固定的 className。 Function({row, column, rowIndex, columnIndex})/String — —
例子
tableCellStyle({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 12) {
return {
'border': 'none'
}
}
}
3.header-cell-style 表头单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有表头单元格设置一样的 Style。 Function({row, column, rowIndex, columnIndex})/Object
例子
tableHeaderStyle({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 12) {
return {
'border': 'none'
}
} else {
return {
'font-family': 'inherit',
'font-weight': 'normal',
'border-top': '0.01rem #A1A1A1 solid',
'border-bottom': '0.01rem #A1A1A1 solid',
'text-align': 'center',
'font-size': '0.12rem'
}
}
}