{
field: 'Num',
title: '排序',
cellStyle: function (value, row, index) { // 直接加样式
if (index==0) {
return {
css: {
'color': 'white',
'background-color': '#ff6e85',
'border-radius': '30px 0px 0px 30px'
}
}
} if (index == 1) {
return {
css: {
'color': 'white',
'background-color': '#ffc547',
'border-radius': '30px 0px 0px 30px'
}
}
} if (index == 2) {
return {
css: {
'color': 'white',
'background-color': '#6fbdff',
'border-radius': '30px 0px 0px 30px'
}
}
}
return { css: {} }
}
}