el-table-column代码

<el-table-column property="playback" width="120" label="课程类型" :formatter="playbackFormat">
</el-table-column>
methods: {
   
    playbackFormat(row, column) {
    if (row.playback === 0) {
      return '直播课'
    } else  {
      return '录播课'
    } 
  }
  }
Logo

前往低代码交流专区

更多推荐