mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
41 lines
971 B
Plaintext
41 lines
971 B
Plaintext
<view
|
|
class="zan-search {{ searchClass }}"
|
|
style="{{ searchStyle }}"
|
|
>
|
|
<view
|
|
class="zan-search__form {{ useCancel ? 'zan-search__form--cancel' : '' }} input-class"
|
|
style="{{ inputStyle }}"
|
|
>
|
|
<icon type="search" size="15" color="#a9a9a9" />
|
|
<input
|
|
class="zan-search__input"
|
|
placeholder="{{ placeholder }}"
|
|
placeholder-class="zan-search__placeholder"
|
|
confirm-type="search"
|
|
bindfocus="focus"
|
|
bindblur="blur"
|
|
value="{{ keyword }}"
|
|
bindconfirm="search"
|
|
bindinput="inputChange"
|
|
focus="{{ focus }}"
|
|
disabled="{{ disabled }}"
|
|
/>
|
|
<icon
|
|
wx:if="{{keyword}}"
|
|
class="zan-search__clear"
|
|
type="clear"
|
|
size="14"
|
|
color="#bbb"
|
|
bindtap="clearInput"
|
|
/>
|
|
</view>
|
|
<view
|
|
class="zan-search__cancel cancel-class"
|
|
wx:if="{{ useCancel }}"
|
|
bindtap="cancelSearch"
|
|
style="{{ cancelStyle }}"
|
|
>
|
|
{{cancelText || '取消'}}
|
|
</view>
|
|
</view>
|