修复打包报错
This commit is contained in:
@@ -29,19 +29,27 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
type AnteConfigSearchForm = {
|
||||||
|
name?: string
|
||||||
|
title?: string
|
||||||
|
/** 1=是 0=否 */
|
||||||
|
is_default?: 0 | 1 | null
|
||||||
|
[key: string]: unknown
|
||||||
|
}
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
modelValue: Record<string, unknown>
|
modelValue: AnteConfigSearchForm
|
||||||
}
|
}
|
||||||
interface Emits {
|
interface Emits {
|
||||||
(e: 'update:modelValue', value: Record<string, unknown>): void
|
(e: 'update:modelValue', value: AnteConfigSearchForm): void
|
||||||
(e: 'search', params: Record<string, unknown>): void
|
(e: 'search', params: AnteConfigSearchForm): void
|
||||||
(e: 'reset'): void
|
(e: 'reset'): void
|
||||||
}
|
}
|
||||||
const props = defineProps<Props>()
|
const props = defineProps<Props>()
|
||||||
const emit = defineEmits<Emits>()
|
const emit = defineEmits<Emits>()
|
||||||
|
|
||||||
const searchBarRef = ref()
|
const searchBarRef = ref()
|
||||||
const formData = computed({
|
const formData = computed<AnteConfigSearchForm>({
|
||||||
get: () => props.modelValue,
|
get: () => props.modelValue,
|
||||||
set: (val) => emit('update:modelValue', val)
|
set: (val) => emit('update:modelValue', val)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user