来源仓库:jxc/ai-fresh-delivery 来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d 快照树: 09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件) 按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据 (生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、 deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值), 整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。 供应商系统后续开发自本提交开始。
55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
|
|
<view
|
|
class="{{ utils.bem('search', { withaction: showAction || useActionSlot }) }} custom-class"
|
|
style="background: {{ background }}"
|
|
>
|
|
<view class="{{ utils.bem('search__content', [shape]) }}">
|
|
<view class="van-search__label" wx:if="{{ label }}">{{ label }}</view>
|
|
<slot wx:else name="label" />
|
|
|
|
<van-field
|
|
type="search"
|
|
left-icon="{{ !useLeftIconSlot ? leftIcon : '' }}"
|
|
right-icon="{{ !useRightIconSlot ? rightIcon : '' }}"
|
|
focus="{{ focus }}"
|
|
error="{{ error }}"
|
|
border="{{ false }}"
|
|
confirm-type="search"
|
|
class="van-search__field field-class"
|
|
value="{{ value }}"
|
|
disabled="{{ disabled }}"
|
|
readonly="{{ readonly }}"
|
|
clearable="{{ clearable }}"
|
|
clear-trigger="{{ clearTrigger }}"
|
|
clear-icon="{{ clearIcon }}"
|
|
maxlength="{{ maxlength }}"
|
|
input-align="{{ inputAlign }}"
|
|
input-class="input-class"
|
|
placeholder="{{ placeholder }}"
|
|
placeholder-style="{{ placeholderStyle }}"
|
|
cursor-spacing="{{ cursorSpacing }}"
|
|
custom-style="padding: 5px 10px 5px 0; background-color: transparent;"
|
|
bind:blur="onBlur"
|
|
bind:focus="onFocus"
|
|
bind:change="onChange"
|
|
bind:confirm="onSearch"
|
|
bind:clear="onClear"
|
|
bind:click-input="onClickInput"
|
|
>
|
|
<slot wx:if="{{ useLeftIconSlot }}" name="left-icon" slot="left-icon" />
|
|
<slot wx:if="{{ useRightIconSlot }}" name="right-icon" slot="right-icon" />
|
|
</van-field>
|
|
</view>
|
|
|
|
<view
|
|
wx:if="{{ showAction || useActionSlot }}"
|
|
class="van-search__action"
|
|
hover-class="van-search__action--hover"
|
|
hover-stay-time="70"
|
|
>
|
|
<slot wx:if="{{ useActionSlot }}" name="action" />
|
|
<view wx:else bind:tap="onCancel" class="van-search__action-button cancel-class">{{ actionText }}</view>
|
|
</view>
|
|
</view>
|