@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
25 lines (24 loc) • 708 B
TypeScript
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;
lazy: boolean;
lazyLoad: boolean;
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>;