forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
539 additions
and
27 deletions.
There are no files selected for viewing
198 changes: 198 additions & 0 deletions
198
components/avatar/__tests__/__snapshots__/demo.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
order: 3 | ||
title: | ||
zh-CN: 带徽标的头像 | ||
en-US: With Badge | ||
--- | ||
|
||
## zh-CN | ||
|
||
通常用于消息提示。 | ||
|
||
## en-US | ||
|
||
Usually used for messages remind. | ||
|
||
````jsx | ||
import { Avatar, Badge } from 'antd'; | ||
|
||
ReactDOM.render( | ||
<div> | ||
<span style={{ marginRight: 24 }}> | ||
<Badge count={1}><Avatar shape="square" icon="user" /></Badge> | ||
</span> | ||
<span> | ||
<Badge dot><Avatar shape="square" icon="user" /></Badge> | ||
</span> | ||
</div> | ||
, mountNode); | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.