From 0eafff36d8da2b914486d63d28eb86b627c0e550 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Mon, 10 Dec 2018 22:51:42 +0800 Subject: [PATCH] update switch --- components/switch/index.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/switch/index.jsx b/components/switch/index.jsx index 2f9066605..b8b84407f 100644 --- a/components/switch/index.jsx +++ b/components/switch/index.jsx @@ -50,6 +50,8 @@ const Switch = { ...restProps, prefixCls, loadingIcon, + checkedChildren: getComponentFromProp(this, 'checkedChildren'), + unCheckedChildren: getComponentFromProp(this, 'unCheckedChildren'), }, on: this.$listeners, class: classes, @@ -59,10 +61,7 @@ const Switch = { - - - + /> ) },