UNPKG

@extclp/vexip-ui

Version:

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

23 lines (22 loc) 666 B
import { InjectionKey } from 'vue'; import { TabNavSlots } from '../tab-nav'; export interface ItemState { label: string | number; name: string; icon: Record<string, any>; disabled: boolean; closable?: boolean; labelRenderer: null | ((data: { label: string | number; }) => any); } export interface TabsState { currentActive: string | number; increaseItem: (item: ItemState) => void; decreaseItem: (item: ItemState) => void; handleActive: (label: string | number) => void; refreshLabels: () => void; } export interface TabsSlots extends TabNavSlots { } export declare const TABS_STATE: InjectionKey<TabsState>;