You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
613 B
Markdown
21 lines
613 B
Markdown
10 years ago
|
# Badge
|
||
|
|
||
|
- category: Components
|
||
|
- chinese: 徽标数字
|
||
|
- type: 展示
|
||
|
|
||
|
---
|
||
|
|
||
|
图标右上角的徽标数字。
|
||
|
|
||
|
## 何时使用
|
||
|
|
||
|
一般出现在通知图标或头像的右上角,用于显示需要处理的消息条数。
|
||
|
|
||
|
## API
|
||
|
|
||
|
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
||
|
|----------------|----------------------------------|------------|---------|--------|
|
||
|
| count | 展示的数字,大于 99 时显示为 99+ | Number | | |
|
||
|
| dot | 不展示数字,只有一个小红点 | boolean | | false |
|