emacroh5lib 1.0.61 → 1.0.64

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.61",
3
+ "version": "1.0.64",
4
4
  "description": "EMacro前端组件库",
5
5
  "main": "dist/emacroh5lib.min.js",
6
6
  "scripts": {
@@ -161,19 +161,9 @@
161
161
  width: `${imageObject.width}px`,
162
162
  height: `${imageObject.height}px`,
163
163
  };
164
-
165
164
  resolve("");
166
165
  imageObject.onload = null
167
166
 
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
- }
177
167
  };
178
168
 
179
169
  imageObject.onerror = function (event) {
@@ -193,6 +183,8 @@
193
183
  // $this.setStyleByName($this.image, "width", width);
194
184
  // $this.setStyleByName($this.image, "height", height);
195
185
 
186
+
187
+
196
188
  this.image = this.$refs["duoViewerImage"];
197
189
  this.initDrag();
198
190
  this.$emit("loadComplete");
@@ -202,6 +194,18 @@
202
194
  })
203
195
 
204
196
  Promise.race(promises).then((data) => {
197
+
198
+ setTimeout(() => {
199
+
200
+ console.log("切换", Date.now);
201
+ $this.switchAction("next");
202
+ console.log("切换1", Date.now);
203
+ setTimeout(() => {
204
+ this.switchAction("prev");
205
+ }, 100);
206
+
207
+ }, 100);
208
+
205
209
  this.image = this.$refs["duoViewerImage"];
206
210
  this.initDrag();
207
211
  this.$emit("loadComplete");