mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 02:57:50 +08:00
fix card dynamic demo
This commit is contained in:
parent
8a91d4a17b
commit
aa1bcfe5db
@ -9,6 +9,12 @@ For letter type Avatar, when the letters are too long to display, the font size
|
||||
</us>
|
||||
|
||||
```html
|
||||
<template>
|
||||
<div>
|
||||
<a-avatar shape="square" size="large" :style="{'backgroundColor': color}">{{avatarValue}}</a-avatar>
|
||||
<a-button @click="changeValue">改变</a-button>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
const UserList = ['U', 'Lucy', 'Tom', 'Edward']
|
||||
const colorList = ['#f56a00', '#7265e6', '#ffbf00', '#00a2ae']
|
||||
@ -28,10 +34,4 @@ For letter type Avatar, when the letters are too long to display, the font size
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<div>
|
||||
<a-avatar shape="square" size="large" :style="{'backgroundColor': color}">{{avatarValue}}</a-avatar>
|
||||
<a-button @click="changeValue">改变</a-button>
|
||||
</div>
|
||||
</template>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user