emacroh5lib 1.0.13 → 1.0.14

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.13",
3
+ "version": "1.0.14",
4
4
  "description": "EMacro前端组件库",
5
5
  "main": "dist/emacroh5lib.min.js",
6
6
  "scripts": {
@@ -243,8 +243,8 @@ export default {
243
243
  if (info !== null) {
244
244
  this.left = info.left
245
245
  this.top = info.top
246
- this.width = info.width
247
- this.height = info.height
246
+ this.right = info.right
247
+ this.bottom = info.bottom
248
248
  }
249
249
  }
250
250
  },
@@ -711,7 +711,8 @@ export default {
711
711
  throw "unspecified name"
712
712
  }
713
713
 
714
- localStorage.setItem("DragResizeView_Info_" + this.name, JSON.stringify(this.rect))
714
+ const info = { "left": this.rect.left, "top": this.rect.top, "right": this.right, "bottom": this.bottom }
715
+ localStorage.setItem("DragResizeView_Info_" + this.name, JSON.stringify(info))
715
716
  }
716
717
 
717
718
  },