forked from AkkomaGang/akkoma-fe
fix selects
This commit is contained in:
parent
4cb14c257c
commit
7a17eb7fec
2 changed files with 4 additions and 8 deletions
|
@ -8,12 +8,9 @@ library.add(
|
||||||
)
|
)
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
model: {
|
emits: ['update:modelValue'],
|
||||||
prop: 'value',
|
|
||||||
event: 'change'
|
|
||||||
},
|
|
||||||
props: [
|
props: [
|
||||||
'value',
|
'modelValue',
|
||||||
'disabled',
|
'disabled',
|
||||||
'unstyled',
|
'unstyled',
|
||||||
'kind'
|
'kind'
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<label
|
<label
|
||||||
class="Select input"
|
class="Select input"
|
||||||
|
@ -6,8 +5,8 @@
|
||||||
>
|
>
|
||||||
<select
|
<select
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:value="value"
|
:value="modelValue"
|
||||||
@change="$emit('change', $event.target.value)"
|
@change="$emit('update:modelValue', $event.target.value)"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in a new issue