emacroh5lib 1.0.66 → 1.0.69
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
@@ -118,18 +118,13 @@
|
|
118
118
|
show(val) {
|
119
119
|
if (val) {
|
120
120
|
|
121
|
-
setTimeout(() => {
|
122
|
-
console.log("切换", Date.now);
|
123
|
-
this.switchAction("next");
|
124
|
-
console.log("切换1", Date.now);
|
125
|
-
setTimeout(() => {
|
126
|
-
this.switchAction("prev");
|
127
|
-
}, 100);
|
128
|
-
}, 100);
|
129
|
-
|
130
121
|
this.$emit("open");
|
131
122
|
this.index = this.currentIndex;
|
132
123
|
this.init();
|
124
|
+
|
125
|
+
setTimeout(() => {
|
126
|
+
this.switchAction("prev");
|
127
|
+
}, 100);
|
133
128
|
} else {
|
134
129
|
this.$emit("close");
|
135
130
|
}
|
@@ -193,8 +188,6 @@
|
|
193
188
|
// $this.setStyleByName($this.image, "width", width);
|
194
189
|
// $this.setStyleByName($this.image, "height", height);
|
195
190
|
|
196
|
-
|
197
|
-
|
198
191
|
this.image = this.$refs["duoViewerImage"];
|
199
192
|
this.initDrag();
|
200
193
|
this.$emit("loadComplete");
|
@@ -205,6 +198,10 @@
|
|
205
198
|
|
206
199
|
Promise.race(promises).then((data) => {
|
207
200
|
|
201
|
+
setTimeout(() => {
|
202
|
+
this.switchAction("prev");
|
203
|
+
}, 100);
|
204
|
+
|
208
205
|
this.image = this.$refs["duoViewerImage"];
|
209
206
|
this.initDrag();
|
210
207
|
this.$emit("loadComplete");
|
@@ -278,8 +275,8 @@
|
|
278
275
|
} else {
|
279
276
|
rate = height / document.body.clientHeight
|
280
277
|
}
|
281
|
-
width = width / rate
|
282
|
-
height = height / rate
|
278
|
+
width = (width / rate) * 0.8
|
279
|
+
height = (height / rate) * 0.8
|
283
280
|
}
|
284
281
|
|
285
282
|
$this.setStyleByName(image, "width", `${width}px`);
|