asp-smart-ui-plus-test
Version:
A Component Library for Vue 3
23 lines (22 loc) • 572 B
TypeScript
import type { Ref } from 'vue';
export declare function usePopup(): {
popupProps: Ref<popupProps>;
showPopup: (componentName: any, callback?: () => void) => void;
hidePopup: () => void;
handlePopupEvent: (eventHandlers: eventHandlers, event: popEvent) => void;
};
declare type popupProps = {
isShow: boolean;
popupComponentName: any;
[key: string]: any;
};
declare type eventHandlers = {
[key: string]: (...params: any) => void;
};
declare type popEvent = {
type: string;
params?: {
[key: string]: any;
};
};
export {};