@ohu-mobile/core
Version:
97 lines (96 loc) • 4.98 kB
TypeScript
import { DialogAlertOptions, DialogConfirmOptions, DialogOptions } from './types';
declare const _default: import("vue-tsx-support")._TsxComponentV3<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>> & import("../_utils/defineComponent").OhuComponentInnerProps & object & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & Record<never, any> & {
locale: any;
} & {
$l: any;
} & import("vue").ShallowUnwrapRef<{}> & import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>> & {
$scopedSlots: import("vue-tsx-support").InnerScopedSlots<{}>;
} & {
actionBtns: import("./types").DialogActionOptions[];
asyncActions: import("./types").DialogActionOptions[];
} & {
close(): void;
getOKAction(): import("./types").DialogActionOptions | undefined;
getCancelAction(): import("./types").DialogActionOptions | undefined;
getActionBtns(): import("./types").DialogActionOptions[];
createActionHandler(action: import("./types").DialogActionOptions): () => void;
renderActions(): VueTsxSupport.JSX.Element;
renderBody(): VueTsxSupport.JSX.Element;
} & {
image: string | import("..").ImageProps | undefined;
icon: string | import("@ohu-mobile/icons/lib/types").SVGIconDef | import("..").IconProps | undefined;
title: string;
content: string;
cancelBtn: string | import("./types").DialogActionOptions | null | undefined;
okBtn: string | import("./types").DialogActionOptions | null | undefined;
actions: import("./types").DialogActionOptions[] | null;
layout: "row" | "column";
closeAfterAsyncTaskCompleted: boolean;
visible: boolean;
anchor: HTMLElement | (() => HTMLElement) | undefined;
transformOrigin: import("..").PopupTransformOrigin | undefined;
marginThreshold: number;
edgeDetect: boolean;
lockScroll: boolean;
position: import("..").PopupPosition;
mask: boolean;
maskFrosted: boolean;
maskClosable: boolean;
maskAnimate: "none" | "mask-fade";
partialMask: "top" | "bottom" | undefined;
closeOnMaskTouched: boolean;
fullscreen: boolean;
animate: import("..").PopupAnimateType;
targetStyle: import("vue").CSSProperties | undefined;
targetClass: import("../_utils/classHelper").ClassOptions | undefined;
scrollBody: boolean;
tapThrough: boolean;
zIndex: number;
round: boolean;
hideOnDeactivated: boolean;
getContainer: import("..").PopupGetContainerFunc;
dynamic: boolean;
usePortal: boolean;
}, {}, {} & {
anchor?: HTMLElement | (() => HTMLElement) | undefined;
icon?: string | import("@ohu-mobile/icons/lib/types").SVGIconDef | import("..").IconProps | undefined;
title?: string | undefined;
round?: boolean | undefined;
content?: string | undefined;
position?: import("..").PopupPosition | undefined;
animate?: import("..").PopupAnimateType | undefined;
image?: string | import("..").ImageProps | undefined;
visible?: boolean | undefined;
getContainer?: import("..").PopupGetContainerFunc | undefined;
dynamic?: boolean | undefined;
transformOrigin?: import("..").PopupTransformOrigin | undefined;
marginThreshold?: number | undefined;
edgeDetect?: boolean | undefined;
lockScroll?: boolean | undefined;
mask?: boolean | undefined;
maskFrosted?: boolean | undefined;
maskClosable?: boolean | undefined;
maskAnimate?: "none" | "mask-fade" | undefined;
partialMask?: "top" | "bottom" | undefined;
closeOnMaskTouched?: boolean | undefined;
fullscreen?: boolean | undefined;
targetStyle?: import("vue").CSSProperties | undefined;
targetClass?: import("../_utils/classHelper").ClassOptions | undefined;
scrollBody?: boolean | undefined;
tapThrough?: boolean | undefined;
zIndex?: number | undefined;
hideOnDeactivated?: boolean | undefined;
layout?: "row" | "column" | undefined;
usePortal?: boolean | undefined;
cancelBtn?: string | import("./types").DialogActionOptions | null | undefined;
okBtn?: string | import("./types").DialogActionOptions | null | undefined;
actions?: import("./types").DialogActionOptions[] | null | undefined;
closeAfterAsyncTaskCompleted?: boolean | undefined;
} & import("./types").DialogProps, import("./types").DialogEvents, {}, {}> & {
alert: (options: DialogAlertOptions) => import("../_utils/createPopupMethodApi").PopupDepositComponent;
confirm: (options: DialogConfirmOptions) => import("../_utils/createPopupMethodApi").PopupDepositComponent;
open: (options: DialogOptions) => import("../_utils/createPopupMethodApi").PopupDepositComponent;
closeAll: () => void;
};
export default _default;
export * from './types';