elementui el-date-picker时间区间选择弹出框样式

:popper-class="'dialogContainerScreen'"

复制代码
<el-date-picker
          :popper-class="'dialogContainerScreen'"
          v-model="timeRange"
          :type="'datetimerange'"
          :range-separator="'至'"
          :start-placeholder="'开始日期'"
          :end-placeholder="'结束日期'"
          :value-format="'YYYY-MM-DD HH:mm:ss'"
          style="width: 300px"
        />

css样式有冗余自行判断

复制代码
<style lang="scss">
//时间搜索 样式
  .dialogContainerScreen{
    background: #001939;
    color: #fff;
    border: 1px solid #00376b !important;

    //选择时间弹框
    .el-date-range-picker.has-time .el-picker-panel__body-wrapper,
    .el-picker-panel__footer,
    .el-input__wrapper {
      background: #001939 !important;
      color: #fff !important;
      // border-top: 1px solid #02bdd5;
    }
    .el-button.is-text,
    .el-input__inner,
    .el-time-spinner__item,
    .el-date-table th,
    .el-date-range-picker__header-label,
    .el-picker-panel__icon-btn{
      color: #fff;
    }
    .el-date-table td.in-range .el-date-table-cell {
      background: #042f83;
    }
    .el-input--small {
      border-color: #00376b;
    }
    .el-popper.is-light {
      border: 1px solid #00376b !important;
    }
    .el-date-range-picker__time-header,
    .el-date-table th {
      border-bottom: 1px solid #00376b !important;
    }
    .el-picker-panel__footer {
      border-top: 1px solid #00376b !important;
    }
    .el-date-range-picker__content.is-left {
      border-right: 1px solid #00376b !important;
    }
    .el-button,
    .el-time-panel {
      background: #062a4c !important;
      color: #fff;
      border: 1px solid #00376b !important;
    }
    .el-button:hover {
      background: #0b2239 !important;
      color: #02bdd5 !important;
      border: 1px solid #00376b !important;
    }
    .el-input__wrapper {
      box-shadow: #00376b 0px 0px 0px 1px inset;
      background: #062a4c;
    }
    .el-time-spinner__item.is-active:not(.is-disabled) {
      color: #00e4ff;
    }
    .el-input__wrapper:hover {
      background: #0b2239 !important;
      color: #02bdd5 !important;
    }
  }

</style>
相关推荐
愛芳芳2 天前
基于 Electron + Vue3 的仿 PC 微信客户端项目实战
前端·javascript·css·elementui·typescript·electron·vue
妖孽白小白8 天前
el-select的内容续写实现
前端·vue.js·elementui
鱼与宇14 天前
Element-plus离线访问(适用内网)
elementui·vue3
weixin_4225554215 天前
el-menu子菜单点击就被激活,恢复之前的激活状态
javascript·vue.js·elementui
yume_sibai15 天前
Element Plus 导航与反馈组件完全指南(15个核心组件)
前端·elementui·交互
雪芽蓝域zzs21 天前
第十节:动态侧边栏菜单(根据路由 meta 自动渲染菜单)
javascript·vue.js·elementui
m0_5791466525 天前
Element UI 表格合并单元格完全指南:从原理到实战
前端·vue.js·elementui
常宇佳1 个月前
vue3 实战系列之踩过的一些坑
javascript·vue.js·elementui
aXin_ya1 个月前
ElementUI (01):Vue2 项目引入 ElementUI使用
elementui·vue
山川志~1 个月前
Vue + Element UI 实战:如何实现表格时间、金额字段排序
vue.js·ui·elementui