emacroh5lib 1.0.63 → 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
@@ -161,17 +161,6 @@
|
|
161
161
|
width: `${imageObject.width}px`,
|
162
162
|
height: `${imageObject.height}px`,
|
163
163
|
};
|
164
|
-
|
165
|
-
console.log("切换1", i);
|
166
|
-
if (i == 0) {
|
167
|
-
console.log("切换", Date.now);
|
168
|
-
$this.switchAction("next");
|
169
|
-
console.log("切换1", Date.now);
|
170
|
-
// setTimeout(() => {
|
171
|
-
// this.switchAction("prev");
|
172
|
-
// }, 100);
|
173
|
-
}
|
174
|
-
|
175
164
|
resolve("");
|
176
165
|
imageObject.onload = null
|
177
166
|
|
@@ -194,6 +183,8 @@
|
|
194
183
|
// $this.setStyleByName($this.image, "width", width);
|
195
184
|
// $this.setStyleByName($this.image, "height", height);
|
196
185
|
|
186
|
+
|
187
|
+
|
197
188
|
this.image = this.$refs["duoViewerImage"];
|
198
189
|
this.initDrag();
|
199
190
|
this.$emit("loadComplete");
|
@@ -203,6 +194,18 @@
|
|
203
194
|
})
|
204
195
|
|
205
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
|
+
|
206
209
|
this.image = this.$refs["duoViewerImage"];
|
207
210
|
this.initDrag();
|
208
211
|
this.$emit("loadComplete");
|