UNPKG

@tplc/wot

Version:

25 lines (24 loc) 653 B
import { type ExtractPropTypes, type InjectionKey } from 'vue' export type SidebarProvide = { props: Partial<SidebarProps> setChange: (value: number | string, label: string) => void } export declare const SIDEBAR_KEY: InjectionKey<SidebarProvide> export declare const sidebarProps: { /** * 当前导航项的索引 */ modelValue: { type: (NumberConstructor | StringConstructor)[] default: number } customStyle: { type: import('vue').PropType<string> default: string } customClass: { type: import('vue').PropType<string> default: string } } export type SidebarProps = ExtractPropTypes<typeof sidebarProps>