File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lin-ui" ,
3
- "version" : " 0.7.5 " ,
3
+ "version" : " 0.7.6 " ,
4
4
"description" : " A high quality UI components library with MiniProgram" ,
5
5
"main" : " app.js" ,
6
6
"directories" : {
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
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ Component({
76
76
this . setData ( {
77
77
newOrOld
78
78
} ) ;
79
- if ( newOrOld == 'old' ) {
79
+ if ( newOrOld === 'old' ) {
80
80
console . warn ( 'image-picker组件已经升级,建议使用最新版本,当前用法会在后续版本中暂停支持' ) ;
81
81
}
82
82
} ,
@@ -110,7 +110,7 @@ Component({
110
110
let previewImageList = [ ] ;
111
111
const newOrOld = this . data . newOrOld ;
112
112
113
- if ( newOrOld == 'old' ) {
113
+ if ( newOrOld === 'old' ) {
114
114
tempFilePath = this . data . urls [ index ] ;
115
115
previewImageList = this . data . urls ;
116
116
@@ -240,8 +240,8 @@ Component({
240
240
241
241
judgeNewOrOld : function ( ) {
242
242
const urls = this . data . urls ;
243
- if ( urls . length != 0 ) {
244
- if ( typeof ( urls [ 0 ] ) != 'object' ) {
243
+ if ( urls . length !== 0 ) {
244
+ if ( typeof ( urls [ 0 ] ) !== 'object' ) {
245
245
return 'old' ;
246
246
}
247
247
return 'new' ;
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ Component({
71
71
} ,
72
72
73
73
ready ( ) {
74
- if ( this . properties . type == 'roll' && this . properties . show ) {
74
+ if ( this . properties . type === 'roll' && this . properties . show ) {
75
75
this . initAnimation ( ) ;
76
76
}
77
77
} ,
You can’t perform that action at this time.
0 commit comments