Skip to content

Commit

Permalink
fix: 修复 GiForm 查询按钮样式错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Oct 19, 2024
1 parent 6e39681 commit ae08678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/GiForm/src/GiForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:model-value="modelValue[item.field as keyof typeof modelValue]"
@update:model-value="valueChange($event, item.field)" />
</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]"
@update:model-value="valueChange($event, item.field)"></component>
</slot>
Expand All @@ -24,7 +24,7 @@
</a-col>
</template>
<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">
<a-button type="primary" @click="emit('search')">
<template #icon><icon-search /></template>
Expand Down

0 comments on commit ae08678

Please sign in to comment.