emacroh5lib 1.0.37 → 1.0.38
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
@@ -359,9 +359,10 @@
|
|
359
359
|
|
360
360
|
// Zoom action
|
361
361
|
zoom(type) {
|
362
|
-
let image = this.image
|
363
|
-
|
364
|
-
|
362
|
+
let image = this.image;
|
363
|
+
console.log("zoom缩放", image);
|
364
|
+
let w = +this.getStyleByName(image, "width").split("px")[0];
|
365
|
+
let h = +this.getStyleByName(image, "height").split("px")[0];
|
365
366
|
|
366
367
|
if (h <= 20 && type === "out") return;
|
367
368
|
|