From 427144f74856bef115f04c77ef41aab3950bb8b3 Mon Sep 17 00:00:00 2001 From: handongxun Date: Sun, 9 Oct 2022 14:35:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20vue3=20nvue=20switch=E7=BB=84=E4=BB=B6di?= =?UTF-8?q?sabled=E5=B1=9E=E6=80=A7=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-components/src/nvue/switch/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/uni-components/src/nvue/switch/index.tsx b/packages/uni-components/src/nvue/switch/index.tsx index beff20b77..a0e11ebe5 100644 --- a/packages/uni-components/src/nvue/switch/index.tsx +++ b/packages/uni-components/src/nvue/switch/index.tsx @@ -75,14 +75,18 @@ export default defineComponent({ useListeners(props, { 'label-click': _onClick }) return () => { - const { color, type } = props + const { color, type, disabled } = props return (
{type === SwitchType.switch ? ( ) : null} -- GitLab