|
@@ -17,8 +17,11 @@
|
|
|
:style="{ width: colToWidth(item.colSpan || 0) }"
|
|
|
:class="{ 'buttons-wrap': item.type == 'buttons' }"
|
|
|
>
|
|
|
- <slot :name="item.cell || item.prop" v-bind="{ item, params }">
|
|
|
- <SearchFormItem :item="item" :params="params" />
|
|
|
+ <slot
|
|
|
+ :name="item.cell || item.prop"
|
|
|
+ v-bind="{ item, params, search }"
|
|
|
+ >
|
|
|
+ <SearchFormItem :item="item" :params="params" :search="search" />
|
|
|
</slot>
|
|
|
</t-form-item>
|
|
|
<div class="flex-1"></div>
|
|
@@ -30,8 +33,11 @@
|
|
|
:style="{ width: colToWidth(item.colSpan || 0) }"
|
|
|
:class="{ 'buttons-wrap': item.type == 'buttons' }"
|
|
|
>
|
|
|
- <slot :name="item.cell || item.prop" v-bind="{ item, params }">
|
|
|
- <SearchFormItem :item="item" :params="params" />
|
|
|
+ <slot
|
|
|
+ :name="item.cell || item.prop"
|
|
|
+ v-bind="{ item, params, search }"
|
|
|
+ >
|
|
|
+ <SearchFormItem :item="item" :params="params" :search="search" />
|
|
|
</slot>
|
|
|
</t-form-item>
|
|
|
<div v-if="showExpandBtn && !showAll" class="flex-1 text-right">
|
|
@@ -57,8 +63,11 @@
|
|
|
:style="{ width: colToWidth(item.colSpan || 0) }"
|
|
|
:class="{ 'buttons-wrap': item.type == 'buttons' }"
|
|
|
>
|
|
|
- <slot :name="item.cell || item.prop" v-bind="{ item, params }">
|
|
|
- <SearchFormItem :item="item" :params="params" />
|
|
|
+ <slot
|
|
|
+ :name="item.cell || item.prop"
|
|
|
+ v-bind="{ item, params, search }"
|
|
|
+ >
|
|
|
+ <SearchFormItem :item="item" :params="params" :search="search" />
|
|
|
</slot>
|
|
|
</t-form-item>
|
|
|
</div>
|
|
@@ -107,6 +116,7 @@ const props = defineProps({
|
|
|
params: Object, // 搜索参数
|
|
|
showAll: { type: Boolean, default: true }, //是否要求直接展开,无需折叠换行按钮
|
|
|
inPadding: Boolean,
|
|
|
+ search: { type: Function, default: () => {} },
|
|
|
});
|
|
|
//fields示例:(目前支持控件:input、select、dropdown按钮、treeSelect、date选择框、time选择框、timerange时间范围选择框、daterange日期范围选择框...后期可以按需求扩展)
|
|
|
/*
|