You cannot 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
2.1 KiB
Plaintext
1 line
2.1 KiB
Plaintext
<view data-event-opts="{{[['tap',[['clickHandler',['$event']]]]]}}" class="u-search data-v-332876a6" style="{{$root.s0}}" bindtap="__e"><view class="u-search__content data-v-332876a6" style="{{'background-color:'+(bgColor)+';'+('border-radius:'+(shape=='round'?'100px':'4px')+';')+('border-color:'+(borderColor)+';')}}"><block wx:if="{{$slots.label||label!==null}}"><block wx:if="{{$slots.label}}"><slot name="label"></slot></block><block wx:else><text class="u-search__content__label data-v-332876a6">{{label}}</text></block></block><view class="data-v-332876a6"><image style="width:30rpx;height:30rpx;" src="/static/images/common/search.png" data-event-opts="{{[['tap',[['clickIcon',['$event']]]]]}}" bindtap="__e" class="data-v-332876a6"></image></view><input class="u-search__content__input data-v-332876a6" style="{{$root.s1}}" confirm-type="search" disabled="{{disabled}}" focus="{{focus}}" maxlength="{{maxlength}}" placeholder-class="u-search__content__input--placeholder" placeholder="{{placeholder}}" placeholder-style="{{'color: '+placeholderColor}}" type="text" data-event-opts="{{[['blur',[['blur',['$event']]]],['confirm',[['search',['$event']]]],['input',[['inputChange',['$event']]]],['focus',[['getFocus',['$event']]]]]}}" value="{{value}}" bindblur="__e" bindconfirm="__e" bindinput="__e" bindfocus="__e"/><block wx:if="{{keyword&&clearabled&&focused}}"><view data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" class="u-search__content__icon u-search__content__close data-v-332876a6" bindtap="__e"><u-icon vue-id="0a234466-1" name="close" size="28" color="#ffffff" customStyle="line-height: 12px" class="data-v-332876a6" bind:__l="__l"></u-icon></view></block><view class="data-v-332876a6"><image style="width:30rpx;height:30rpx;" src="/static/images/common/scan.png" data-event-opts="{{[['tap',[['scanIcon',['$event']]]]]}}" bindtap="__e" class="data-v-332876a6"></image></view></view><text data-event-opts="{{[['tap',[['custom',['$event']]]]]}}" class="{{['u-search__action','data-v-332876a6',(showActionBtn||show)&&'u-search__action--active']}}" style="{{$root.s2}}" catchtap="__e">{{actionText}}</text></view> |