UNPKG

@tplc/wot

Version:

41 lines (40 loc) 839 B
import type { ExtractPropTypes, PropType } from 'vue' import type { BadgeProps } from '../wd-badge/types' export declare const tabProps: { /** * 唯一标识符 */ name: (NumberConstructor | StringConstructor)[] /** * tab的标题 */ title: StringConstructor /** * 是否禁用,无法点击 */ disabled: { type: BooleanConstructor default: boolean } /** * 是否懒加载,切换到该tab时才加载内容 * @default true */ lazy: { type: BooleanConstructor default: boolean } /** * 徽标属性,透传给 Badge 组件 */ badgeProps: PropType<Partial<BadgeProps>> customStyle: { type: PropType<string> default: string } customClass: { type: PropType<string> default: string } } export type TabProps = ExtractPropTypes<typeof tabProps>