mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
468 B
468 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>