ant-design-vue/antdv-demo/docs/rate/demo/text.md

29 lines
454 B
Markdown

<cn>
#### ๆ–‡ๆกˆๅฑ•็Žฐ
็ป™่ฏ„ๅˆ†็ป„ไปถๅŠ ไธŠๆ–‡ๆกˆๅฑ•็คบใ€‚
</cn>
<us>
#### Show copywriting
Add copywriting in rate components.
</us>
```vue
<template>
<span>
<a-rate v-model="value" :tooltips="desc" />
<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>
```