This commit is contained in:
2025-09-19 14:25:20 +08:00
parent 269893a435
commit fbf3f77229
24949 changed files with 2839404 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import type { ComponentInternalInstance, VNode } from 'vue';
import type { Mutable } from 'element-plus/es/utils';
import type { MessageHandler, MessagePlacement, MessageProps } from './message';
export type MessageContext = {
id: string;
vnode: VNode;
handler: MessageHandler;
vm: ComponentInternalInstance;
props: Mutable<MessageProps>;
};
export declare const placementInstances: import("vue").ShallowReactive<Record<"top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right", MessageContext[]>>;
export declare const getOrCreatePlacementInstances: (placement: MessagePlacement) => MessageContext[];
export declare const getInstance: (id: string, placement: MessagePlacement) => {
current: MessageContext;
prev: MessageContext | undefined;
};
export declare const getLastOffset: (id: string, placement: MessagePlacement) => number;
export declare const getOffsetOrSpace: (id: string, offset: number, placement: MessagePlacement) => number;