mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 08:03:34 +09:00
42 lines
534 B
Markdown
42 lines
534 B
Markdown
---
|
|
state:
|
|
input: 7
|
|
---
|
|
|
|
### Change max values
|
|
|
|
You can change the max value of the rating component by using the `max` prop
|
|
which defaults to `5`.
|
|
|
|
<!--code-->
|
|
|
|
```vue
|
|
<script setup lang="ts">
|
|
|
|
const input = ref(2)
|
|
</script>
|
|
|
|
<template>
|
|
<VField>
|
|
<VControl>
|
|
<VRangeRating v-model="input" :max="10" />
|
|
</VControl>
|
|
</VField>
|
|
</template>
|
|
```
|
|
|
|
<!--/code-->
|
|
|
|
<!--example-->
|
|
|
|
<VField>
|
|
<VControl>
|
|
<VRangeRating
|
|
v-model="frontmatter.state.input"
|
|
:max="10"
|
|
/>
|
|
</VControl>
|
|
</VField>
|
|
|
|
<!--/example-->
|