fix: 修复 GiForm 查询按钮样式错误

This commit is contained in:
2024-10-19 20:12:59 +08:00
parent 6e39681f96
commit ae08678fa1

View File

@@ -13,7 +13,7 @@
:model-value="modelValue[item.field as keyof typeof modelValue]" :model-value="modelValue[item.field as keyof typeof modelValue]"
@update:model-value="valueChange($event, item.field)" /> @update:model-value="valueChange($event, item.field)" />
</template> </template>
<component v-else :is="`a-${item.type}`" v-bind="getComponentBindProps(item)" <component :is="`a-${item.type}`" v-else v-bind="getComponentBindProps(item)"
:model-value="modelValue[item.field as keyof typeof modelValue]" :model-value="modelValue[item.field as keyof typeof modelValue]"
@update:model-value="valueChange($event, item.field)"></component> @update:model-value="valueChange($event, item.field)"></component>
</slot> </slot>
@@ -24,7 +24,7 @@
</a-col> </a-col>
</template> </template>
<a-col v-if="!options.btns?.hide" :span="options.btns?.span || 12" v-bind="options.btns?.col"> <a-col v-if="!options.btns?.hide" :span="options.btns?.span || 12" v-bind="options.btns?.col">
<a-space wrap> <a-space wrap :size="[8, 16]" style="flex-wrap: nowrap">
<slot name="suffix"> <slot name="suffix">
<a-button type="primary" @click="emit('search')"> <a-button type="primary" @click="emit('search')">
<template #icon><icon-search /></template> <template #icon><icon-search /></template>