UNPKG

@tplc/wot

Version:

22 lines (21 loc) 522 B
import type { InjectionKey, ExtractPropTypes } from 'vue' export type AnchorIndex = number | string export declare const indexBarProps: { /** * @description 索引是否吸顶 */ sticky: { type: BooleanConstructor default: boolean } } export type IndexBarProps = ExtractPropTypes<typeof indexBarProps> export type InderBarProvide = { props: { sticky?: boolean } anchorState: { activeIndex: AnchorIndex | null } } export declare const indexBarInjectionKey: InjectionKey<InderBarProvide>