emacroh5lib 1.0.57 → 1.0.60
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,15 @@
|
|
164
164
|
|
165
165
|
resolve("");
|
166
166
|
imageObject.onload = null
|
167
|
+
|
168
|
+
if (i == 0) {
|
169
|
+
console.log("切换", Date.now);
|
170
|
+
$this.switchAction("next");
|
171
|
+
console.log("切换1", Date.now);
|
172
|
+
// setTimeout(() => {
|
173
|
+
// this.switchAction("prev");
|
174
|
+
// }, 100);
|
175
|
+
}
|
167
176
|
};
|
168
177
|
|
169
178
|
imageObject.onerror = function (event) {
|
@@ -198,13 +207,6 @@
|
|
198
207
|
const { width, height } = this.listDataCache[index];
|
199
208
|
this.setStyleByName(this.image, "width", width);
|
200
209
|
this.setStyleByName(this.image, "height", height);
|
201
|
-
|
202
|
-
setTimeout(() => {
|
203
|
-
this.resetZoom(false);
|
204
|
-
setTimeout(() => {
|
205
|
-
this.resetZoom();
|
206
|
-
}, 200);
|
207
|
-
}, 0);
|
208
210
|
})
|
209
211
|
|
210
212
|
},
|
@@ -279,8 +281,10 @@
|
|
279
281
|
$this.setStyleByName(image, "width", `${width}px`);
|
280
282
|
$this.setStyleByName(image, "height", `${height}px`);
|
281
283
|
|
282
|
-
this.listDataCache[this.index]
|
283
|
-
|
284
|
+
if (this.listDataCache[this.index]) {
|
285
|
+
this.listDataCache[this.index].width = `${width}px`;
|
286
|
+
this.listDataCache[this.index].height = `${height}px`;
|
287
|
+
}
|
284
288
|
}
|
285
289
|
|
286
290
|
},
|