25 lines
		
	
	
		
			961 B
		
	
	
	
		
			Markdown
		
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			961 B
		
	
	
	
		
			Markdown
		
	
	
| ## API
 | |
| 
 | |
| 
 | |
| ````html
 | |
| <a-badge :count="5">
 | |
|   <a href="#" class="head-example" />
 | |
| </a-badge>
 | |
| ````
 | |
| 
 | |
| ```html
 | |
| <a-badge :count="5" />
 | |
| ````
 | |
| 
 | |
| | 参数 | 说明 | 类型 | 默认值 |
 | |
| | --- | --- | --- | --- |
 | |
| | count | 展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏 | number\|string  |  |
 | |
| | dot | 不展示数字,只有一个小红点 | boolean | false |
 | |
| | offset | 设置状态点的位置偏移,格式为 [x, y] | [number\|string, number\|string] | - |
 | |
| | overflowCount | 展示封顶的数字值 | number | 99 |
 | |
| | showZero | 当数值为 0 时,是否展示 Badge | boolean | false |
 | |
| | status | 设置 Badge 为状态点 | Enum{ 'success', 'processing, 'default', 'error', 'warning' } | '' |
 | |
| | text | 在设置了 `status` 的前提下有效,设置状态点的文本 | string | '' |
 | |
| | numberStyle | 设置状态点的样式 | object | '' |
 | |
| | title | 设置鼠标放在状态点上时显示的文字 | string | `count` |
 |