This commit is contained in:
oneao committed 2025-12-11 22:26:28 +08:00
1 parent 57c0d98f11
commit 861b529d9b
19 files changed
+742 -66

No files matched your search

@@ -1,8 +1,13 @@
<script lang="ts" setup>
import type { PropType } from 'vue'
import type { Area, CompanyQuery, Property } from '@/types/company/index'
import { computed } from 'vue'
const props = defineProps({
modelValue: {
type: Object as PropType<CompanyQuery>,
required: true,
},
properties: {
type: Object as PropType<Property[]>,
required: false,
@@ -13,11 +18,14 @@ const props = defineProps({
},
})
const query: CompanyQuery = {
areas: [],
properties: [],
name: '',
}
const emit = defineEmits(['update:modelValue'])
const query = computed({
get: () => props.modelValue,
set: (val: CompanyQuery) => {
emit('update:modelValue', val)
},
})
</script>
<template>