emacroh5lib 1.0.45 → 1.0.46

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emacroh5lib",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "EMacro前端组件库",
5
5
  "main": "dist/emacroh5lib.min.js",
6
6
  "scripts": {
@@ -337,14 +337,12 @@
337
337
 
338
338
  setTimeout(() => {
339
339
 
340
- try {
340
+ if (this.currentData) {
341
341
  this.setStyleByName(this.image, "width", this.currentData.width);
342
342
  this.setStyleByName(this.image, "height", this.currentData.height);
343
343
  this.setStyleByName(this.image, "left", this.currentData.left);
344
344
  this.setStyleByName(this.image, "top", this.currentData.top);
345
345
  this.setTransform(this.image, this.currentData.transform);
346
- } catch (error) {
347
- console.log("switchAction", error, this.image, this.currentData);
348
346
  }
349
347
 
350
348
  this.resetZoom();