emacroh5lib 1.0.58 → 1.0.61

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emacroh5lib",
3
- "version": "1.0.58",
3
+ "version": "1.0.61",
4
4
  "description": "EMacro前端组件库",
5
5
  "main": "dist/emacroh5lib.min.js",
6
6
  "scripts": {
@@ -164,6 +164,16 @@
164
164
 
165
165
  resolve("");
166
166
  imageObject.onload = null
167
+
168
+ console.log("切换1", i);
169
+ if (i == 0) {
170
+ console.log("切换", Date.now);
171
+ $this.switchAction("next");
172
+ console.log("切换1", Date.now);
173
+ // setTimeout(() => {
174
+ // this.switchAction("prev");
175
+ // }, 100);
176
+ }
167
177
  };
168
178
 
169
179
  imageObject.onerror = function (event) {
@@ -189,11 +199,6 @@
189
199
  const { width, height } = this.listDataCache[index];
190
200
  this.setStyleByName(this.image, "width", width);
191
201
  this.setStyleByName(this.image, "height", height);
192
-
193
- setTimeout(() => {
194
- this.resetZoom();
195
- this.resetPosition();
196
- }, 100);
197
202
  })
198
203
 
199
204
  Promise.race(promises).then((data) => {
@@ -203,11 +208,6 @@
203
208
  const { width, height } = this.listDataCache[index];
204
209
  this.setStyleByName(this.image, "width", width);
205
210
  this.setStyleByName(this.image, "height", height);
206
-
207
- // setTimeout(() => {
208
- // this.resetZoom();
209
- // this.resetPosition();
210
- // }, 100);
211
211
  })
212
212
 
213
213
  },