Browse Source

update switch

pull/309/head
tangjinzhou 6 years ago
parent
commit
0eafff36d8
  1. 7
      components/switch/index.jsx

7
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 = {
<Wave insertExtraNode>
<VcSwitch
{...switchProps}
>
<template slot='checkedChildren'>{getComponentFromProp(this, 'checkedChildren')}</template>
<template slot='unCheckedChildren'>{getComponentFromProp(this, 'unCheckedChildren')}</template>
</VcSwitch>
/>
</Wave>
)
},

Loading…
Cancel
Save