@ohu-mobile/core
Version:
77 lines (76 loc) • 3.6 kB
TypeScript
import { ToastOptions, ToastInfoOptions } 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 & {
fire(): void;
close(): void;
} & {
icon: string | import("@ohu-mobile/icons/lib/types").SVGIconDef | import("..").IconProps | undefined;
duration: number;
content: string;
loading: boolean;
vertical: 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;
loading?: boolean | undefined;
round?: boolean | undefined;
content?: string | undefined;
position?: import("..").PopupPosition | undefined;
animate?: import("..").PopupAnimateType | undefined;
duration?: number | undefined;
vertical?: boolean | 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;
usePortal?: boolean | undefined;
} & import("./types").ToastProps, import("./types").ToastEvents, {}, {}> & {
open: (options: ToastOptions) => import("../_utils/createPopupMethodApi").PopupDepositComponent;
info: (...args: ToastInfoOptions) => import("../_utils/createPopupMethodApi").PopupDepositComponent;
loading: (...args: ToastInfoOptions) => import("../_utils/createPopupMethodApi").PopupDepositComponent;
success: (...args: ToastInfoOptions) => import("../_utils/createPopupMethodApi").PopupDepositComponent;
fail: (...args: ToastInfoOptions) => import("../_utils/createPopupMethodApi").PopupDepositComponent;
hide: () => void;
};
export default _default;
export * from './types';