GuLiMmo
2024-07-01 8e79b5c74f4c0f52cff9f18991cde9cfc16d270f
src/components/Search/Select.vue
@@ -12,14 +12,14 @@
const emit = defineEmits(['update:modelValue', 'handleChange'])
type Option = {
    label: string,
    value: string
    value: any
}
const props = defineProps({
  options: {
    type: Object as () => Option[],
    required: true,
  },
  modelValue: String,
  modelValue: [String, Number],
})
const value = computed({
  get: () => props.modelValue,