@opensig/opendesign
Version:
21 lines (20 loc) • 626 B
TypeScript
import { InjectionKey, Ref } from 'vue';
import { DirectionT } from '../_utils/types';
export declare const anchorInjectKey: InjectionKey<{
addLink: (link: string) => void;
removeLink: (link: string) => void;
/**
* @deprecated 请使用 `item-click` 事件替代,将在 v2.0.0 移除
*/
onItemClick: (options: {
event: MouseEvent;
link?: string;
}) => void;
activeLink: Ref<string>;
scrollIntoView: (link: string) => void;
layout: Ref<DirectionT>;
getChangeHash: () => boolean;
}>;
export declare const anchorItemInjectKey: InjectionKey<{
depth: number;
}>;