We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d1ed16 commit 6b47459Copy full SHA for 6b47459
components/switch/index.tsx
@@ -28,7 +28,7 @@ const Switch = defineComponent({
28
onClick: PropTypes.func,
29
'onUpdate:checked': PropTypes.func,
30
},
31
- emits: ['change', 'click', 'update:checked'],
+ // emits: ['change', 'click', 'update:checked'],
32
setup() {
33
return {
34
refSwitchNode: undefined,
@@ -61,7 +61,7 @@ const Switch = defineComponent({
61
const { getPrefixCls } = this.configProvider;
62
const prefixCls = getPrefixCls('switch', customizePrefixCls);
63
const { $attrs } = this;
64
-
+ console.log(restProps, $attrs)
65
const classes = {
66
[$attrs.class as string]: $attrs.class,
67
[`${prefixCls}-small`]: size === 'small',
0 commit comments