瀏覽代碼

直线创建完成加this.$emit("finishCreated")

zhangyu 5 年之前
父節點
當前提交
8f0283077c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      saga-web-big/src/items/SLineItem.ts

+ 2 - 0
saga-web-big/src/items/SLineItem.ts

@@ -144,6 +144,8 @@ export class SLineItem extends SGraphItem {
             this.line[1] = p;
             this.line[1] = p;
             this.recordAction(SGraphPointListInsert, [this.line, p, 1]);
             this.recordAction(SGraphPointListInsert, [this.line, p, 1]);
             this.status = SItemStatus.Normal;
             this.status = SItemStatus.Normal;
+            this.releaseItem();
+            this.$emit("finishCreated");
         }
         }
         this._xyzListToSPointList(this.line);
         this._xyzListToSPointList(this.line);
         this.update();
         this.update();