mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 13:13:41 +09:00
first
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
---
|
||||
state:
|
||||
input: ''
|
||||
---
|
||||
|
||||
### VSelect
|
||||
|
||||
Vuero provides elegant form controls with minimum styling.
|
||||
`VSelect` accept all attributes that `<select>` accepts.
|
||||
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('')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VField>
|
||||
<VControl>
|
||||
<VSelect v-model="input">
|
||||
<VOption value="">
|
||||
Select a Hero
|
||||
</VOption>
|
||||
<VOption value="Superman">
|
||||
Superman
|
||||
</VOption>
|
||||
<VOption value="Batman">
|
||||
Batman
|
||||
</VOption>
|
||||
<VOption value="Spiderman">
|
||||
Spiderman
|
||||
</VOption>
|
||||
<VOption value="Deadpool">
|
||||
Deadpool
|
||||
</VOption>
|
||||
<VOption value="Spawn">
|
||||
Spawn
|
||||
</VOption>
|
||||
<VOption value="Galactus">
|
||||
Galactus
|
||||
</VOption>
|
||||
</VSelect>
|
||||
</VControl>
|
||||
</VField>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
|
||||
<!--example-->
|
||||
|
||||
<VField>
|
||||
<VControl>
|
||||
<VSelect v-model="frontmatter.state.input">
|
||||
<VOption value="">Select a Hero</VOption>
|
||||
<VOption value="Superman">Superman</VOption>
|
||||
<VOption value="Batman">Batman</VOption>
|
||||
<VOption value="Spiderman">Spiderman</VOption>
|
||||
<VOption value="Deadpool">Deadpool</VOption>
|
||||
<VOption value="Spawn">Spawn</VOption>
|
||||
<VOption value="Galactus">Galactus</VOption>
|
||||
</VSelect>
|
||||
</VControl>
|
||||
</VField>
|
||||
|
||||
<!--/example-->
|
||||
Reference in New Issue
Block a user