@minto-ai/mt-ui
Version:
UI组件库
272 lines (271 loc) • 9.84 kB
TypeScript
declare const MtDialog: {
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
readonly modelValue: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly appendTo: {
readonly type: import('vue').PropType<string | HTMLElement>;
readonly default: "body";
};
readonly mask: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly destroyOnClose: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly top: {
readonly type: import('vue').PropType<string | number>;
readonly validator: (value: number | string) => boolean;
readonly default: "15vh";
};
readonly width: {
readonly type: import('vue').PropType<string | number>;
readonly validator: (value: number | string) => boolean;
readonly default: "fit-content";
};
readonly padding: {
readonly type: import('vue').PropType<Array<number | number> | number | string>;
readonly validator: (value: number | string | Array<number | string>) => boolean;
readonly default: () => number[];
};
readonly showClose: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly title: {
readonly type: StringConstructor;
readonly default: "";
};
readonly alignCenter: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly closeOnClickModal: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly beforeClose: {
readonly type: import('vue').PropType<() => Promise<any>>;
readonly default: () => Promise<void>;
};
readonly background: {
readonly type: StringConstructor;
readonly default: "#fff";
};
readonly zIndex: {
readonly type: NumberConstructor;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
onClose?: (() => any) | undefined;
onClosed?: (() => any) | undefined;
}>, {
close: () => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (args_0: boolean) => any;
close: () => any;
closed: () => any;
}, import('vue').PublicProps, {
readonly top: string | number;
readonly background: string;
readonly title: string;
readonly mask: boolean;
readonly width: string | number;
readonly showClose: boolean;
readonly padding: string | number | number[];
readonly modelValue: boolean;
readonly appendTo: string | HTMLElement;
readonly destroyOnClose: boolean;
readonly alignCenter: boolean;
readonly closeOnClickModal: boolean;
readonly beforeClose: () => Promise<any>;
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import('vue').ExtractPropTypes<{
readonly modelValue: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly appendTo: {
readonly type: import('vue').PropType<string | HTMLElement>;
readonly default: "body";
};
readonly mask: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly destroyOnClose: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly top: {
readonly type: import('vue').PropType<string | number>;
readonly validator: (value: number | string) => boolean;
readonly default: "15vh";
};
readonly width: {
readonly type: import('vue').PropType<string | number>;
readonly validator: (value: number | string) => boolean;
readonly default: "fit-content";
};
readonly padding: {
readonly type: import('vue').PropType<Array<number | number> | number | string>;
readonly validator: (value: number | string | Array<number | string>) => boolean;
readonly default: () => number[];
};
readonly showClose: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly title: {
readonly type: StringConstructor;
readonly default: "";
};
readonly alignCenter: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly closeOnClickModal: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly beforeClose: {
readonly type: import('vue').PropType<() => Promise<any>>;
readonly default: () => Promise<void>;
};
readonly background: {
readonly type: StringConstructor;
readonly default: "#fff";
};
readonly zIndex: {
readonly type: NumberConstructor;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
onClose?: (() => any) | undefined;
onClosed?: (() => any) | undefined;
}>, {
close: () => void;
}, {}, {}, {}, {
readonly top: string | number;
readonly background: string;
readonly title: string;
readonly mask: boolean;
readonly width: string | number;
readonly showClose: boolean;
readonly padding: string | number | number[];
readonly modelValue: boolean;
readonly appendTo: string | HTMLElement;
readonly destroyOnClose: boolean;
readonly alignCenter: boolean;
readonly closeOnClickModal: boolean;
readonly beforeClose: () => Promise<any>;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
readonly modelValue: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly appendTo: {
readonly type: import('vue').PropType<string | HTMLElement>;
readonly default: "body";
};
readonly mask: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly destroyOnClose: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly top: {
readonly type: import('vue').PropType<string | number>;
readonly validator: (value: number | string) => boolean;
readonly default: "15vh";
};
readonly width: {
readonly type: import('vue').PropType<string | number>;
readonly validator: (value: number | string) => boolean;
readonly default: "fit-content";
};
readonly padding: {
readonly type: import('vue').PropType<Array<number | number> | number | string>;
readonly validator: (value: number | string | Array<number | string>) => boolean;
readonly default: () => number[];
};
readonly showClose: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly title: {
readonly type: StringConstructor;
readonly default: "";
};
readonly alignCenter: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly closeOnClickModal: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly beforeClose: {
readonly type: import('vue').PropType<() => Promise<any>>;
readonly default: () => Promise<void>;
};
readonly background: {
readonly type: StringConstructor;
readonly default: "#fff";
};
readonly zIndex: {
readonly type: NumberConstructor;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
onClose?: (() => any) | undefined;
onClosed?: (() => any) | undefined;
}>, {
close: () => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (args_0: boolean) => any;
close: () => any;
closed: () => any;
}, string, {
readonly top: string | number;
readonly background: string;
readonly title: string;
readonly mask: boolean;
readonly width: string | number;
readonly showClose: boolean;
readonly padding: string | number | number[];
readonly modelValue: boolean;
readonly appendTo: string | HTMLElement;
readonly destroyOnClose: boolean;
readonly alignCenter: boolean;
readonly closeOnClickModal: boolean;
readonly beforeClose: () => Promise<any>;
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
$slots: Readonly<{
default: any;
title: any;
footer: any;
}> & {
default: any;
title: any;
footer: any;
};
}) & import('vue').Plugin;
export { MtDialog, };
export * from './src/dialog';
export default MtDialog;