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

19 lines
354 B
Markdown

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