emacroh5lib 1.0.54 → 1.0.55
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
@@ -414,19 +414,29 @@
|
|
414
414
|
// Zoom action
|
415
415
|
zoom(type) {
|
416
416
|
let image = this.image;
|
417
|
+
|
418
|
+
console.log("报错1", image);
|
417
419
|
let w = +this.getStyleByName(image, "width").split("px")[0];
|
418
420
|
let h = +this.getStyleByName(image, "height").split("px")[0];
|
419
421
|
|
420
422
|
if (h <= 20 && type === "out") return;
|
421
423
|
|
422
424
|
if (type === "out") {
|
425
|
+
console.log("报错2", `${w * (1 - this.shrink)}px`);
|
423
426
|
this.setStyleByName(image, "width", `${w * (1 - this.shrink)}px`);
|
424
427
|
this.setStyleByName(image, "height", `${h * (1 - this.shrink)}px`);
|
428
|
+
console.log("报错3");
|
425
429
|
} else {
|
430
|
+
console.log("报错4", `${w * (1 + this.enlarge)}px`);
|
426
431
|
this.setStyleByName(image, "width", `${w * (1 + this.enlarge)}px`);
|
427
432
|
this.setStyleByName(image, "height", `${h * (1 + this.enlarge)}px`);
|
433
|
+
console.log("报错5");
|
428
434
|
}
|
429
435
|
|
436
|
+
console.log("报错6", this.currentData);
|
437
|
+
console.log("报错7", image);
|
438
|
+
console.log("报错8", this.image);
|
439
|
+
|
430
440
|
this.currentData.width = this.getStyleByName(this.image, "width");
|
431
441
|
this.currentData.height = this.getStyleByName(this.image, "height");
|
432
442
|
},
|