@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
package/dist/style.css
CHANGED
|
@@ -99,8 +99,7 @@
|
|
|
99
99
|
.m-editor-nav-menu .menu-item .is-text {
|
|
100
100
|
padding: 5px;
|
|
101
101
|
}
|
|
102
|
-
.m-editor-nav-menu .menu-item .is-text
|
|
103
|
-
.m-editor-nav-menu .menu-item i {
|
|
102
|
+
.m-editor-nav-menu .menu-item .is-text > i {
|
|
104
103
|
color: #070303;
|
|
105
104
|
}
|
|
106
105
|
.m-editor-nav-menu .menu-item .icon {
|
package/dist/tmagic-editor.js
CHANGED
|
@@ -2473,6 +2473,13 @@ const useStage = (stageOptions) => {
|
|
|
2473
2473
|
stage.on("sort", (ev) => {
|
|
2474
2474
|
editorService.sort(ev.src, ev.dist);
|
|
2475
2475
|
});
|
|
2476
|
+
stage.on("remove", (ev) => {
|
|
2477
|
+
editorService.remove(
|
|
2478
|
+
ev.data.map(({ el }) => ({
|
|
2479
|
+
id: el.id
|
|
2480
|
+
}))
|
|
2481
|
+
);
|
|
2482
|
+
});
|
|
2476
2483
|
stage.on("select-parent", () => {
|
|
2477
2484
|
const parent = editorService.get("parent");
|
|
2478
2485
|
if (!parent)
|
|
@@ -3549,6 +3556,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3549
3556
|
() => {
|
|
3550
3557
|
services?.codeBlockService.refreshAllRelations();
|
|
3551
3558
|
refreshCodeList();
|
|
3559
|
+
},
|
|
3560
|
+
{
|
|
3561
|
+
immediate: true
|
|
3552
3562
|
}
|
|
3553
3563
|
);
|
|
3554
3564
|
watch(
|