diff --git a/src/assets/css/index.css b/src/assets/css/index.css index 6f14cef..1fb62c1 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -101,6 +101,9 @@ --xfcxbgc: #050c16; /* 新烽查询详情页背景色 改为 #c0d5f8 */ + + --elinputdisabled: rgb(133, 131, 131); + /* 项目设置不可选中栏的颜色 改为透明色 */ } .form-cascader .el-cascader-panel .el-radio { diff --git a/src/assets/css/index.css b/src/assets/css/index.css index 6f14cef..1fb62c1 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -101,6 +101,9 @@ --xfcxbgc: #050c16; /* 新烽查询详情页背景色 改为 #c0d5f8 */ + + --elinputdisabled: rgb(133, 131, 131); + /* 项目设置不可选中栏的颜色 改为透明色 */ } .form-cascader .el-cascader-panel .el-radio { diff --git a/src/components/index.vue b/src/components/index.vue index d1485fa..718dee3 100644 --- a/src/components/index.vue +++ b/src/components/index.vue @@ -265,6 +265,7 @@ root.style.setProperty("--xfcxborder", "#bacdee"); root.style.setProperty("--xfcxmegbgc", "#cee0ff"); root.style.setProperty("--xfcxbgc", "#c0d5f8"); + root.style.setProperty("--elinputdisabled", "transparent"); this.flag = false; // ---------------------分界线----------------------------------// @@ -308,6 +309,7 @@ root.style.setProperty("--xfcxborder", "#213b55"); root.style.setProperty("--xfcxmegbgc", "#152535"); root.style.setProperty("--xfcxbgc", "#050c16"); + root.style.setProperty("--elinputdisabled", "rgb(133, 131, 131)"); this.flag = true; } @@ -405,7 +407,7 @@ border: 1px solid rgb(0, 111, 255); } .el-input.is-disabled .el-input__inner { - background-color: transparent; + background-color: var(--elinputdisabled); border: 1px solid rgb(0, 111, 255); color: var(--white) !important; }