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>
相关推荐
chushiyunen16 天前
vue el-pagination实现分页
javascript·vue.js·elementui
一坨阿亮16 天前
使用e-tree开发树形穿梭框
javascript·vue.js·elementui
北极星日淘19 天前
可买免税店货物与安耐晒——特殊商品代购技术方案
javascript·vue.js·elementui
chushiyunen20 天前
vue插件element ui,element plus,ElMessage消息框,ref,动态绑定语法
vue.js·ui·elementui
流浪码农~21 天前
Element Plus DatePicker 动态设置每周起始日
前端·vue.js·elementui
依托偶尔宁23 天前
element-plus:el-table设置展开图标所在列的位置
前端·elementui
吠品24 天前
PyTorch 踩坑:libtorch_cpu.so 找不到 iJIT_NotifyEvent 符号
前端·vue.js·elementui
zhangyao9403301 个月前
开发pc端时,表格的高度怎么设置才能铺满页面
前端·javascript·elementui
mengqudoh1 个月前
elementui el-table 表头固定功能
javascript·vue.js·elementui
陪小甜甜赏月1 个月前
ElementPlus 多个并列 Table 独立全选/取消全选 (适配嵌套表格业务)
前端·vue.js·elementui