• element ui el-select修改样式


    el-select修改

    
    .ym-dialog .el-select-dropdown {
      background-color: rgb(19, 19, 21) !important;
    }
    
    /*聚焦时的样式*/
    .ym-dialog .el-select .el-input.is-focus .el-input__inner{
      border-color: #0B61AA;
      background-color: rgba(1, 28, 82, 0.8);
      color:#00D3E9;
    }
    
    /*鼠标经过下拉框*/
    .ym-dialog .el-select-dropdown__item.hover,
    .ym-dialog .el-select-dropdown__item:hover{
      color:#00D3E9;
      background-color: #0F3360;
    }
    
    .ym-dialog .el-select-dropdown__item.selected {
      background-color: #f5f7fa33 !important;
      color: #2285FF !important;
    }
    
    .ym-dialog .el-select-dropdown__item {
      color: #e8f4ff !important;
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27

    请添加图片描述
    el-date-picker修改

    <el-date-picker
      popper-class="date-style"
      @change="init"
      v-model="queryCondition.pubDate"
      value-format="timestamp"
      format="yyyy-MM-dd"
      type="date"
      placeholder="预警日期">
    </el-date-picker>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    /* 时间日期 start */
    /* 非当月字体颜色 */
    .date-style.el-date-table td.prev-month{
      color: #4e4f51 !important;
    }
    .date-style.el-picker-panel{
      background: #ff000000 !important;
      color: #e8f4ff !important;
    }
    /* 时间日期 end */
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10

    请添加图片描述
    el-table修改

    .ym-dialog .ym-table tr {
      background-color: rgba(19, 25, 47, 0.6) !important;
    }
    
    .ym-dialog .ym-table {
      background-color: rgba(19, 25, 47, 0.6) !important;
    }
    
    .ym-dialog .ym-table th.el-table__cell.is-leaf {
      border-bottom: 0 !important;
      background-color: rgba(19, 25, 47, 0.6);
    }
    
    .ym-dialog .ym-table .el-table__header-wrapper th {
      background-color: rgba(19, 25, 47, 0.6) !important;
    }
    
    .ym-dialog .ym-table thead tr {
      background-color: #2e35c1 !important;
    }
    
    
    .ym-dialog .ym-table .el-table__row:nth-child(2n) {
      background-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    .ym-dialog .ym-table td.el-table__cell {
      background-color: rgba(19, 25, 47, 0.6) !important;
    }
    
    .ym-dialog .ym-table th.el-table__cell.is-leaf, .ym-table td.el-table__cell {
      border-bottom: 0;
    }
    
    .ym-dialog .ym-table .el-table__header-wrapper th, .ym-table .el-table__fixed-header-wrapper th {
      color: #39D0B8;
      font-size: 13px;
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38

    el-dialog修改

    /* 弹窗 start */
    /* 背景 */
    .ym-dialog .el-dialog {
      background: #5470c600 !important;
    }
    
    /* 标题颜色 */
    .ym-dialog .el-dialog__title {
      color: #fff;
    }
    
    /* 选中后颜色 */
    .ym-dialog .hover-row {
      background-color: rgba(19, 25, 47, 0.8) !important;
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15

    另外:要想只修改一部分的页面的话,封装这个组件的时候,可以不加scope,可以调用组件的时候,加一个类名
    比如:

    <ym-dialog
          title="预警数据分析"
          v-model="currentKey"
          width="80%"
          class="ym-dialog"
        >
     </ym-dialog>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    请添加图片描述

  • 相关阅读:
    这份Kubernetes学习笔记,看完直呼NB
    深度学习 Day 18——利用卷神经网络实现猫狗识别 Ⅱ
    为什么应该在开发环境中使用 Kubernetes
    用原生JS实现虚表控件
    动态规划(算法竞赛、蓝桥杯)--背包DP求具体方案
    Flutter - APP主界面Tabbar保持页面状态
    基于MQ的分布式事务实现方案
    AlexNet网络结构详解与花分类数据集下载
    《吐血整理》进阶系列教程-拿捏Fiddler抓包教程(20)-Fiddler精选插件扩展安装,让你的Fiddler开挂到你怀疑人生
    主席树(可持久化权值线段树)的相关知识
  • 原文地址:https://blog.csdn.net/qq_43628847/article/details/125490719