elementUi自定义表头,根据判断显示不同的表头

一、根据tabIndex变量值,显示不同的表头header

二、代码

<el-table-column min-width="220" show-overflow-tooltip>
		<template slot="header" slot-scope="scope">
				{{tabIndex==1?'表头栏目1':'表头栏目222'}}
		</template>
		<template slot-scope="scope">
				{{scope.row.content}}
		</template>
</el-table-column>

相关推荐

  1. elementUi定义表头,根据判断显示不同表头

    2024-03-18 19:34:05       44 阅读
  2. ant-design-vuetable组件定义表头表格内容

    2024-03-18 19:34:05       55 阅读
  3. 研发笔记——localstorage实现tabel表格表头定义

    2024-03-18 19:34:05       41 阅读
  4. element如何实现定义表头

    2024-03-18 19:34:05       25 阅读
  5. WPF之DataGrid表格定义表头定义单元格

    2024-03-18 19:34:05       32 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-18 19:34:05       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-18 19:34:05       100 阅读
  3. 在Django里面运行非项目文件

    2024-03-18 19:34:05       82 阅读
  4. Python语言-面向对象

    2024-03-18 19:34:05       91 阅读

热门阅读

  1. 蓝桥杯(3.17 刷真题)

    2024-03-18 19:34:05       43 阅读
  2. 20240317Python练习代码

    2024-03-18 19:34:05       41 阅读
  3. 面试算法-40-爬楼梯

    2024-03-18 19:34:05       38 阅读
  4. Python每日三道经典面试题(十四)

    2024-03-18 19:34:05       41 阅读
  5. 能不能绕过c去学c++?

    2024-03-18 19:34:05       35 阅读
  6. 《牛客》-C 小红构造回文

    2024-03-18 19:34:05       37 阅读
  7. Android 卸载系统自带APP

    2024-03-18 19:34:05       38 阅读
  8. 【Python】继承会遇到的问题

    2024-03-18 19:34:05       40 阅读