vxe-tableまたはelement-uiの最初の行または特定の行のスタイルを変更します

ここに画像の説明を挿入
キーポイント:テーブルに属性を追加します:cell-style = "cellStyle"

cellStyle(row, column, rowIndex, columnIndex) {
    
    
		// console.log(row, column, rowIndex, columnIndex);
		if (row.seq == '1') {
    
    //判断条件,如果想要改变其他行样式,就写那一行的下标
			return `background-color: #ffe5bb !important;fontSize: 16px; color: #777777`;
		} else {
    
    
			return `fontSize: 16px; color: #777777`;
		}
},

おすすめ

転載: blog.csdn.net/GongWei_/article/details/110947331