@tplc/wot
Version:
54 lines (53 loc) • 997 B
TypeScript
import type { ExtractPropTypes, PropType } from 'vue'
import type { BadgeProps } from '../wd-badge/types'
/**
* 折叠面板子项
*/
export interface TabbarItem {
name: string | number
}
export declare const tabbarItemProps: {
/**
* 标签页的标题
*/
title: StringConstructor
/**
* 唯一标识符
*/
name: (NumberConstructor | StringConstructor)[]
/**
* 图标
*/
icon: StringConstructor
/**
* 徽标显示值
*/
value: {
type: PropType<number | string | null>
default: null
}
/**
* 是否点状徽标
*/
isDot: {
type: BooleanConstructor
default: undefined
}
/**
* 徽标最大值
*/
max: NumberConstructor
/**
* 徽标属性,透传给 Badge 组件
*/
badgeProps: PropType<BadgeProps>
customStyle: {
type: PropType<string>
default: string
}
customClass: {
type: PropType<string>
default: string
}
}
export type TabbarItemProps = ExtractPropTypes<typeof tabbarItemProps>