UNPKG

@tplc/wot

Version:

23 lines (22 loc) 548 B
import type { InjectionKey } from 'vue' import type { 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>