import React from 'react'; import { CommonType } from '../common/type'; export interface BadgeClasses { rootClass: string; badge: string; textBadge: string; count: string; custom: string; number: string; small: string; dot: string; textDot: string; zoom: string; status: string; text: string; singleWord: string; multipleWords: string; warning: string; success: string; error: string; default: string; processing: string; } export interface BadgeProps extends Pick { jssStyle?: { badge: () => BadgeClasses; }; /** * @en Content * @cn 内容 */ children?: React.ReactNode; /** * @en Custom badge color * @cn 自定义徽标颜色 */ color?: string; /** * @en Number to show, show ${overflowCount}+ when it is greater than overflowCount, hide when it is 0 * @cn 展示的数字,大于 overflowCount 时显示 ${overflowCount}+,为 0 时隐藏 */ count?: React.ReactNode; /** * @en Dot mode * @cn 小点模式,开启后不展示数字 * @default false */ dot?: boolean; /** * @en Offset of the badge * @cn 偏移量 */ offset?: [number, number]; /** * @en Offset of the badge * @cn 封顶数值 */ overflowCount?: number; /** * @en Whether to show Badge when the number is 0 * @cn 当数值为 0 时,是否展示 Badge * */ showZero?: boolean; /** * @en Whether to show Badge when the number is 0 * @cn 徽标状态 * */ status?: 'default' | 'processing' | 'error' | 'warning' | 'success'; /** * @en Status point text, only valid after configuring the status property * @cn 状态点文本,仅在配置了 status 属性后生效 */ text?: React.ReactNode; /** * @en Size, only valid in non-dot mode, supports two sizes: small and default * @cn 尺寸,仅在非 dot 模式下生效,支持 small 和 default 两种尺寸 */ size?: 'small' | 'default'; } //# sourceMappingURL=badge.type.d.ts.map