@tmagic/editor 1.2.6 → 1.2.7

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.
@@ -2490,6 +2490,13 @@
2490
2490
  stage.on("sort", (ev) => {
2491
2491
  editorService.sort(ev.src, ev.dist);
2492
2492
  });
2493
+ stage.on("remove", (ev) => {
2494
+ editorService.remove(
2495
+ ev.data.map(({ el }) => ({
2496
+ id: el.id
2497
+ }))
2498
+ );
2499
+ });
2493
2500
  stage.on("select-parent", () => {
2494
2501
  const parent = editorService.get("parent");
2495
2502
  if (!parent)
@@ -3566,6 +3573,9 @@
3566
3573
  () => {
3567
3574
  services?.codeBlockService.refreshAllRelations();
3568
3575
  refreshCodeList();
3576
+ },
3577
+ {
3578
+ immediate: true
3569
3579
  }
3570
3580
  );
3571
3581
  vue.watch(