UNPKG

@extclp/vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

27 lines (26 loc) 728 B
import { InjectionKey } from 'vue'; export interface AnchorLinkOptions { to: string; label: string; title?: string; children?: AnchorLinkOptions[]; } export interface AnchorLinkState { el?: HTMLElement; to: string; active: boolean; indent: number; } export interface AnchorState { currentActive: string; increaseLink(state: AnchorLinkState): void; decreaseLink(state: AnchorLinkState): void; handleActive(label: string): void; } export interface AnchorSlots { default?: () => any; marker?: () => any; } export declare const baseIndentWidth = 14; export declare const LINK_STATE: InjectionKey<AnchorLinkState>; export declare const ANCHOR_STATE: InjectionKey<AnchorState>;