Skip to content

Commit 6b47459

Browse files
committed
fix: switch not update in table(amaze issue) #3512
1 parent 1d1ed16 commit 6b47459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/switch/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const Switch = defineComponent({
2828
onClick: PropTypes.func,
2929
'onUpdate:checked': PropTypes.func,
3030
},
31-
emits: ['change', 'click', 'update:checked'],
31+
// emits: ['change', 'click', 'update:checked'],
3232
setup() {
3333
return {
3434
refSwitchNode: undefined,
@@ -61,7 +61,7 @@ const Switch = defineComponent({
6161
const { getPrefixCls } = this.configProvider;
6262
const prefixCls = getPrefixCls('switch', customizePrefixCls);
6363
const { $attrs } = this;
64-
64+
console.log(restProps, $attrs)
6565
const classes = {
6666
[$attrs.class as string]: $attrs.class,
6767
[`${prefixCls}-small`]: size === 'small',

0 commit comments

Comments
 (0)