fix: switch not update in table(amaze issue) #3512
parent
1d1ed164a6
commit
6b474598e0
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue