From 4e5d26ffb3ee44e9cd4c17645597d4bae9caec43 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Tue, 7 Jul 2020 16:01:12 +0800 Subject: [PATCH] fix: switch not update --- antdv-demo | 2 +- components/switch/index.jsx | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/antdv-demo b/antdv-demo index dbe3af5b2..c18fda17a 160000 --- a/antdv-demo +++ b/antdv-demo @@ -1 +1 @@ -Subproject commit dbe3af5b20e6599a78a9a7fba7c13258b36646a7 +Subproject commit c18fda17a11855f340d0f74de1d2f7b8ef591888 diff --git a/components/switch/index.jsx b/components/switch/index.jsx index 0af473e79..f7ffa5a88 100644 --- a/components/switch/index.jsx +++ b/components/switch/index.jsx @@ -73,12 +73,8 @@ const Switch = { class: classes, ref: this.saveRef, }; - - return ( - - - - ); + const comp = ; + return {comp}; }, };