Skip to content

Commit ffb57ce

Browse files
committed
refactor(NoticeBar): 修改 bind:tap 为 mut-bind:tap
1 parent 04db9ba commit ffb57ce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/notice-bar/index.wxml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
<l-icon wx:if="{{ frontIconName }}" size="{{frontIconSize}}" color="{{frontIconColor}}" name="{{ frontIconName }}" class="l-noticebar-icon" l-class="l-icon-class" />
33
<swiper autoplay vertical interval="{{4*speed}}" class="l-noticebar-content-wrap" wx:if="{{type=='swip'}}">
44
<block wx:for="{{swipArr}}" wx:key="swip">
5-
<swiper-item data-index="{{index}}" bindtap="onSwip">
5+
<swiper-item data-index="{{index}}" mut-bind:tap="onSwip">
66
{{item}}
77
</swiper-item>
88
</block>
99
</swiper>
1010
<view class="l-noticebar-content-wrap l-noticebar-content-wrap-view" wx:else>
11-
<view class="l-noticebar-content" bindtap="handleTap" animation="{{ animationData }}">
11+
<view class="l-noticebar-content" mut-bind:tap="handleTap" animation="{{ animationData }}">
1212
<slot></slot>
1313
</view>
1414
</view>
15-
<l-icon wx:if="{{ endIconName && !close }}" size="{{endIconSize}}" color="{{endIconColor}}" class="l-noticebar-operation" name="{{ endIconName }}" bindtap="onIconTap" />
16-
<l-icon wx:if="{{close}}" class="l-noticebar-operation" name="close" size="{{endIconSize}}" color="{{endIconColor}}" bindtap="onClose"/>
15+
<l-icon wx:if="{{ endIconName && !close }}" size="{{endIconSize}}" color="{{endIconColor}}" class="l-noticebar-operation" name="{{ endIconName }}" mut-bind:tap="onIconTap" />
16+
<l-icon wx:if="{{close}}" class="l-noticebar-operation" name="close" size="{{endIconSize}}" color="{{endIconColor}}" mut-bind:tap="onClose"/>
1717
</view>

0 commit comments

Comments
 (0)