ant-design-vue/components/badge/demo/overflow.md

29 lines
719 B
Markdown
Raw Normal View History

2018-02-07 18:44:11 +08:00
<cn>
#### 封顶数字
超过 `overflowCount` 的会显示为 `${overflowCount}+`,默认的 `overflowCount``99`
</cn>
<us>
#### Overflow Count
`${overflowCount}+` is displayed when count is larger than `overflowCount`. The default value of `overflowCount` is `99`.
</us>
```html
<template>
2018-03-09 17:50:33 +08:00
<div>
<a-badge :count="99">
<a href="#" class="head-example"></a>
</a-badge>
<a-badge :count="100">
<a href="#" class="head-example"></a>
</a-badge>
<a-badge :count="99" :overflowCount="10">
<a href="#" class="head-example"></a>
</a-badge>
<a-badge :count="1000" :overflowCount="999">
<a href="#" class="head-example"></a>
</a-badge>
</div>
2018-02-07 18:44:11 +08:00
</template>
```