From fc95fc4c81bace90afc32b34c0b1a99b388987ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B3=A2=E6=AF=94=E5=B0=8F=E9=87=91=E5=88=9A?= <2890636389@qq.com> Date: Sun, 9 May 2021 10:40:18 +0800 Subject: [PATCH] fix: judging by activeColor / inactiveColor (#1966) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If I didn’t miss anything, it should be related to the existence of activeColor or inactiveColor --- packages/switch/src/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/switch/src/index.vue b/packages/switch/src/index.vue index 963b6015f9..1b2710d8c0 100644 --- a/packages/switch/src/index.vue +++ b/packages/switch/src/index.vue @@ -242,7 +242,7 @@ export default defineComponent({ } onMounted(() => { - if (props.activeValue || props.inactiveValue) { + if (props.activeColor || props.inactiveColor) { setBackgroundColor() }