emacroh5lib 1.0.56 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -164,6 +164,13 @@
|
|
164
164
|
|
165
165
|
resolve("");
|
166
166
|
imageObject.onload = null
|
167
|
+
|
168
|
+
if (i == 0) {
|
169
|
+
this.switchAction("next");
|
170
|
+
setTimeout(() => {
|
171
|
+
this.switchAction("prev");
|
172
|
+
}, 100);
|
173
|
+
}
|
167
174
|
};
|
168
175
|
|
169
176
|
imageObject.onerror = function (event) {
|
@@ -198,10 +205,6 @@
|
|
198
205
|
const { width, height } = this.listDataCache[index];
|
199
206
|
this.setStyleByName(this.image, "width", width);
|
200
207
|
this.setStyleByName(this.image, "height", height);
|
201
|
-
|
202
|
-
setTimeout(() => {
|
203
|
-
this.resetZoom();
|
204
|
-
}, 100);
|
205
208
|
})
|
206
209
|
|
207
210
|
},
|
@@ -276,8 +279,10 @@
|
|
276
279
|
$this.setStyleByName(image, "width", `${width}px`);
|
277
280
|
$this.setStyleByName(image, "height", `${height}px`);
|
278
281
|
|
279
|
-
this.listDataCache[this.index]
|
280
|
-
|
282
|
+
if (this.listDataCache[this.index]) {
|
283
|
+
this.listDataCache[this.index].width = `${width}px`;
|
284
|
+
this.listDataCache[this.index].height = `${height}px`;
|
285
|
+
}
|
281
286
|
}
|
282
287
|
|
283
288
|
},
|
@@ -431,16 +436,10 @@
|
|
431
436
|
this.setStyleByName(image, "width", `${w * this._enlarge}px`);
|
432
437
|
this.setStyleByName(image, "height", `${h * this._enlarge}px`);
|
433
438
|
}
|
434
|
-
|
435
|
-
// console.log("报错6", this.currentData);
|
436
|
-
// console.log("报错7", image);
|
437
|
-
// console.log("报错8", this.image);
|
438
|
-
|
439
439
|
if (this.currentData) {
|
440
440
|
this.currentData.width = this.getStyleByName(this.image, "width");
|
441
441
|
this.currentData.height = this.getStyleByName(this.image, "height");
|
442
442
|
}
|
443
|
-
|
444
443
|
},
|
445
444
|
|
446
445
|
// FullScreen action
|