@minto-ai/mt-ui
Version:
UI组件库
27 lines (26 loc) • 801 B
TypeScript
import { ComputedRef, ExtractPropTypes, InjectionKey, PropType } from 'vue';
declare const tabsProps: {
/**
* 绑定值,选中选项卡的 name/索引 ,默认值是第一个 tab 的 索引
*/
readonly modelValue: {
readonly type: PropType<number | string>;
readonly default: 0;
};
/**
* 风格类型
*/
readonly type: {
readonly type: PropType<"button" | "card" | "line">;
readonly default: "card";
};
};
interface TabsContext {
currentTabName: ComputedRef<number | string>;
onChange: (tabName: number | string) => void;
type: 'button' | 'card' | 'line';
}
declare const TabsKey: InjectionKey<TabsContext>;
export { TabsKey };
export type TabsProps = ExtractPropTypes<typeof tabsProps>;
export { tabsProps };