big update

This commit is contained in:
2023-07-27 15:36:52 +03:00
parent 6179e53af7
commit 154cfcfae1
17 changed files with 319 additions and 119 deletions

View File

@@ -4,7 +4,7 @@ import UiField from './Field.vue'
const props = defineProps<{
modelValue?: string | number,
options: { value: string, text: string }[]
options: { text: string, value: any }[]
}>()
const emit = defineEmits<{ (e: 'update:modelValue', v?: any): void }>()
@@ -16,9 +16,10 @@ const displayValue = computed({
</script>
<template>
<ui-field tag="select" class="ui-field-select">
<option v-for="opt in props.options" :value="opt.value">
{{opt.text}}
</option>
</ui-field>
<ui-field
tag="select"
class="ui-field-select"
:options="props.options"
v-model="displayValue"
/>
</template>