Badge 徽章

徽章用于显示状态、计数等信息。

基础用法

独立使用

API

Props

属性说明类型默认值
content徽章内容string | number-
max最大值number99
dot红点模式booleanfalse
variant变体'default' | 'primary' | 'success' | 'warning' | 'gold''default'
standalone独立使用booleanfalse
position位置'top-right' | 'top-left' | 'bottom-right' | 'bottom-left''top-right'