@arco-design/web-vue
Version:
Arco Design Vue 2.0: A Vue.js 3 UI Library
9 lines (8 loc) • 319 B
TypeScript
import { InjectionKey } from 'vue';
export interface AnchorContext {
currentLink: string;
addLink: (hash: string, node: HTMLElement) => void;
removeLink: (hash: string) => void;
handleClick: (e: MouseEvent, hash?: string) => void;
}
export declare const anchorInjectionKey: InjectionKey<AnchorContext>;