Badge 徽标

代码演示

API

Attributes

参数 说明 类型 可选值 默认值
count 显示值 string, number
dot 小圆点 boolean false
offset 设置状态点的位置偏移,格式为 [x, y] [number|string, number|string] -
overflowCount 最大值,超过最大值会显示 '{overflowCount}+',要求 count 是 Number 类型 number 99
showZero 当数值为 0 时,是否展示 Badge boolean false
status 类型 primary / success / warning / error / processing -
text 在设置了 status 的前提下有效,设置状态点的文本 string
numberStyle 设置状态点的样式 object
title 设置鼠标放在状态点上时显示的文字 string count

贡献者

类型 参与者
设计者 UED视觉组
维护者 UED前端组
上次更新: 3/17/2020, 8:46:00 PM