Skip to content

Commit

Permalink
fix: 修复search-middle插槽错位问题
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed May 31, 2023
1 parent 169bd26 commit 6423c14
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/fast-crud/src/components/search/layout-default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:style="{ maxHeight: computedColumnBoxHeight }"
>
<component :is="ui.row.name" ref="columnsRowRef" class="fs-search-columns">
<span class="fs-search-col">
<span class="fs-search-col fs-search-slot">
<slot name="search-left"></slot>
</span>
<!-- 查询字段render,需要定义props.columns -->
Expand All @@ -16,14 +16,16 @@
<fs-render :render-func="item._cellRender" />
</component>
</template>
<span class="fs-search-col fs-search-slot">
<slot name="search-middle"></slot>
</span>
<component
:is="ui.col.name"
v-if="!computedIsMultiLine"
class="fs-search-col fs-search-buttons-group"
v-bind="mergeCol(action?.col)"
>
<component :is="ui.formItem.name" :[ui.formItem.label]="action?.label">
<slot name="search-middle"></slot>
<!-- 查询按钮插槽-->
<slot name="search-buttons"></slot>
<slot name="search-right"></slot>
Expand Down Expand Up @@ -166,7 +168,9 @@ export default defineComponent({
.fs-search-col {
min-width: 180px;
&.fs-search-slot {
min-width: 0;
}
& > * {
margin: 0px 4px;
}
Expand Down

0 comments on commit 6423c14

Please sign in to comment.