fix: switch not update in table(amaze issue) #3512

pull/3598/head
tangjinzhou 2021-01-23 23:41:16 +08:00
parent 1d1ed164a6
commit 6b474598e0
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ const Switch = defineComponent({
onClick: PropTypes.func,
'onUpdate:checked': PropTypes.func,
},
emits: ['change', 'click', 'update:checked'],
// emits: ['change', 'click', 'update:checked'],
setup() {
return {
refSwitchNode: undefined,
@ -61,7 +61,7 @@ const Switch = defineComponent({
const { getPrefixCls } = this.configProvider;
const prefixCls = getPrefixCls('switch', customizePrefixCls);
const { $attrs } = this;
console.log(restProps, $attrs)
const classes = {
[$attrs.class as string]: $attrs.class,
[`${prefixCls}-small`]: size === 'small',