1.首航加入 :row-class-name="getRowClass"
<el-table :data='ofStudent' style="width-100%" :row-class-name="getRowClass">

2.表格详情没有内容隐藏箭头

getRowClass(row) { if(row.row.promotionStudentVOSs.length === 0){ // promotionStudentVOSs是你子项的数组 key return 'row-expand-cover' } }

3.样式隐藏

.row-expand-cover td .el-table__expand-icon{ visibility: hidden !important; }

相关文章:

  • 2021-08-16
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-01-03
  • 2021-11-26
  • 2022-12-23
相关资源
相似解决方案