elementui table - change the style of a column

1.

 

 

 2.

cellStyle({ row, column, rowIndex, columnIndex }) {
      if (columnIndex === 0) {
        // 指定列号
        return 'padding:0'
      } else {
        return ''
      }
    },

 

Guess you like

Origin www.cnblogs.com/Hhuizi/p/11464762.html