You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/rate/demo/half.vue

32 lines
410 B

<docs>
---
order: 1
title:
zh-CN: 半星
en-US: Half star
---
## zh-CN
支持选中半星
## en-US
Support select half star.
</docs>
<template>
<a-rate v-model:value="value" allow-half />
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
const value = ref<number>(2.5);
return {
value,
};
},
});
</script>