UNPKG

element-plus

Version:

A Component Library for Vue 3

49 lines (48 loc) 3.43 kB
import type { ExtractPropTypes, VNode } from 'vue'; export declare const notificationTypes: readonly ["success", "info", "warning", "error"]; export declare const notificationProps: { readonly customClass: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>; readonly dangerouslyUseHTMLString: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>; readonly duration: import("element-plus/es/utils").BuildPropReturn<NumberConstructor, 4500, unknown, unknown, unknown>; readonly icon: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<string | Comment>, "", unknown, unknown, unknown>; readonly id: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>; readonly message: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<string | VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>>, "", unknown, unknown, unknown>; readonly offset: import("element-plus/es/utils").BuildPropReturn<NumberConstructor, 0, unknown, unknown, unknown>; readonly onClick: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<() => void>, () => undefined, unknown, unknown, unknown>; readonly onClose: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<() => void>, unknown, true, unknown, unknown>; readonly position: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "top-right", unknown, "top-right" | "top-left" | "bottom-right" | "bottom-left", unknown>; readonly showClose: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>; readonly title: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>; readonly type: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, "" | "success" | "warning" | "info" | "error", unknown>; readonly zIndex: import("element-plus/es/utils").BuildPropReturn<NumberConstructor, 0, unknown, unknown, unknown>; }; export declare type NotificationProps = ExtractPropTypes<typeof notificationProps>; export declare const notificationEmits: { destroy: () => boolean; }; export declare type NotificationEmits = typeof notificationEmits; export declare type NotificationOptions = Omit<NotificationProps, 'id'> & { appendTo?: HTMLElement | string; }; export declare type NotificationOptionsTyped = Omit<NotificationOptions, 'type'>; export interface NotificationHandle { close: () => void; } export declare type NotificationParams = Partial<NotificationOptions> | string | VNode; export declare type NotificationParamsTyped = Partial<NotificationOptionsTyped> | string | VNode; export declare type NotifyFn = ((options?: NotificationParams) => NotificationHandle) & { closeAll: () => void; }; export declare type NotifyTypedFn = (options?: NotificationParamsTyped) => NotificationHandle; export interface Notify extends NotifyFn { success: NotifyTypedFn; warning: NotifyTypedFn; error: NotifyTypedFn; info: NotifyTypedFn; } export interface NotificationQueueItem { vm: VNode; } export declare type NotificationQueue = NotificationQueueItem[];