emacroh5lib 1.0.65 → 1.0.68
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");
|
@@ -278,8 +271,8 @@
|
|
278
271
|
} else {
|
279
272
|
rate = height / document.body.clientHeight
|
280
273
|
}
|
281
|
-
width = width / rate
|
282
|
-
height = height / rate
|
274
|
+
width = (width / rate) * 0.8
|
275
|
+
height = (height / rate) * 0.8
|
283
276
|
}
|
284
277
|
|
285
278
|
$this.setStyleByName(image, "width", `${width}px`);
|