Skip to content

Commit 924874e

Browse files
committed
0.7.6 (#772)
1 parent b2aab90 commit 924874e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lin-ui",
3-
"version": "0.7.5",
3+
"version": "0.7.6",
44
"description": "A high quality UI components library with MiniProgram",
55
"main": "app.js",
66
"directories": {

src/combined-tabs/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Component({
7474
let activeKey = val,
7575
currentIndex = this.data.currentIndex;
7676
this.data.tabList.forEach((item, index) => {
77-
activeKey = !val && index == 0 ? item.key : activeKey;
77+
activeKey = !val && index === 0 ? item.key : activeKey;
7878
currentIndex = item.key === activeKey ? index : currentIndex;
7979
});
8080
this.setData({
@@ -127,7 +127,7 @@ Component({
127127
source,
128128
current
129129
} = e.detail;
130-
if (source == 'touch') {
130+
if (source === 'touch') {
131131
const currentIndex = current;
132132
const activeKey = this.data.tabList[current].key;
133133
const subCurrentIndex = this.data.tabList[currentIndex].subCurrentIndex;
@@ -145,7 +145,7 @@ Component({
145145
source,
146146
current
147147
} = e.detail;
148-
if (source == 'touch') {
148+
if (source === 'touch') {
149149
const {
150150
currentIndex,
151151
activeKey

src/image-picker/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Component({
7676
this.setData({
7777
newOrOld
7878
});
79-
if (newOrOld == 'old') {
79+
if (newOrOld === 'old') {
8080
console.warn('image-picker组件已经升级,建议使用最新版本,当前用法会在后续版本中暂停支持');
8181
}
8282
},
@@ -110,7 +110,7 @@ Component({
110110
let previewImageList = [];
111111
const newOrOld = this.data.newOrOld;
112112

113-
if (newOrOld == 'old') {
113+
if (newOrOld === 'old') {
114114
tempFilePath = this.data.urls[index];
115115
previewImageList = this.data.urls;
116116

@@ -240,8 +240,8 @@ Component({
240240

241241
judgeNewOrOld: function () {
242242
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') {
245245
return 'old';
246246
}
247247
return 'new';

src/notice-bar/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Component({
7171
},
7272

7373
ready() {
74-
if (this.properties.type == 'roll' && this.properties.show) {
74+
if (this.properties.type === 'roll' && this.properties.show) {
7575
this.initAnimation();
7676
}
7777
},

0 commit comments

Comments
 (0)