2026-01-21 17:05:30 +08:00
|
|
|
<view style="display: flex;align-items: center;margin-bottom: 24rpx;{{customStyle}}">
|
|
|
|
|
<view style="flex: 1;margin-right: {{hideMore ? 0 : '24rpx'}};">
|
2026-01-14 16:54:47 +08:00
|
|
|
<block wx:if="{{useInputSlot}}">
|
|
|
|
|
<slot name='input' />
|
|
|
|
|
</block>
|
|
|
|
|
<block wx:else>
|
2026-01-21 17:05:30 +08:00
|
|
|
<t-input wx:if="{{!hideInput}}" placeholder="{{placeholder || '请输入关键字'}}" clearable borderless
|
|
|
|
|
bindchange="change" value="{{value || ''}}" data-key="{{dataKey}}" confirm-type="search"
|
2026-01-14 16:54:47 +08:00
|
|
|
bind:clear="clear"
|
|
|
|
|
custom-style="background:#f5f5f5;min-height: var(--td-button-small-height,64rpx);height:var(--td-button-small-height,64rpx);padding: 0;"
|
2026-01-21 17:05:30 +08:00
|
|
|
size="small" t-class="aaaaaa">
|
|
|
|
|
<t-button name="search" slot="prefix-icon" size="small" theme="primary" bindtap="scanCode"
|
|
|
|
|
icon="scan" />
|
|
|
|
|
<t-button slot="suffix-icon" bindtap="search" icon="search" theme="primary" size="small" />
|
2026-01-14 16:54:47 +08:00
|
|
|
</t-input>
|
|
|
|
|
</block>
|
|
|
|
|
</view>
|
2026-01-21 17:05:30 +08:00
|
|
|
<t-button wx:if="{{!hideMore}}" bindtap="showSearch" theme="primary" size="small">筛选
|
2026-01-14 16:54:47 +08:00
|
|
|
</t-button>
|
2026-01-09 15:26:10 +08:00
|
|
|
</view>
|
|
|
|
|
<popup-plugin visible="{{ show }}" bind:close="close" title="筛选条件">
|
2026-01-14 16:54:47 +08:00
|
|
|
<slot name='content' />
|
|
|
|
|
<slot wx:if="{{useFooterSlot}}" name="footer" />
|
2026-01-21 17:05:30 +08:00
|
|
|
<view wx:else
|
|
|
|
|
style="padding: 24rpx 0;display: flex;justify-content: center;position: sticky;bottom: 0;left: 0;background-color: #fff;z-index: 1;">
|
2026-01-28 17:18:43 +08:00
|
|
|
<t-button bindtap="ok" size="small" theme="primary" style="margin-right: 24rpx;">搜索</t-button>
|
|
|
|
|
<t-button bindtap="reset" size="small">重置</t-button>
|
2026-01-14 16:54:47 +08:00
|
|
|
</view>
|
2026-01-21 17:05:30 +08:00
|
|
|
</popup-plugin>
|