tdesign-mobile-vue
Version:
tdesign-mobile-vue
149 lines (148 loc) • 5.88 kB
TypeScript
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
actions: {
type: import("vue").PropType<import("@/components").TdButtonProps[]>;
};
beforeClose: {
type: import("vue").PropType<(trigger: "cancel" | "close-btn" | "confirm" | "overlay", context: {
e: MouseEvent;
}) => void | Promise<void>>;
};
buttonLayout: {
type: import("vue").PropType<"horizontal" | "vertical">;
default: "horizontal" | "vertical";
validator(val: "horizontal" | "vertical"): boolean;
};
cancelBtn: {
type: import("vue").PropType<string | import("@/components").TdButtonProps | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
};
closeBtn: BooleanConstructor;
closeOnOverlayClick: BooleanConstructor;
confirmBtn: {
type: import("vue").PropType<string | import("@/components").TdButtonProps | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
};
content: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
};
destroyOnClose: BooleanConstructor;
middle: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>;
};
overlayProps: {
type: import("vue").PropType<import("@/overlay/type").TdOverlayProps>;
default: () => {};
};
preventScrollThrough: {
type: BooleanConstructor;
default: boolean;
};
showOverlay: {
type: BooleanConstructor;
default: boolean;
};
title: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
};
top: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>;
};
visible: BooleanConstructor;
width: {
type: import("vue").PropType<string | number>;
};
zIndex: {
type: NumberConstructor;
};
onCancel: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onClose: import("vue").PropType<(context: import("./type").DialogCloseContext) => void>;
onClosed: import("vue").PropType<() => void>;
onConfirm: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onOverlayClick: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "close" | "closed" | "confirm" | "overlay-click" | "update:visible")[], "cancel" | "close" | "closed" | "confirm" | "overlay-click" | "update:visible", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
actions: {
type: import("vue").PropType<import("@/components").TdButtonProps[]>;
};
beforeClose: {
type: import("vue").PropType<(trigger: "cancel" | "close-btn" | "confirm" | "overlay", context: {
e: MouseEvent;
}) => void | Promise<void>>;
};
buttonLayout: {
type: import("vue").PropType<"horizontal" | "vertical">;
default: "horizontal" | "vertical";
validator(val: "horizontal" | "vertical"): boolean;
};
cancelBtn: {
type: import("vue").PropType<string | import("@/components").TdButtonProps | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
};
closeBtn: BooleanConstructor;
closeOnOverlayClick: BooleanConstructor;
confirmBtn: {
type: import("vue").PropType<string | import("@/components").TdButtonProps | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
};
content: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
};
destroyOnClose: BooleanConstructor;
middle: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>;
};
overlayProps: {
type: import("vue").PropType<import("@/overlay/type").TdOverlayProps>;
default: () => {};
};
preventScrollThrough: {
type: BooleanConstructor;
default: boolean;
};
showOverlay: {
type: BooleanConstructor;
default: boolean;
};
title: {
type: import("vue").PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>;
};
top: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>;
};
visible: BooleanConstructor;
width: {
type: import("vue").PropType<string | number>;
};
zIndex: {
type: NumberConstructor;
};
onCancel: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onClose: import("vue").PropType<(context: import("./type").DialogCloseContext) => void>;
onClosed: import("vue").PropType<() => void>;
onConfirm: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onOverlayClick: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
}>> & Readonly<{
onCancel?: (...args: any[]) => any;
onClose?: (...args: any[]) => any;
onClosed?: (...args: any[]) => any;
onConfirm?: (...args: any[]) => any;
"onOverlay-click"?: (...args: any[]) => any;
"onUpdate:visible"?: (...args: any[]) => any;
}>, {
buttonLayout: "horizontal" | "vertical";
closeBtn: boolean;
closeOnOverlayClick: boolean;
destroyOnClose: boolean;
overlayProps: import("@/overlay/type").TdOverlayProps;
preventScrollThrough: boolean;
showOverlay: boolean;
visible: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;