You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
1.2 KiB
1 line
1.2 KiB
4 years ago
|
<view class="serach"><view class="content" style="{{'border-radius:'+(radius+'px')+';'}}"><view class="{{['content-box',(mode===2)?'center':'']}}"><text class="icon search"></text><input class="{{['input',(!active&&mode===2)?'center':'']}}" placeholder="{{placeholder}}" confirm-type="search" focus="{{isFocus}}" data-event-opts="{{[['input',[['__set_model',['','inputVal','$event',[]]],['inputChange',['$event']]]],['confirm',[['triggerConfirm',['$event']]]],['focus',[['focus',['$event']]]],['blur',[['blur',['$event']]]]]}}" value="{{inputVal}}" bindinput="__e" bindconfirm="__e" bindfocus="__e" bindblur="__e"/><block wx:if="{{isDelShow}}"><text data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" class="icon shanchu" catchtap="__e"></text></block></view><view data-event-opts="{{[['tap',[['search',['$event']]]]]}}" hidden="{{!(active&&show&&button==='inside'||isDelShow&&button==='inside')}}" class="serachBtn" bindtap="__e">搜索</view></view><block wx:if="{{button==='outside'}}"><view data-event-opts="{{[['tap',[['search',['$event']]]]]}}" class="{{['button',(show||active)?'active':'']}}" bindtap="__e"><view class="button-item">{{!show?searchName:'搜索'}}</view></view></block></view>
|