element-ui table-自定义表格某列的表头样式或者功能

  • 自带表格
    在这里插入图片描述
  • 自定义表格某列的表头样式或者功能
 <el-table>
 	<el-table-column :prop="date">
 		//自定义表身每行数据
 		<template slot-scope="scope">
        	{
   {
   scope.row[scope.column.label] === '-' ? '-' : scope.row[scope.column.label]}}
        </template>
        
        //自定义表头
        <template slot='header'  slot-scope="scope">
			<el-button type="primary" @click="filterTest(scope.column)">筛选</el-button>
        </template>
     </el-table-column>
</el-table>


最近更新

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

    2024-01-07 05:12:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-07 05:12:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-01-07 05:12:03       82 阅读
  4. Python语言-面向对象

    2024-01-07 05:12:03       91 阅读

热门阅读

  1. 面试经典150题(59-61)

    2024-01-07 05:12:03       52 阅读
  2. ubuntu 卸载桌面

    2024-01-07 05:12:03       57 阅读
  3. typescript中使用 ?. ?? ??= 运算符

    2024-01-07 05:12:03       52 阅读
  4. Golang 切片

    2024-01-07 05:12:03       59 阅读
  5. 钢铁企业电力设计手册(上下册)总目录

    2024-01-07 05:12:03       57 阅读
  6. 详细设计文档该怎么写

    2024-01-07 05:12:03       63 阅读