fine-true
Version:
A small and beautiful Vue3 version of the UI Library
21 lines (17 loc) • 535 B
text/typescript
import { InjectionKey, VNode, ComputedRef } from 'vue';
export type ColumnInfo = {
label: string;
prop: string;
render?: VNode[];
};
export type TableProvideKey = {
addColumn?: (columnInfo: ColumnInfo) => void;
};
export const TABLEPROVIDEKEY: InjectionKey<TableProvideKey> =
Symbol('table-provide-key');
export type TabsProvideKey = {
activeValue: ComputedRef<string>;
tabPosition: ComputedRef<string>;
};
export const TABSPROVIDERKEY: InjectionKey<TabsProvideKey> =
Symbol('tabs-provode-ley');