diff --git a/src/main.ts b/src/main.ts index 24eac8b..f3b311d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -30,7 +30,7 @@ import * as pinia from './store/index' import SketchRule from 'vue3-sketch-ruler' import 'vue3-sketch-ruler/lib/style.css' - +import '@/styles/tree-select-global.css' diff --git a/src/styles/tree-select-global.css b/src/styles/tree-select-global.css new file mode 100644 index 0000000..70f6b0d --- /dev/null +++ b/src/styles/tree-select-global.css @@ -0,0 +1,26 @@ +/* tree-select-global.css */ +.el-select-dropdown__item.is-disabled { + background-color: unset !important; + color: #606266 !important; + cursor: default; +} + +.el-checkbox__input.is-disabled .el-checkbox__inner { + background-color: #e9e9eb; + border-color: #c8c9cc; + cursor: not-allowed; +} + +.el-select-dropdown__item { + box-sizing: border-box; + color: var(--el-text-color-regular); + cursor: default; + font-size: var(--el-font-size-base); + height: 34px; + line-height: 34px; + overflow: hidden; + padding: 0 32px 0 20px; + position: relative; + text-overflow: ellipsis; + white-space: nowrap; +} \ No newline at end of file