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>
相关推荐
蒙面价肥猫15 小时前
el-popconfirm 弹窗不显示问题总结
vue.js·elementui
蜡台2 天前
IDEA LiveTemplates Vue ElementUI
前端·vue.js·elementui·idea·livetemplates
邂逅星河浪漫4 天前
【Vue2-ElementUI】:model、v-model、prop
javascript·vue.js·elementui
cypking8 天前
二次封装ElementUI日期范围组件:打造带限制规则的Vue2 v-model响应式通用组件
前端·javascript·elementui
wangjinsheng5938 天前
Vue3 + Element Plus 前端 AI 编码模板
前端·vue.js·ai·elementui·ai编程
easyboot8 天前
使用element-plus的暗黑模式
javascript·vue.js·elementui
1314lay_10079 天前
Element Plus左侧侧边栏按照屏幕宽度来确定显示和隐藏,如果太小的话,侧边栏消失,菜单会变成一个小按钮,点击按钮以模态框弹出
javascript·vue.js·elementui
赢乐9 天前
前端vue表格el-table或a-table合并行的功能实现
elementui·el-table·element-plus·anti-design-vue·a-table·vue前端·表格合并行
诸葛亮的芭蕉扇10 天前
tooltip-position-solution
前端·vue.js·elementui
EstherNi11 天前
vue3仿照elementui样式的写法,并进行校验,并且有默认值的设置
javascript·elementui