mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-12 11:55:26 +08:00
449 B
449 B
#### 文案展现
给评分组件加上文案展示。
#### Show copywriting
Add copywriting in rate components.
<template>
<span>
<a-rate :tooltips="desc" v-model='value'/>
<span class="ant-rate-text">{{desc[value - 1]}}</span>
</span>
</template>
<script>
export default {
data() {
return {
value: 3,
desc: ['terrible', 'bad', 'normal', 'good', 'wonderful']
}
},
}
</script>