/// import * as React from "react"; export interface BadgeProps extends React.HTMLAttributes { /** * 样式类名的品牌前缀 */ prefix?: string; /** * 自定义类名 */ className?: string; /** * 自定义内连样式 */ style?: React.CSSProperties; /** * 徽章依托的内容 */ children?: React.ReactNode; /** * 展示的数字,大于 overflowCount 时显示为 ${overflowCount}+,为 0 时隐藏 */ count?: number | string; /** * 展示的封顶的数字 */ overflowCount?: number | string; /** * 不展示数字,只展示一个小红点 */ dot?: boolean; /** * 徽章显示的位置 */ align?: "left"; } export default class Badge extends React.Component {}