fix(过滤组件): 设置下拉组件背景样式无法立即生效

This commit is contained in:
dataeaseShu 2024-04-03 10:08:29 +08:00
parent 8c1cbc44d8
commit 1dba36a6d9
2 changed files with 1 additions and 2 deletions

View File

@ -123,7 +123,7 @@ export default {
styleEle.id = `radio-style${this.id}`;
document.querySelector("head").appendChild(styleEle);
}
styleEle.innerHTML = `#component${this.id} {\n background-color: transparent !important; \n } #component${this.id} .el-radio-button:not(.is-active) .el-radio-button__inner {\n color: ${this.radioStyle.wordColor}; \n border-color: ${this.radioStyle.brColor}; \n background-color: ${this.radioStyle.innerBgColor}; \n } #component${this.id} .el-radio:not(.is-check) .el-radio__label {\n color: ${this.radioStyle.wordColor}; \n }`;
styleEle.innerHTML = `#component${this.id} .el-radio-button:not(.is-active) .el-radio-button__inner {\n color: ${this.radioStyle.wordColor}; \n border-color: ${this.radioStyle.brColor}; \n background-color: ${this.radioStyle.innerBgColor}; \n } #component${this.id} .el-radio:not(.is-check) .el-radio__label {\n color: ${this.radioStyle.wordColor}; \n }`;
},
resetList(arrays) {
if (Array.isArray(arrays)) {

View File

@ -67,7 +67,6 @@ export default {
},
methods: {
handlerInputStyle(type, newValue) {
if (this.element.style.showMode && this.element.style.showMode === 'radio') return
let nodeCache = ''
this.styleAttrs.forEach(ele => {
if (!nodeCache) {