UNPKG

wot-design-uni

Version:

一个基于Vue3+TS开发的uni-app组件库,提供70+高质量组件,支持暗黑模式、国际化和自定义主题。

31 lines (28 loc) 694 B
import type { ExtractPropTypes, PropType } from 'vue' import { baseProps, makeBooleanProp, numericProp } from '../common/props' import type { BadgeProps } from '../wd-badge/types' export const tabProps = { ...baseProps, /** * 唯一标识符 */ name: numericProp, /** * tab的标题 */ title: String, /** * 是否禁用,无法点击 */ disabled: makeBooleanProp(false), /** * 是否懒加载,切换到该tab时才加载内容 * @default true */ lazy: makeBooleanProp(true), /** * 徽标属性,透传给 Badge 组件 */ badgeProps: Object as PropType<Partial<BadgeProps>> } export type TabProps = ExtractPropTypes<typeof tabProps>