import React from 'react'; export interface BadgeProps { /** * 子元素 */ children?: React.ReactNode; /** * 添加自定义类名 */ className?: string; /** * 指定颜色 */ color?: string; /** * 设置为圆点形式 */ dot?: boolean; /** * 指定数字 */ count?: number; /** * 指定封顶数值 */ overflowCount?: number; /** * 设置数字为0时显示 */ showZero?: boolean; /** * 设置自定义badge的内容 */ badgeContent?: React.ReactNode; /** * 设置鼠标悬浮时显示的文字 */ title?: string; /** * 设置徽标的显示位置 */ anchorOrigin?: { horizontal: 'left' | 'right'; vertical: 'bottom' | 'top'; }; } /** * 徽章 组件 * * @param {BadgeProps} props * @returns */ declare const Badge: React.ForwardRefExoticComponent>; export default Badge;