From 42f49d012c6dd14de8a3ff0685e98f02691bd131 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Fri, 11 Nov 2022 17:08:09 +0800 Subject: [PATCH] fix: radio disabled style question/136027 --- src/core/view/components/radio/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/view/components/radio/index.vue b/src/core/view/components/radio/index.vue index 5bff5f30b3..da5d712439 100644 --- a/src/core/view/components/radio/index.vue +++ b/src/core/view/components/radio/index.vue @@ -55,6 +55,7 @@ export default { }, computed: { checkedStyle () { + if (this.disabled) return 'background-color: #E1E1E1;border-color: ##D1D1D1;' return `background-color: ${this.color};border-color: ${this.color};` } }, @@ -157,8 +158,8 @@ export default { } uni-radio .uni-radio-input.uni-radio-input-disabled { - background-color: #E1E1E1 !important; - border-color: #D1D1D1 !important; + background-color: #E1E1E1; + border-color: #D1D1D1; } uni-radio .uni-radio-input.uni-radio-input-disabled:before { -- GitLab