fine-true
Version:
A small and beautiful Vue3 version of the UI Library
16 lines (15 loc) • 516 B
TypeScript
import { InjectionKey, VNode, ComputedRef } from 'vue';
export declare type ColumnInfo = {
label: string;
prop: string;
render?: VNode[];
};
export declare type TableProvideKey = {
addColumn?: (columnInfo: ColumnInfo) => void;
};
export declare const TABLEPROVIDEKEY: InjectionKey<TableProvideKey>;
export declare type TabsProvideKey = {
activeValue: ComputedRef<string>;
tabPosition: ComputedRef<string>;
};
export declare const TABSPROVIDERKEY: InjectionKey<TabsProvideKey>;