1.template中的内容如下:
2.script中的方法如下:
function cellStyle({ row, column, rowIndex, columnIndex }) {
//第二列样式默认居左,其他列居中
if (columnIndex === 2) {
} else {
return { 'text-align': 'center' }
}
}
function cellStyle({ row, column, rowIndex, columnIndex }) {
//第二列样式默认居左,其他列居中
if (columnIndex === 2) {
} else {
return { 'text-align': 'center' }
}
}