有个需求是修改行的样式
官网那个说明比较模糊
改变行的样式没说清楚
百度也是
:customRow=‘rowstely’
<a-table style="width:100%;" :columns="columns" :data-source="columnsData" id='fromtable'
:rowKey='(record, index) => index' :customRow='rowstely'
:row-selection="{ selectedRowKeys: selectedRows, onChange: onSelectChange }" :pagination="false"
:bordered="true">
methods 下生明的方法 在return返回样式写在***style{}***内一同返回
查找文档 style{} 一直忽略也是不容易发现
methods: {
rowstely(record, index) {
if (record.status == "已过期") {
return {
style: {
'color': '#999',
},
}
}
},}