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>
相关推荐
跟着珅聪学java1 天前
Element UI 的 Tabs 标签页开发教程
javascript·vue.js·elementui
不是山谷.:.2 天前
Axios的【接口防抖 + 请求失败重试 + 弱网提示】三合一高阶版封装
前端·javascript·vue.js·笔记·elementui·typescript
镜宇秋霖丶7 天前
2026.5.12@霖宇博客制作中遇见的问题
前端·vue.js·elementui
镜宇秋霖丶10 天前
2026.5.10@霖宇博客制作中遇见的问题
前端·vue.js·elementui
莫生灬灬10 天前
ElementUI封装 共91个组件 支持易语言/火山/C#/Python
开发语言·c++·python·ui·elementui·c#
镜宇秋霖丶12 天前
2026.5.8@霖宇博客制作中遇见的问题
前端·vue.js·elementui
MXN_小南学前端12 天前
Vue + Element UI 分页器封装:比直接用 el-pagination 更省心的通用方案
javascript·vue.js·elementui
invicinble12 天前
前端框架使用vue-cli( 第二层:工程配置层--elementui需要做的基础配置)
vue.js·elementui·前端框架
周bro15 天前
vue2+element ui 中的el-table表格 选中当前行当前行变色,单选/多选--------续集:表格样式修改整合
vue.js·ui·elementui
T畅N16 天前
审批流设计器(前端)
前端·elementui·vue·html·流程图·js