sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
29 lines (28 loc) • 994 B
TypeScript
import { type PopupProps, type PopupEmits, type PopupSlots } from '../popup/common';
import { type DefaultProps } from '../config';
import { type TransitionHookCallbacks } from '../popup/common';
export interface PopupAgentProps extends PopupProps, TransitionHookCallbacks {
id?: string;
onOverlayClick?: (event: any) => void;
onBackPress?: () => void;
}
export declare const defaultPopupAgentProps: () => DefaultProps<PopupAgentProps>;
export interface PopupAgentEmits extends PopupEmits {
}
export interface PopupAgentSlots extends PopupSlots {
}
export declare const imperativeName = "popup";
export interface PopupImperative {
show(newProps: Record<string, any>): void;
hide(): void;
}
export type PopupOptions = PopupAgentProps;
export interface PopupShowFunction {
(options?: PopupOptions): void;
}
export type PopupFunction = PopupShowFunction & {
hide: (id?: string) => void;
hideAll: () => void;
};
declare const popup: PopupFunction;
export { popup };