mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 21:18:14 +08:00
9be58078d2
* feat(demo): A-B * feat(demo): update B-checkbox * feat(demo): update CheckBox -DatePicker * feat(demo): update DatePicker - Form * feat(demo): update Form - List * feat(demo): update List-pagination * feat(demo): update List - skeleton * feat(demo): update skeleton - switch * feat(demo): update skeleton - switch * feat(demo): update switch - upload * feat(demo): update watermark * fix(demo): del hashId
29 lines
512 B
Vue
29 lines
512 B
Vue
<docs>
|
|
---
|
|
order: 2
|
|
title:
|
|
zh-CN: 文案展现
|
|
en-US: Show copywriting
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
给评分组件加上文案展示。
|
|
|
|
## en-US
|
|
|
|
Add copywriting in rate components.
|
|
|
|
</docs>
|
|
<template>
|
|
<span>
|
|
<a-rate v-model:value="value" :tooltips="desc" />
|
|
<span class="ant-rate-text">{{ desc[value - 1] }}</span>
|
|
</span>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue';
|
|
const value = ref<number>(3);
|
|
const desc = ref<string[]>(['terrible', 'bad', 'normal', 'good', 'wonderful']);
|
|
</script>
|