mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 06:03:39 +09:00
1.9 KiB
1.9 KiB
optionMultipleObject, valueMultipleObject
| optionMultipleObject | valueMultipleObject | |||||||
|---|---|---|---|---|---|---|---|---|
|
|
Options object
The <Multiselect /> component can receive data with his options props. You
can either pass an Array or Object to the options props. You can also
activate the multiple mode by setting the mode prop to mode="multiple".
<script setup lang="ts">
const valueMultipleObject = ['robin']
const optionMultipleObject = {
batman: 'Batman',
robin: 'Robin',
joker: 'Joker',
}
</script>
<template>
<VField v-slot="{ id }">
<VControl>
<Multiselect
v-model="valueMultipleObject"
:attrs="{ id }"
mode="multiple"
:options="optionMultipleObject"
placeholder="Select options"
/>
</VControl>
</VField>
</template>