YaolongHan 4 years ago
parent
commit
4becd933f9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/.vuepress/components/scene/Undo1.vue

+ 3 - 3
docs/.vuepress/components/scene/Undo1.vue

@@ -19,14 +19,14 @@
     class RectItem extends SGraphItem {
         width = 100;
         height = 100;
-        id = new Date().getTime()
+        id = new Date().getTime() + '';
         constructor(parent: SGraphItem | null) {
             super(parent);
             this.moveable = true;
             this.selectable = true;
             this.selected = true;
             this.isTransform = true;
-            this.rolate = 60;
+            this.rotate = 60;
         }
 
         boundingRect(): SRect {
@@ -43,7 +43,7 @@
 
     class CircleItem extends SGraphItem {
         r = 50;
-        id = new Date().getTime()
+        id = new Date().getTime()+""
 
         constructor(parent: SGraphItem | null) {
             super(parent);