File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
examples/dist/combined-tabs Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ Component({
74
74
let activeKey = val ,
75
75
currentIndex = this . data . currentIndex ;
76
76
this . data . tabList . forEach ( ( item , index ) => {
77
- activeKey = ! val && index == 0 ? item . key : activeKey ;
77
+ activeKey = ! val && index === 0 ? item . key : activeKey ;
78
78
currentIndex = item . key === activeKey ? index : currentIndex ;
79
79
} ) ;
80
80
this . setData ( {
@@ -127,7 +127,7 @@ Component({
127
127
source,
128
128
current
129
129
} = e . detail ;
130
- if ( source == 'touch' ) {
130
+ if ( source === 'touch' ) {
131
131
const currentIndex = current ;
132
132
const activeKey = this . data . tabList [ current ] . key ;
133
133
const subCurrentIndex = this . data . tabList [ currentIndex ] . subCurrentIndex ;
@@ -145,7 +145,7 @@ Component({
145
145
source,
146
146
current
147
147
} = e . detail ;
148
- if ( source == 'touch' ) {
148
+ if ( source === 'touch' ) {
149
149
const {
150
150
currentIndex,
151
151
activeKey
@@ -261,4 +261,4 @@ Component({
261
261
} ) ;
262
262
}
263
263
}
264
- } ) ;
264
+ } ) ;
Original file line number Diff line number Diff line change @@ -261,4 +261,4 @@ Component({
261
261
} ) ;
262
262
}
263
263
}
264
- } ) ;
264
+ } ) ;
You can’t perform that action at this time.
0 commit comments