feat(menu): add shot/hide events to menu emits type

pull/7080/head
Jakub Michálek 2025-01-13 08:45:01 +01:00
parent f481158d36
commit a989dbcb60
1 changed files with 10 additions and 0 deletions

View File

@ -330,6 +330,16 @@ export interface MenuEmitsOptions {
* @param {Event} event - Browser event.
*/
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>;