Explorar el Código

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

zhangyu hace 5 años
padre
commit
8f0283077c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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.recordAction(SGraphPointListInsert, [this.line, p, 1]);
             this.status = SItemStatus.Normal;
+            this.releaseItem();
+            this.$emit("finishCreated");
         }
         this._xyzListToSPointList(this.line);
         this.update();