Browse Source

fix: switch event trigger #3453 (#3454)

pull/3473/head
zkwolf 4 years ago committed by GitHub
parent
commit
f5026dd49a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/switch/index.tsx

4
components/switch/index.tsx

@ -24,8 +24,8 @@ const Switch = defineComponent({
defaultChecked: PropTypes.looseBool,
autofocus: PropTypes.looseBool,
loading: PropTypes.looseBool,
change: PropTypes.func,
click: PropTypes.func,
onChange: PropTypes.func,
onClick: PropTypes.func,
'onUpdate:checked': PropTypes.func,
},
emits: ['change', 'click', 'update:checked'],

Loading…
Cancel
Save