You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
3.5 KiB
49 lines
3.5 KiB
import type { VNode, ExtractPropTypes } from 'vue';
|
|
export declare const notificationTypes: readonly ["success", "info", "warning", "error"];
|
|
export declare const notificationProps: {
|
|
readonly customClass: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
|
|
readonly dangerouslyUseHTMLString: import("element-plus/es/utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
readonly duration: import("element-plus/es/utils/props").BuildPropReturn<NumberConstructor, 4500, unknown, unknown, unknown>;
|
|
readonly icon: import("element-plus/es/utils/props").BuildPropReturn<import("element-plus/es/utils/props").PropWrapper<string | Comment>, "", unknown, unknown, unknown>;
|
|
readonly id: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
|
|
readonly message: import("element-plus/es/utils/props").BuildPropReturn<import("element-plus/es/utils/props").PropWrapper<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
[key: string]: any;
|
|
}>>, "", unknown, unknown, unknown>;
|
|
readonly offset: import("element-plus/es/utils/props").BuildPropReturn<NumberConstructor, 0, unknown, unknown, unknown>;
|
|
readonly onClick: import("element-plus/es/utils/props").BuildPropReturn<import("element-plus/es/utils/props").PropWrapper<() => void>, () => undefined, unknown, unknown, unknown>;
|
|
readonly onClose: import("element-plus/es/utils/props").BuildPropReturn<import("element-plus/es/utils/props").PropWrapper<() => void>, unknown, true, unknown, unknown>;
|
|
readonly position: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "top-right", unknown, "top-right" | "top-left" | "bottom-right" | "bottom-left", unknown>;
|
|
readonly showClose: import("element-plus/es/utils/props").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
readonly title: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
|
|
readonly type: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "", unknown, "" | "success" | "warning" | "info" | "error", unknown>;
|
|
readonly zIndex: import("element-plus/es/utils/props").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[];
|