Skip to content

Commit f2cf5f4

Browse files
committed
refactor(SearchBar): 修改 bind:tap 为 mut-bind:tap
1 parent 3c5deaf commit f2cf5f4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/search-bar/index.wxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<view class="search-bar l-container-class">
22
<slot name="before"/>
3-
<view wx:if="{{frontText}}" class="icon-container" bind:tap="handleTapFrontText">
3+
<view wx:if="{{frontText}}" class="icon-container" mut-bind:tap="handleTapFrontText">
44
<text class="city">{{frontText}}</text>
55
<l-icon name="down" color="#333" size="22" />
66
</view>
@@ -23,15 +23,15 @@
2323
bindfocus="handleInputFocus"
2424
bindblur="handleInputBlur"
2525
bindconfirm="handleInputConfirm"/>
26-
<view class="close-wrap" wx:if="{{clear&&value}}" bindtap="onClearTap">
26+
<view class="close-wrap" wx:if="{{clear&&value}}" mut-bind:tap="onClearTap">
2727
<view class="close">
2828
<l-icon name="close" color="#fff" size="15" />
2929
</view>
3030
</view>
3131
</view>
3232
<view wx:if="{{showCancel}}"
3333
class="cancel l-cancel-class"
34-
bindtap="onCancel">
34+
mut-bind:tap="onCancel">
3535
{{cancelText}}
3636
</view>
3737
<slot name="after"/>

0 commit comments

Comments
 (0)