23 lines
395 B
Markdown
23 lines
395 B
Markdown
<cn>
|
|
#### 带徽标的头像
|
|
通常用于消息提示。
|
|
</cn>
|
|
|
|
<us>
|
|
#### With Badge
|
|
Usually used for messages remind.
|
|
</us>
|
|
|
|
```html
|
|
<template>
|
|
<div>
|
|
<span style="margin-right:24px">
|
|
<a-badge :count="1"><a-avatar shape="square" icon="user" /></a-badge>
|
|
</span>
|
|
<span>
|
|
<a-badge dot><a-avatar shape="square" icon="user" /></a-badge>
|
|
</span>
|
|
</div>
|
|
</template>
|
|
```
|