docs: update avatar demo

pull/165/head
tangjinzhou 2018-05-14 10:58:46 +08:00
parent fcecf2c70f
commit d4334af499
1 changed files with 11 additions and 9 deletions

View File

@ -10,6 +10,7 @@ Three sizes and two shapes are available.
```html ```html
<template> <template>
<div>
<div> <div>
<a-avatar size="large" icon="user"/> <a-avatar size="large" icon="user"/>
<a-avatar icon="user"/> <a-avatar icon="user"/>
@ -21,5 +22,6 @@ Three sizes and two shapes are available.
<a-avatar shape="square" icon="user" /> <a-avatar shape="square" icon="user" />
<a-avatar shape="square" size="small" icon="user" /> <a-avatar shape="square" size="small" icon="user" />
</div> </div>
</div>
</template> </template>
``` ```