@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.
- package/dist/style.css +1 -2
- package/dist/tmagic-editor.js +10 -0
- package/dist/tmagic-editor.js.map +1 -1
- package/dist/tmagic-editor.umd.cjs +10 -0
- package/dist/tmagic-editor.umd.cjs.map +1 -1
- package/package.json +9 -9
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +3 -0
- package/src/theme/nav-menu.scss +1 -2
- package/src/utils/stage.ts +9 -1
|
@@ -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(
|