mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-03 04:27:41 +08:00
update switch
This commit is contained in:
parent
e7319f3987
commit
0eafff36d8
@ -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…
Reference in New Issue
Block a user