press-next
Version:
Vue3 组件库,支持 Composition API
26 lines (19 loc) • 519 B
text/typescript
export interface IOptions {
title?: string;
content?: string;
htmlContent?: string;
confirmText?: string;
cancelText?: string;
subTip?: string;
closeOnClickOverlay?: boolean;
htmlFilterClick?: ((...args: any[]) => any);
horizontal?: boolean;
zIndex?: number;
selector?: string | ((context: any) => any);
}
export type IDialog = {
(options: IOptions): any;
show: (options: IOptions) => Promise<any>;
setDefaultOptions: (options: IOptions) => void;
resetDefaultOptions: () => void;
};