2018-02-07 10:44:11 +00:00
|
|
|
## API
|
|
|
|
|
2018-03-09 09:50:33 +00:00
|
|
|
````html
|
|
|
|
<a-badge :count="5">
|
2018-02-07 10:44:11 +00:00
|
|
|
<a href="#" class="head-example" />
|
|
|
|
</a-badge>
|
2018-03-09 09:50:33 +00:00
|
|
|
````
|
2018-02-07 10:44:11 +00:00
|
|
|
|
2018-03-09 09:50:33 +00:00
|
|
|
```html
|
|
|
|
<a-badge :count="5" />
|
|
|
|
````
|
2018-02-07 10:44:11 +00:00
|
|
|
|
|
|
|
| Property | Description | Type | Default |
|
|
|
|
| -------- | ----------- | ---- | ------- |
|
2018-03-09 09:50:33 +00:00
|
|
|
| count | Number to show in badge | number\|string | |
|
2018-02-07 10:44:11 +00:00
|
|
|
| dot | Whether to display a red dot instead of `count` | boolean | `false` |
|
|
|
|
| offset | set offset of the badge dot, like [x, y] | [number, number] | - |
|
|
|
|
| overflowCount | Max count to show | number | 99 |
|
|
|
|
| showZero | Whether to show badge when `count` is zero | boolean | `false` |
|
|
|
|
| status | Set Badge as a status dot | `success` \| `processing` \| `default` \| `error` \| `warning` | `''` |
|
|
|
|
| text | If `status` is set, `text` sets the display text of the status `dot` | string | `''` |
|
2018-03-09 09:50:33 +00:00
|
|
|
| numberStyle | sets the display style of the status `dot` | object | '' |
|