Can vue use element tables and header-cell-class-name to change the style?

you can change the color with header-cell-style, but not with header-cell-class-name. I don"t know why

<el-table
    :data="tableData3"
    style="width: 100%"
    :header-cell-style="tableRowClassName"
 <el-table>   
May.16,2021

1.header-cell-class-name binds a method
2. Do not write custom styles in scoped,
3. Cache problem. Clear the cache, refresh it,

  <template>
   <el-table
      :data="tableData"
      :header-cell-class-name="handlemyclass"
      style="width: 100%">
      <el-table-column
        prop="date"
        label=""
        width="180" >
      </el-table-column>
      <el-table-column
        prop="name"
        label=""
        width="180">
      </el-table-column>
      <el-table-column
        prop="address"
        label="">
      </el-table-column>
    </el-table>
</template>

<script>
export default {
      data() {
        return {
        
          tableData: [{
            date: '2016-05-02',
            name: '',
            address: ' 1518 '
          }, {
            date: '2016-05-04',
            name: '',
            address: ' 1517 '
          }, {
            date: '2016-05-01',
            name: '',
            address: ' 1519 '
          }, {
            date: '2016-05-03',
            name: '',
            address: ' 1516 '
          }]
        }
      },
      methods:{
          handlemyclass:function(row, column, rowIndex, columnIndex){
             console.log(row, column, rowIndex, columnIndex);
             return 'test'
          }

      }
   }
</script>



<!-- Add "scoped" attribute to limit CSS to this component only -->
<style >
   .test{
     color:brown !important;
   }
</style>

:http://element-cn.eleme.io/-sharp/...



lz, I elementUI is the latest version (2.4.6) cell-class-name this parameter class has been added, but the set css is not allowed, do you know what's going on?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3f488-40a0a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3f488-40a0a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?