<el-table-column label="标题" prop="title"></el-table-column>

第一种用法,会把对应列(title)中的数据直接渲染到组件内。

 <el-table-column label="状态" prop="status">
          <template slot-scope="scope">
            <el-tag type="success" v-if="scope.row.status==2">审核通过</el-tag>
          </template>
  </el-table-column>

第二种用法,使用到了作用域插槽,这样就可以把我们想要提取的数据(status)用到适当的组件内。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-06
  • 2021-08-02
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案