feat(menu): add shot/hide events to menu emits type
parent
f481158d36
commit
a989dbcb60
|
@ -330,6 +330,16 @@ export interface MenuEmitsOptions {
|
||||||
* @param {Event} event - Browser event.
|
* @param {Event} event - Browser event.
|
||||||
*/
|
*/
|
||||||
blur(event: Event): void;
|
blur(event: Event): void;
|
||||||
|
/**
|
||||||
|
* Callback to invoke when the overlay is shown.
|
||||||
|
* @remarks Emitted when {@link MenuProps.popup} is true
|
||||||
|
*/
|
||||||
|
show(): void;
|
||||||
|
/**
|
||||||
|
* Callback to invoke when the overlay is hidden.
|
||||||
|
* @remarks Emitted when {@link MenuProps.popup} is true
|
||||||
|
*/
|
||||||
|
hide(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export declare type MenuEmits = EmitFn<MenuEmitsOptions>;
|
export declare type MenuEmits = EmitFn<MenuEmitsOptions>;
|
||||||
|
|
Loading…
Reference in New Issue