2018-03-21 07:45:01 +00:00
|
|
|
<cn>
|
|
|
|
#### 文案展现
|
|
|
|
给评分组件加上文案展示。
|
|
|
|
</cn>
|
|
|
|
|
|
|
|
<us>
|
|
|
|
#### Show copywriting
|
|
|
|
Add copywriting in rate components.
|
|
|
|
</us>
|
|
|
|
|
|
|
|
```html
|
|
|
|
<template>
|
|
|
|
<span>
|
2019-03-18 12:00:00 +00:00
|
|
|
<a-rate :tooltips="desc" v-model='value'/>
|
|
|
|
<span class="ant-rate-text">{{desc[value - 1]}}</span>
|
2018-03-21 07:45:01 +00:00
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
value: 3,
|
2019-03-18 12:00:00 +00:00
|
|
|
desc: ['terrible', 'bad', 'normal', 'good', 'wonderful']
|
2018-03-21 07:45:01 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
```
|