@opensig/opendesign
Version:
<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>
113 lines (112 loc) • 2.38 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
import { SizeT } from '../_utils/types';
export declare const TabVariantTypes: readonly ["solid", "text"];
export type TabVariantT = (typeof TabVariantTypes)[number];
export declare const tabProps: {
/**
* tab选中的nav值
* v-model
*/
modelValue: {
type: (NumberConstructor | StringConstructor)[];
default: undefined;
};
/**
* 类型 TabVariantT
*/
variant: {
type: PropType<TabVariantT>;
default: string;
};
/**
* 大小 SizeT
*/
size: {
type: PropType<SizeT>;
};
/**
* 是否激活时再加载
*/
lazy: {
type: BooleanConstructor;
};
/**
* 是否可以添加页签
*/
addable: {
type: BooleanConstructor;
};
/**
* 不激活新添加页签
*/
addInactive: {
type: BooleanConstructor;
};
/**
* 是否展示nav线
*/
line: {
type: BooleanConstructor;
default: boolean;
};
/**
* 头部是否固定
*/
headerClass: {
type: PropType<string | any[]>;
default: undefined;
};
};
export type TabPropsT = ExtractPropTypes<typeof tabProps>;
export declare const tabPaneProps: {
/**
* 页签项的key
*/
value: {
type: (NumberConstructor | StringConstructor)[];
default: undefined;
};
/**
* 页签项的文本,如果不传,使用nav插槽或者value
*/
label: {
type: StringConstructor;
default: undefined;
};
/**
* 页签切换时过渡动画
*/
transition: {
type: StringConstructor;
default: string;
};
/**
* 是否禁用选中该页签
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 是否可以删除该页签
*/
closable: {
type: BooleanConstructor;
default: boolean;
};
/**
* 是否页签首次激活前不渲染页签内容
*/
lazy: {
type: BooleanConstructor;
default: boolean;
};
/**
* 是否在隐藏时卸载页签内容
*/
unmountOnHide: {
type: BooleanConstructor;
default: boolean;
};
};
export type TabPanePropsT = ExtractPropTypes<typeof tabPaneProps>;