首页 > 其他分享 >el-table表头高亮动画效果

el-table表头高亮动画效果

时间:2023-08-03 17:58:32浏览次数:32  
标签:el color 100% 表头 background table size

el-table表头高亮动画效果

 <div class="front-table">
            <el-table
              :data="tableData"
              height="100%"
              stripe
              :header-cell-style="{
                backgroundColor: 'transparent',
                color: '#fff',
                fontWeight: 500
              }"
            >
              <div slot="empty" style="color: #fff;">
                暂无数据
              </div>
              <el-table-column prop="name" label="源"></el-table-column>
          </div>

 

 

// 采集平台深色表格样式
.front-table {
  margin-top: 5px;
  .el-table {
    background-color: rgba(28, 38, 97, 0.5);
    thead {
      background-image: url('~@/assets/img/front/light.png');//高亮的图片
      // background-size: 100% 100%;
      background-repeat: no-repeat;
      background-color: #094482;
      background-position-y: 22px;
      animation: theadBg 3s ease-in-out infinite;
      -webkit-animation: theadBg 3s ease-in-out infinite;
    }
    //闪烁动画
    @keyframes theadBg {
      0% {
        background-size: 80% 90%;
        background-position-y: 25px;
      }
      50% {
        background-size: 120% 100%;
        background-position-y: 22px;
      }
      55% {
        background-size: 121% 100%;
        background-position-y: 22px;
      }
      100% {
        background-size: 80% 90%;
        background-position-y: 25px;
      }
    }
    @-webkit-keyframes theadBg {
      0% {
        background-size: 100% 100%;
      }
      30% {
        background-size: 120% 110%;
      }
      65% {
        background-size: 80% 110%;
      }
      100% {
        background-size: 100% 100%;
      }
    }
    tr {
      background-color: transparent;
      color: #fff;
    }
    tr.el-table__row--striped td {
      background-color: #072d5a !important;
    }
    th.el-table__cell,
    td.el-table__cell {
      background-color: #002652;
      border: none;
    }
    th.el-table__cell.is-leaf {
      border: none;
    }
    .el-table__row {
      background-color: #eaeef8;
      border: none;
    }
    .el-table__row:hover>td {
      color: #63d5fa;
      background-color: #335b9e !important;
      cursor: default;
    }
    // 侧边栏展开时滚动条样式
    //滚动条
    ::-webkit-scrollbar {
      width: 4px;
      height: 5px;
    }
    /*滚动条里面小方块*/
    ::-webkit-scrollbar-thumb {
      border-radius: 3px;
      background: #9ec2e67a;
    }
    /*滚动条里面轨道*/
    ::-webkit-scrollbar-track {
      border-radius: 3px;
      background: rgba(255, 255, 255, 0.01);
    }
  }
  .el-table::before {
    background-color: transparent;
  }
}

 

标签:el,color,100%,表头,background,table,size
From: https://www.cnblogs.com/ruyijiang/p/17604032.html

相关文章

  • Django之models模型层2
    一、多表查询之连表查询(基于双下划线的查询)1、2、3、  二、聚合查询(aggregate)1、2、   三、分组查询annotate 1、 2、  四、F与Q查询  五、django中如何开启事务 ......
  • Linux Shell实现模拟多进程并发执行
        在bash中,使用后台任务来实现任务的“多进程化”。在不加控制的模式下,不管有多少任务,全部都后台执行。也就是说,在这种情况下,有多少任务就有多少“进程”在同时执行。我们就先实现第一种情况:实例一:正常情况脚本———————————————————————————–#......
  • 使用ELK搭建社工库
    ELK是什么东西?ELK是ElasticSearch、Logstash、Kibana三个应用的缩写。ElasticSearch简称ES,主要用来存储和检索数据。Logstash主要用来往ES中写入数据。Kibana主要用来展示数据。为什么用ELK?传统的社工库通常用MySQL数据库来进行搭建,在相当大的数据下检索效率非常低下。在这种关......
  • Excel中文本型数字转换为数值型数字的方法
    背景工作中经常遇到需要将Excel中的内容进行求和或者其他计算,但是由于格式为文本,无法进行计算和求和。单元格的左上角都有绿色小三角,且用自动求和公式计算无法计算结果,显示为0,说明单元格格式为文本。1、直接将文本转化成数字需要转换的数据,左上角会出现黄色感叹号,点击,并选择......
  • excel递归读取目录并输出
    添加依赖 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.1.2</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> ......
  • Excel中Hyperlink函数的使用
    Hyperlink函数是将文本形式的链接转换为超链接。调用格式:=HYPERLINK(链接,标题)或者:=HYPERLINK(链接)具体可参考Hyperlink函数Microsoft官方文档视频演示:......
  • How to add link parameter to asp tag helpers in ASP.NET Core MVC
    HowtoaddlinkparametertoasptaghelpersinASP.NETCoreMVC问题IhavealotofexperiencewithASP.NETMVC1-5.NowIlearnASP.NETCoreMVCandhavetopassaparametertolinkinpage.ForexampleIhavethefollowingAction[HttpGet]publicAc......
  • 使用 OpenTelemetry 监控 Spring Boot
    通过将OpenTelemetry与SpringBoot集成,您可以从应用程序捕获分布式跟踪和其他遥测数据,从而提供有关其在分布式环境中的性能和行为的宝贵见解。什么是开放遥测?OpenTelemetry定义了用于收集遥测数据(例如指标、跟踪和日志)的API和协议,并为流行的编程语言和技术提供了各种库、代理......
  • 8-3|org.logicalcobwebs.proxool.default - Shutting down 'default' pool immediatel
    org.logicalcobwebs.proxool.default-Shuttingdown'default'poolimmediately[ShutdownHook]"org.logicalcobwebs.proxool.default-Shuttingdown'default'poolimmediately[ShutdownHook]"是一个程序日志的输出,特别是涉及到一个名为'default......
  • Vuejs+WebApi导出Excel
    前后端分离,前端Vuejs,后端.Net6WebApi后端代码1publicclassSalesReportController:BaseController2{3privateSerilog.ILogger_log=GetLogger<SalesReportController>();4privatereadonlyISqlSugarClient_db;5privateIHostEnvironme......