Browse Source

docs: add demo for `overflowCount`

pull/732/head
Benjy Cui 9 years ago
parent
commit
24398cd3e5
  1. 15
      components/badge/demo/overflow.md

15
components/badge/demo/overflow.md

@ -0,0 +1,15 @@
# 封顶数字
- order: 6
超过 `overflowCount` 的会显示为 `${overflowCount}+`
---
````jsx
import { Badge } from 'antd';
ReactDOM.render(<Badge count={99} overflowCount={10}>
<a href="#" className="head-example"></a>
</Badge>, document.getElementById('components-badge-demo-overflow'));
````
Loading…
Cancel
Save