Skip to content

Commit 07a9477

Browse files
committed
feat:整理格式
1 parent 23f68e2 commit 07a9477

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

dist/album/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ Component({
7070

7171
//判断传入urls长度
7272
if (this.data.urls.length > 9) {
73-
const urls = this.data.urls.slice(0, 9)
73+
const urls = this.data.urls.slice(0, 9);
7474
this.setData({
7575
urls
76-
})
76+
});
7777
console.warn('超过9张图片!');
7878
}
7979

80-
this.preview()
80+
this.preview();
8181

8282
},
8383
},
@@ -122,7 +122,7 @@ Component({
122122
});
123123
//显示图片
124124
const urls = this.data.urls;
125-
const key = this.data.key
125+
const key = this.data.key;
126126

127127
if (urls.length == 1) {
128128
this.horizontalOrVertical(newType ? urls[0][key] : urls[0]);
@@ -135,7 +135,7 @@ Component({
135135
let tempFilePath = '';
136136
let previewImageList = [];
137137
const newType = this.data.newType;
138-
const key = this.data.key
138+
const key = this.data.key;
139139

140140
if (newType) {
141141
tempFilePath = urls[index][key];

examples/dist/album/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ Component({
7070

7171
//判断传入urls长度
7272
if (this.data.urls.length > 9) {
73-
const urls = this.data.urls.slice(0, 9)
73+
const urls = this.data.urls.slice(0, 9);
7474
this.setData({
7575
urls
76-
})
76+
});
7777
console.warn('超过9张图片!');
7878
}
7979

80-
this.preview()
80+
this.preview();
8181

8282
},
8383
},
@@ -122,7 +122,7 @@ Component({
122122
});
123123
//显示图片
124124
const urls = this.data.urls;
125-
const key = this.data.key
125+
const key = this.data.key;
126126

127127
if (urls.length == 1) {
128128
this.horizontalOrVertical(newType ? urls[0][key] : urls[0]);
@@ -135,7 +135,7 @@ Component({
135135
let tempFilePath = '';
136136
let previewImageList = [];
137137
const newType = this.data.newType;
138-
const key = this.data.key
138+
const key = this.data.key;
139139

140140
if (newType) {
141141
tempFilePath = urls[index][key];

src/album/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ Component({
7070

7171
//判断传入urls长度
7272
if (this.data.urls.length > 9) {
73-
const urls = this.data.urls.slice(0, 9)
73+
const urls = this.data.urls.slice(0, 9);
7474
this.setData({
7575
urls
76-
})
76+
});
7777
console.warn('超过9张图片!');
7878
}
7979

80-
this.preview()
80+
this.preview();
8181

8282
},
8383
},
@@ -122,7 +122,7 @@ Component({
122122
});
123123
//显示图片
124124
const urls = this.data.urls;
125-
const key = this.data.key
125+
const key = this.data.key;
126126

127127
if (urls.length == 1) {
128128
this.horizontalOrVertical(newType ? urls[0][key] : urls[0]);
@@ -135,7 +135,7 @@ Component({
135135
let tempFilePath = '';
136136
let previewImageList = [];
137137
const newType = this.data.newType;
138-
const key = this.data.key
138+
const key = this.data.key;
139139

140140
if (newType) {
141141
tempFilePath = urls[index][key];

0 commit comments

Comments
 (0)