forked from drone/command-center-dashboard

张含笑
2025-04-21 94ff981a13179ac1e32782a0c7ce065cf302964c
feat: 首页地区下拉框样式调整
2 files modified
58 ■■■■ changed files
src/styles/element-ui.scss 57 ●●●● patch | view | raw | blame | history
src/views/Home/SearchBox.vue 1 ●●●● patch | view | raw | blame | history
src/styles/element-ui.scss
@@ -296,7 +296,7 @@
  }
}
//下拉
// :teleported="false"
// :teleported="false"(修改下拉框样式,在el-select添加)别删
.ztzf-select {
  .el-select__wrapper {
    background: #012A50;
@@ -407,7 +407,6 @@
}
// 弹框-dialog
.ztzf-dialog {
    background: #0f1929;
    box-shadow: inset 0px -50px 50px 0px rgba(27, 148, 255, 0.13);
    border-radius: 20px 0px 0px 0px;
@@ -422,7 +421,6 @@
            rgba(27, 148, 255, 1)
        )
        2 2;
  // 头部
  .el-dialog__header {
        width: 100%;
        height: 47px;
@@ -460,30 +458,21 @@
}
/* 时间选择器下拉面板 */
.custom-time-picker {
  /* 整体背景和边框 */
background: linear-gradient( 180deg, rgba(13,53,86,0.85) 0%, rgba(1,35,80,0.85) 100%) !important;
border-radius: 0px 0px 8px 8px;
border: 1px solid !important;
border-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(115, 192, 255, 1)) 1 1 !important;
  /* 修改箭头样式 */
  .el-popper__arrow::before {
    background: #0D3556 !important;
    border: 1px solid #479DFF !important;
  }
  /* 时间面板头部 */
  .el-time-panel__header {
    background: #012350 !important;
    color: #FFFFFF !important;
    border-bottom: 1px solid rgba(71, 157, 255, 0.3) !important;
  }
  /* 时间选择区域 */
  .el-time-panel__content {
    background: #012350 !important;
    /* 时间数字项 */
    .el-time-spinner__item {
      color: #E6E6E6 !important;
      
@@ -518,3 +507,47 @@
    }
  }
}
// 树形选择
.custom-tree-select {
    background: linear-gradient(180deg, rgba(13, 53, 86, 0.85) 0%, rgba(1, 35, 80, 0.85) 100%) !important;
    border-radius: 0px 0px 8px 8px;
    border: 1px solid;
    border-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(115, 192, 255, 1)) 1 1 !important;
    .el-popper__arrow::before {
        background: #0d3556 !important;
        border: 1px solid #012350 !important;
    }
    .el-tree {
        background: transparent !important;
        color: #fff !important;
        .el-tree-node__content:hover {
            background: none !important;
        }
        .el-tree-node__content:hover {
            background: none !important;
        }
        .el-tree-node.is-current > .el-tree-node__content {
            background: #479dff !important;
            color: #479dff !important;
        }
    }
    .el-select-dropdown__item {
        background: none !important;
        color: #fff !important;
        input {
            color: #fff !important;
            &::placeholder {
                color: #fff !important;
            }
        }
    }
    .el-tree {
        --el-tree-node-hover-bg-color: none !important;
        color: #fff !important;
    }
    .el-select-dropdown__item.is-selected {
        color: var(--el-color-primary) !important;
    }
}
src/views/Home/SearchBox.vue
@@ -15,6 +15,7 @@
        <div class="searchBtn" @click="searchClick"></div>
        <div class="region">
            <el-tree-select
                popper-class="custom-tree-select"
                v-model="treeValue"
                check-strictly
                lazy