HHSLinkSLink/HSLink-wx/unpackage/dist/dev/mp-weixin/components/mehaotian-search/mehaotian-search.wxml
2020-12-19 12:13:27 +08:00

1 line
1.3 KiB
Plaintext

<view class="search data-v-c742fcb8"><view class="content data-v-c742fcb8" style="{{'border-radius:'+(radius+'px')+';'+('border:'+(border)+';')+('background-color:'+(backgroundColor)+';')}}"><view class="{{['content-box data-v-c742fcb8',(mode===2)?'center':'']}}"><text class="icon icon-search data-v-c742fcb8"></text><input class="{{['input data-v-c742fcb8',(!active&&mode===2)?'center':'']}}" focus="{{isFocus}}" placeholder="{{placeholder}}" data-event-opts="{{[['focus',[['focus',['$event']]]],['blur',[['blur',['$event']]]],['input',[['__set_model',['','inputVal','$event',[]]]]]]}}" value="{{inputVal}}" bindfocus="__e" bindblur="__e" bindinput="__e"/><block wx:if="{{isDelShow}}"><text data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" class="icon icon-del data-v-c742fcb8" bindtap="__e"></text></block></view><view data-event-opts="{{[['tap',[['search',['$event']]]]]}}" hidden="{{!(active&&show&&button==='inside'||isDelShow&&button==='inside')}}" class="searchBtn data-v-c742fcb8" bindtap="__e">搜索</view></view><block wx:if="{{button==='outside'}}"><view data-event-opts="{{[['tap',[['search',['$event']]]]]}}" class="{{['button data-v-c742fcb8',(show||active)?'active':'']}}" bindtap="__e"><view class="button-item data-v-c742fcb8">{{!show?searchName:'搜索'}}</view></view></block></view>