mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 07:43:32 +09:00
44 lines
708 B
Markdown
44 lines
708 B
Markdown
---
|
|
state:
|
|
input: 2
|
|
---
|
|
|
|
### VRangeRating
|
|
|
|
Vuero provides number rating component with minimum styling.
|
|
`VRangeRating` act like a radio button group, with a custom style, this means
|
|
that you can use keyboard navigation to select the rating.
|
|
Always wrap your inputs inside a `<VField />` and a `<VControl />`
|
|
to build forms quickly and efficiently.
|
|
|
|
<!--code-->
|
|
|
|
```vue
|
|
<script setup lang="ts">
|
|
|
|
const input = ref(2)
|
|
</script>
|
|
|
|
<template>
|
|
<VField>
|
|
<VControl>
|
|
<VRangeRating v-model="input" />
|
|
</VControl>
|
|
</VField>
|
|
</template>
|
|
```
|
|
|
|
<!--/code-->
|
|
|
|
<!--example-->
|
|
|
|
<VField>
|
|
<VControl>
|
|
<VRangeRating
|
|
v-model="frontmatter.state.input"
|
|
/>
|
|
</VControl>
|
|
</VField>
|
|
|
|
<!--/example-->
|