修复打包报错

This commit is contained in:
2026-03-25 16:02:38 +08:00
parent d10dc81fc7
commit 5b209da678

View File

@@ -29,19 +29,27 @@
</template>
<script setup lang="ts">
type AnteConfigSearchForm = {
name?: string
title?: string
/** 1=是 0=否 */
is_default?: 0 | 1 | null
[key: string]: unknown
}
interface Props {
modelValue: Record<string, unknown>
modelValue: AnteConfigSearchForm
}
interface Emits {
(e: 'update:modelValue', value: Record<string, unknown>): void
(e: 'search', params: Record<string, unknown>): void
(e: 'update:modelValue', value: AnteConfigSearchForm): void
(e: 'search', params: AnteConfigSearchForm): void
(e: 'reset'): void
}
const props = defineProps<Props>()
const emit = defineEmits<Emits>()
const searchBarRef = ref()
const formData = computed({
const formData = computed<AnteConfigSearchForm>({
get: () => props.modelValue,
set: (val) => emit('update:modelValue', val)
})