Skip to content

Commit 7b47773

Browse files
committed
refactor(CustomTabBar): 修改 bind:tap 为 mut-bind:tap
1 parent 29391da commit 7b47773

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

commitlint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ module.exports = {
7070
'Behavior',
7171
'CapsuleBar',
7272
'Circle',
73-
'ImageClipper'
73+
'ImageClipper',
74+
'CustomTabBar'
7475
]
7576
]
7677
}

src/custom-tab-bar/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class="tab-bar-item {{item.style === 'circle' ? 'circle': ''}}"
1212
data-path="{{item.pagePath}}"
1313
data-index="{{idx}}"
14-
bindtap="switchTab">
14+
mut-bind:tap="switchTab">
1515
<view wx:if="{{item.style === 'circle'}}" class='item-circle'></view>
1616
<image
1717
class='tab-bar-item-image'

0 commit comments

Comments
 (0)