chore: add dropdown emits (#3237)

pull/3244/head
zkwolf 4 years ago committed by GitHub
parent 32d327cb4f
commit 04f72ed2cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,6 +35,7 @@ export default defineComponent({
name: 'ADropdownButton',
inheritAttrs: false,
props: DropdownButtonProps,
emits: ['click', 'visibleChange', 'update:visible'],
setup() {
return {
configProvider: inject('configProvider', defaultConfigProvider),

@ -26,7 +26,9 @@ const Dropdown = defineComponent({
mouseLeaveDelay: PropTypes.number.def(0.1),
placement: DropdownProps.placement.def('bottomLeft'),
onVisibleChange: PropTypes.func,
'onUpdate:visible': PropTypes.func,
},
emits: ['visibleChange', 'update:visible'],
setup() {
return {
configProvider: inject('configProvider', defaultConfigProvider),

Loading…
Cancel
Save