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 = { - - - + /> ) },