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>