UNPKG

@tplc/wot

Version:

45 lines (44 loc) 1.05 kB
import type { ExtractPropTypes, PropType } from 'vue' import type { BadgeProps } from '../wd-badge/types' export declare const sidebarItemProps: { /** 当前选项标题 */ label: { type: StringConstructor required: true } /** 当前选项的值,唯一标识 */ value: { type: (NumberConstructor | StringConstructor)[] required: true } /** 徽标显示值 */ badge: { type: PropType<string | number | null> default: null } /** 徽标属性,透传给 Badge 组件 */ badgeProps: PropType<Partial<BadgeProps>> /** 图标 */ icon: StringConstructor /** 是否点状徽标 */ isDot: { type: BooleanConstructor default: undefined } /** 徽标最大值 */ max: NumberConstructor /** 是否禁用 */ disabled: { type: BooleanConstructor default: boolean } customStyle: { type: PropType<string> default: string } customClass: { type: PropType<string> default: string } } export type SidebarItemProps = ExtractPropTypes<typeof sidebarItemProps>