23 lines
491 B
TypeScript
23 lines
491 B
TypeScript
import type { ExtractPropTypes } from 'vue'
|
|
import { commonProps } from '../_utils'
|
|
import { badgeProps } from '../badge'
|
|
|
|
export const tabbaritemProps = {
|
|
...commonProps,
|
|
...badgeProps,
|
|
/**
|
|
* @description 标签名称,作为匹配的标识符
|
|
*/
|
|
name: String,
|
|
/**
|
|
* @description 标签页显示的图标
|
|
*/
|
|
icon: String,
|
|
/**
|
|
* @description 标签页的标题
|
|
*/
|
|
tabTitle: String,
|
|
}
|
|
|
|
export type TabBarItemProps = ExtractPropTypes<typeof tabbaritemProps>
|