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.
18 lines
663 B
18 lines
663 B
|
2 years ago
|
import type { ComponentInternalInstance, VNode } from 'vue';
|
||
|
|
import type { Mutable } from 'element-plus/es/utils';
|
||
|
|
import type { MessageHandler, MessageProps } from './message';
|
||
|
|
export declare type MessageContext = {
|
||
|
|
id: string;
|
||
|
|
vnode: VNode;
|
||
|
|
handler: MessageHandler;
|
||
|
|
vm: ComponentInternalInstance;
|
||
|
|
props: Mutable<MessageProps>;
|
||
|
|
};
|
||
|
|
export declare const instances: MessageContext[];
|
||
|
|
export declare const getInstance: (id: string) => {
|
||
|
|
current: MessageContext;
|
||
|
|
prev: MessageContext | undefined;
|
||
|
|
};
|
||
|
|
export declare const getLastOffset: (id: string) => number;
|
||
|
|
export declare const getOffsetOrSpace: (id: string, offset: number) => number;
|