elementUI table表格 cell-class-name的使用

<el-table :data="tableSearchArr" size="mini" stripe border height="350" :header-cell-style="{color: '#5f646e', fontWeight:'bold',textAlign: 'center'}" @selection-change="handleSelectionChange" ref="multipleTable" :cell-class-name="addTdClass">
 
addTdClass({ row, column }) {
  if (row.channelId == '10512') {
    if (column.type == "selection") {
      return 'isexsit'
    }
  }
}
posted @ 2022-05-06 15:02  站住,野猪佩奇  阅读(1650)  评论(0编辑  收藏  举报