diff --git a/core/frontend/src/components/widget/deWidget/DeRadio.vue b/core/frontend/src/components/widget/deWidget/DeRadio.vue index bbbbbc6b00..ef1e9ee04d 100644 --- a/core/frontend/src/components/widget/deWidget/DeRadio.vue +++ b/core/frontend/src/components/widget/deWidget/DeRadio.vue @@ -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)) { diff --git a/core/frontend/src/components/widget/deWidget/inputStyleMixin.js b/core/frontend/src/components/widget/deWidget/inputStyleMixin.js index 17ad325953..a8efb743b8 100644 --- a/core/frontend/src/components/widget/deWidget/inputStyleMixin.js +++ b/core/frontend/src/components/widget/deWidget/inputStyleMixin.js @@ -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) {