@tmagic/editor 1.2.0-beta.7 → 1.2.0-beta.9

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.
@@ -1,6 +1,6 @@
1
- import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeStyle, unref, reactive, watch, inject, ref, watchEffect, createElementBlock, createVNode, withCtx, createElementVNode, withModifiers, createCommentVNode, createTextVNode, toDisplayString, onMounted, onUnmounted, normalizeClass, resolveDynamicComponent, toRaw, renderSlot, Fragment, createSlots, renderList, normalizeProps, mergeProps, markRaw, getCurrentInstance, isRef, Teleport, nextTick, toHandlers, provide } from 'vue';
1
+ import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeStyle, unref, reactive, watch, inject, ref, watchEffect, createElementBlock, createVNode, withCtx, createElementVNode, withModifiers, createCommentVNode, createTextVNode, toDisplayString, onMounted, onUnmounted, normalizeClass, resolveDynamicComponent, toRaw, renderSlot, Fragment, createSlots, renderList, normalizeProps, mergeProps, markRaw, getCurrentInstance, isRef, withDirectives, Teleport, vShow, nextTick, toHandlers, provide } from 'vue';
2
2
  import serialize from 'serialize-javascript';
3
- import { cloneDeep, map, xor, throttle, pick, isEmpty, forIn, omit, keys, mergeWith, uniq } from 'lodash-es';
3
+ import { map, xor, throttle, pick, cloneDeep, isEmpty, forIn, omit, keys, mergeWith, uniq } from 'lodash-es';
4
4
  import { TMagicCard, TMagicTooltip, tMagicMessage, TMagicButton, TMagicIcon, TMagicScrollbar, TMagicDivider, TMagicDropdown, TMagicDropdownMenu, TMagicDropdownItem, TMagicDialog, TMagicInput, TMagicTree, TMagicCollapse, TMagicCollapseItem, TMagicTabPane, TMagicTabs, TMagicPopover } from '@tmagic/design';
5
5
  import { Delete, Close, Edit, Plus, ArrowDown, Grid, Memo, FullScreen, ScaleToOriginal, ZoomOut, ZoomIn, Right, Back, View, Link, Search, Files, DocumentCopy, EditPen, Coin, ArrowLeftBold, ArrowRightBold, CaretBottom, Top, Bottom } from '@element-plus/icons-vue';
6
6
  import * as monaco from 'monaco-editor';
@@ -12,7 +12,7 @@ import { DEFAULT_EVENTS, DEFAULT_METHODS } from '@tmagic/core';
12
12
  import Gesto from 'gesto';
13
13
  import KeyController from 'keycon';
14
14
 
15
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
15
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
16
16
  __name: "Code",
17
17
  props: {
18
18
  model: null,
@@ -42,7 +42,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
42
42
  }
43
43
  });
44
44
 
45
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
45
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
46
46
  __name: "CodeLink",
47
47
  props: {
48
48
  config: null,
@@ -153,15 +153,15 @@ var CodeSelectOp = /* @__PURE__ */ ((CodeSelectOp2) => {
153
153
  return CodeSelectOp2;
154
154
  })(CodeSelectOp || {});
155
155
 
156
- const _hoisted_1$d = { class: "tool-bar" };
157
- const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("path", {
156
+ const _hoisted_1$e = { class: "tool-bar" };
157
+ const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("path", {
158
158
  fill: "currentColor",
159
159
  d: "m23 12l-7.071 7.071l-1.414-1.414L20.172 12l-5.657-5.657l1.414-1.414L23 12zM3.828 12l5.657 5.657l-1.414 1.414L1 12l7.071-7.071l1.414 1.414L3.828 12z"
160
160
  }, null, -1);
161
161
  const _hoisted_3$3 = [
162
- _hoisted_2$5
162
+ _hoisted_2$6
163
163
  ];
164
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
164
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
165
165
  __name: "CodeSelect",
166
166
  props: {
167
167
  config: null,
@@ -174,6 +174,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
174
174
  setup(__props, { emit }) {
175
175
  const props = __props;
176
176
  const services = inject("services");
177
+ const form = inject("mForm");
177
178
  const selectConfig = computed(() => {
178
179
  const defaultConfig = {
179
180
  multiple: true,
@@ -196,11 +197,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
196
197
  });
197
198
  const fieldKey = ref("");
198
199
  const multiple = ref(true);
199
- const combineIds = ref([]);
200
- let lastTagSnapshot = cloneDeep(props.model[props.name]) || [];
200
+ const lastTagSnapshot = ref([]);
201
201
  watchEffect(async () => {
202
+ if (!props.model[props.name])
203
+ return;
202
204
  const combineNames = await Promise.all(
203
- combineIds.value.map(async (id) => {
205
+ props.model[props.name].map(async (id) => {
204
206
  const { name = "" } = await services?.codeBlockService.getCodeContentById(id) || {};
205
207
  return name;
206
208
  })
@@ -211,7 +213,6 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
211
213
  let codeIds = value;
212
214
  if (typeof value === "string") {
213
215
  multiple.value = false;
214
- lastTagSnapshot = [lastTagSnapshot];
215
216
  codeIds = value ? [value] : [];
216
217
  }
217
218
  await setCombineRelation(codeIds);
@@ -222,25 +223,20 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
222
223
  let opFlag = CodeSelectOp.CHANGE;
223
224
  let diffValues = codeIds;
224
225
  if (multiple.value) {
225
- opFlag = codeIds.length < lastTagSnapshot.length ? CodeSelectOp.DELETE : CodeSelectOp.ADD;
226
- diffValues = xor(codeIds, lastTagSnapshot);
226
+ lastTagSnapshot.value = form?.initValues[props.name] || [];
227
+ opFlag = codeIds.length < lastTagSnapshot.value.length ? CodeSelectOp.DELETE : CodeSelectOp.ADD;
228
+ diffValues = xor(codeIds, lastTagSnapshot.value);
227
229
  }
228
230
  await services?.codeBlockService.setCombineRelation(id, diffValues, opFlag, props.prop);
229
- lastTagSnapshot = codeIds;
230
- await setCombineIds(codeIds);
231
- };
232
- const setCombineIds = async (codeIds) => {
233
- combineIds.value = codeIds;
234
- await services?.codeBlockService.setCombineIds(codeIds);
235
231
  };
236
232
  const viewHandler = async () => {
237
233
  if (props.model[props.name].length === 0) {
238
234
  tMagicMessage.error("\u8BF7\u5148\u7ED1\u5B9A\u4EE3\u7801\u5757");
239
235
  return;
240
236
  }
241
- await setCombineIds(props.model[props.name]);
237
+ await services?.codeBlockService.setCombineIds(props.model[props.name]);
242
238
  await services?.codeBlockService.setMode(CodeEditorMode.LIST);
243
- services?.codeBlockService.setCodeEditorContent(true, combineIds.value[0]);
239
+ services?.codeBlockService.setCodeEditorContent(true, props.model[props.name][0]);
244
240
  };
245
241
  return (_ctx, _cache) => {
246
242
  const _component_m_fields_select = resolveComponent("m-fields-select");
@@ -260,7 +256,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
260
256
  }, null, 8, ["config", "model", "prop", "name", "size"])
261
257
  ]),
262
258
  default: withCtx(() => [
263
- createElementVNode("div", _hoisted_1$d, [
259
+ createElementVNode("div", _hoisted_1$e, [
264
260
  createVNode(unref(TMagicTooltip), {
265
261
  class: "tool-item",
266
262
  effect: "dark",
@@ -288,8 +284,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
288
284
  }
289
285
  });
290
286
 
291
- const _hoisted_1$c = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
292
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
287
+ const _hoisted_1$d = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
288
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
293
289
  __name: "UISelect",
294
290
  props: {
295
291
  config: null,
@@ -352,7 +348,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
352
348
  style: { "padding": "0" }
353
349
  }, {
354
350
  default: withCtx(() => [
355
- _hoisted_1$c
351
+ _hoisted_1$d
356
352
  ]),
357
353
  _: 1
358
354
  }, 8, ["icon"])
@@ -400,7 +396,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
400
396
 
401
397
  const UISelect_vue_vue_type_style_index_0_lang = '';
402
398
 
403
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
399
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
404
400
  __name: "CodeEditor",
405
401
  props: {
406
402
  initValues: null,
@@ -530,8 +526,8 @@ const setConfig = (option) => {
530
526
  };
531
527
  const getConfig = (key) => $TMAGIC_EDITOR[key];
532
528
 
533
- const _hoisted_1$b = ["src"];
534
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
529
+ const _hoisted_1$c = ["src"];
530
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
535
531
  __name: "Icon",
536
532
  props: {
537
533
  icon: null
@@ -551,7 +547,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
551
547
  class: "magic-editor-icon"
552
548
  }, {
553
549
  default: withCtx(() => [
554
- createElementVNode("img", { src: __props.icon }, null, 8, _hoisted_1$b)
550
+ createElementVNode("img", { src: __props.icon }, null, 8, _hoisted_1$c)
555
551
  ]),
556
552
  _: 1
557
553
  })) : typeof __props.icon === "string" ? (openBlock(), createElementBlock("i", {
@@ -2412,6 +2408,11 @@ const useStage = (stageOptions) => {
2412
2408
  stage.on("sort", (ev) => {
2413
2409
  editorService.sort(ev.src, ev.dist);
2414
2410
  });
2411
+ stage.on("select-parent", () => {
2412
+ const parent = editorService.get("parent");
2413
+ editorService.select(parent);
2414
+ editorService.get("stage").select(parent.id);
2415
+ });
2415
2416
  stage.on("changeGuides", (e) => {
2416
2417
  uiService.set("showGuides", true);
2417
2418
  if (!root.value || !page.value)
@@ -2428,10 +2429,10 @@ const useStage = (stageOptions) => {
2428
2429
  return stage;
2429
2430
  };
2430
2431
 
2431
- const _hoisted_1$a = { class: "m-editor-empty-panel" };
2432
- const _hoisted_2$4 = { class: "m-editor-empty-content" };
2432
+ const _hoisted_1$b = { class: "m-editor-empty-panel" };
2433
+ const _hoisted_2$5 = { class: "m-editor-empty-content" };
2433
2434
  const _hoisted_3$2 = /* @__PURE__ */ createElementVNode("p", null, "\u65B0\u589E\u9875\u9762", -1);
2434
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
2435
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
2435
2436
  __name: "AddPageBox",
2436
2437
  setup(__props) {
2437
2438
  const services = inject("services");
@@ -2445,14 +2446,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2445
2446
  });
2446
2447
  };
2447
2448
  return (_ctx, _cache) => {
2448
- return openBlock(), createElementBlock("div", _hoisted_1$a, [
2449
- createElementVNode("div", _hoisted_2$4, [
2449
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
2450
+ createElementVNode("div", _hoisted_2$5, [
2450
2451
  createElementVNode("div", {
2451
2452
  class: "m-editor-empty-button",
2452
2453
  onClick: clickHandler
2453
2454
  }, [
2454
2455
  createElementVNode("div", null, [
2455
- createVNode(_sfc_main$n, { icon: unref(Plus) }, null, 8, ["icon"])
2456
+ createVNode(_sfc_main$o, { icon: unref(Plus) }, null, 8, ["icon"])
2456
2457
  ]),
2457
2458
  _hoisted_3$2
2458
2459
  ])
@@ -2462,7 +2463,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2462
2463
  }
2463
2464
  });
2464
2465
 
2465
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
2466
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2466
2467
  __name: "Resizer",
2467
2468
  emits: ["change"],
2468
2469
  setup(__props, { emit }) {
@@ -2495,7 +2496,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2495
2496
  }
2496
2497
  });
2497
2498
 
2498
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
2499
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2499
2500
  __name: "Layout",
2500
2501
  props: {
2501
2502
  left: null,
@@ -2574,7 +2575,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2574
2575
  }, [
2575
2576
  renderSlot(_ctx.$slots, "left")
2576
2577
  ], 6),
2577
- createVNode(_sfc_main$l, { onChange: changeLeft })
2578
+ createVNode(_sfc_main$m, { onChange: changeLeft })
2578
2579
  ], 64)) : createCommentVNode("", true),
2579
2580
  createElementVNode("div", {
2580
2581
  class: normalizeClass(["m-editor-layout-center", __props.centerClass]),
@@ -2583,7 +2584,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2583
2584
  renderSlot(_ctx.$slots, "center")
2584
2585
  ], 6),
2585
2586
  typeof props.right !== "undefined" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2586
- createVNode(_sfc_main$l, { onChange: changeRight }),
2587
+ createVNode(_sfc_main$m, { onChange: changeRight }),
2587
2588
  createElementVNode("div", {
2588
2589
  class: normalizeClass(["m-editor-layout-right", __props.rightClass]),
2589
2590
  style: normalizeStyle(`width: ${__props.right}px`)
@@ -2596,8 +2597,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2596
2597
  }
2597
2598
  });
2598
2599
 
2599
- const _hoisted_1$9 = { class: "m-editor" };
2600
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
2600
+ const _hoisted_1$a = { class: "m-editor" };
2601
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2601
2602
  __name: "Framework",
2602
2603
  props: {
2603
2604
  codeOptions: { default: () => ({}) }
@@ -2664,7 +2665,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2664
2665
  };
2665
2666
  return (_ctx, _cache) => {
2666
2667
  const _component_magic_code_editor = resolveComponent("magic-code-editor");
2667
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
2668
+ return openBlock(), createElementBlock("div", _hoisted_1$a, [
2668
2669
  renderSlot(_ctx.$slots, "nav", { class: "m-editor-nav-menu" }),
2669
2670
  unref(showSrc) ? (openBlock(), createBlock(_component_magic_code_editor, {
2670
2671
  key: 0,
@@ -2672,7 +2673,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2672
2673
  "init-values": unref(root),
2673
2674
  options: __props.codeOptions,
2674
2675
  onSave: saveCode
2675
- }, null, 8, ["init-values", "options"])) : (openBlock(), createBlock(_sfc_main$k, {
2676
+ }, null, 8, ["init-values", "options"])) : (openBlock(), createBlock(_sfc_main$l, {
2676
2677
  key: 1,
2677
2678
  class: "m-editor-content",
2678
2679
  "left-class": "m-editor-framework-left",
@@ -2691,7 +2692,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2691
2692
  ]),
2692
2693
  center: withCtx(() => [
2693
2694
  unref(pageLength) > 0 ? renderSlot(_ctx.$slots, "workspace", { key: 0 }) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
2694
- createVNode(_sfc_main$m)
2695
+ createVNode(_sfc_main$n)
2695
2696
  ])
2696
2697
  ]),
2697
2698
  _: 2
@@ -2713,12 +2714,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2713
2714
  }
2714
2715
  });
2715
2716
 
2716
- const _hoisted_1$8 = {
2717
+ const _hoisted_1$9 = {
2717
2718
  key: 1,
2718
2719
  class: "menu-item-text"
2719
2720
  };
2720
- const _hoisted_2$3 = { class: "el-dropdown-link menubar-menu-button" };
2721
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
2721
+ const _hoisted_2$4 = { class: "el-dropdown-link menubar-menu-button" };
2722
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2722
2723
  __name: "ToolButton",
2723
2724
  props: {
2724
2725
  data: { default: () => ({
@@ -2794,7 +2795,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2794
2795
  __props.data.type === "divider" ? (openBlock(), createBlock(unref(TMagicDivider), {
2795
2796
  key: 0,
2796
2797
  direction: __props.data.direction || "vertical"
2797
- }, null, 8, ["direction"])) : __props.data.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$8, toDisplayString(__props.data.text), 1)) : __props.data.type === "button" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
2798
+ }, null, 8, ["direction"])) : __props.data.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$9, toDisplayString(__props.data.text), 1)) : __props.data.type === "button" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
2798
2799
  __props.data.tooltip ? (openBlock(), createBlock(unref(TMagicTooltip), {
2799
2800
  key: 0,
2800
2801
  effect: "dark",
@@ -2808,7 +2809,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2808
2809
  disabled: unref(disabled)
2809
2810
  }, {
2810
2811
  default: withCtx(() => [
2811
- __props.data.icon ? (openBlock(), createBlock(_sfc_main$n, {
2812
+ __props.data.icon ? (openBlock(), createBlock(_sfc_main$o, {
2812
2813
  key: 0,
2813
2814
  icon: __props.data.icon
2814
2815
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -2825,7 +2826,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2825
2826
  disabled: unref(disabled)
2826
2827
  }, {
2827
2828
  default: withCtx(() => [
2828
- __props.data.icon ? (openBlock(), createBlock(_sfc_main$n, {
2829
+ __props.data.icon ? (openBlock(), createBlock(_sfc_main$o, {
2829
2830
  key: 0,
2830
2831
  icon: __props.data.icon
2831
2832
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -2858,7 +2859,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2858
2859
  })) : createCommentVNode("", true)
2859
2860
  ]),
2860
2861
  default: withCtx(() => [
2861
- createElementVNode("span", _hoisted_2$3, [
2862
+ createElementVNode("span", _hoisted_2$4, [
2862
2863
  createTextVNode(toDisplayString(__props.data.text), 1),
2863
2864
  createVNode(unref(TMagicIcon), { class: "el-icon--right" }, {
2864
2865
  default: withCtx(() => [
@@ -2875,7 +2876,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2875
2876
  }
2876
2877
  });
2877
2878
 
2878
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
2879
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2879
2880
  __name: "NavMenu",
2880
2881
  props: {
2881
2882
  data: { default: () => ({}) },
@@ -3031,7 +3032,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3031
3032
  style: normalizeStyle(`width: ${unref(columnWidth)?.[key]}px`)
3032
3033
  }, [
3033
3034
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(buttons)[key], (item, index) => {
3034
- return openBlock(), createBlock(_sfc_main$i, {
3035
+ return openBlock(), createBlock(_sfc_main$j, {
3035
3036
  data: item,
3036
3037
  key: index
3037
3038
  }, null, 8, ["data"]);
@@ -3043,8 +3044,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3043
3044
  }
3044
3045
  });
3045
3046
 
3046
- const _hoisted_1$7 = { class: "m-editor-props-panel" };
3047
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
3047
+ const _hoisted_1$8 = { class: "m-editor-props-panel" };
3048
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3048
3049
  __name: "PropsPanel",
3049
3050
  emits: ["mounted"],
3050
3051
  setup(__props, { expose, emit }) {
@@ -3088,7 +3089,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
3088
3089
  expose({ submit });
3089
3090
  return (_ctx, _cache) => {
3090
3091
  const _component_m_form = resolveComponent("m-form");
3091
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
3092
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
3092
3093
  renderSlot(_ctx.$slots, "props-panel-header"),
3093
3094
  createVNode(_component_m_form, {
3094
3095
  ref_key: "configForm",
@@ -3105,8 +3106,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
3105
3106
  }
3106
3107
  });
3107
3108
 
3108
- const _hoisted_1$6 = ["id"];
3109
- const _hoisted_2$2 = { class: "list-item" };
3109
+ const _hoisted_1$7 = ["id"];
3110
+ const _hoisted_2$3 = { class: "list-item" };
3110
3111
  const _hoisted_3$1 = { class: "code-name" };
3111
3112
  const _hoisted_4$1 = { class: "code-name-wrapper" };
3112
3113
  const _hoisted_5$1 = /* @__PURE__ */ createElementVNode("div", { class: "code-name-label" }, "\u4EE3\u7801\u5757\u540D\u79F0", -1);
@@ -3122,7 +3123,7 @@ const _hoisted_10 = {
3122
3123
  class: "m-editor-content-bottom"
3123
3124
  };
3124
3125
  const _hoisted_11 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
3125
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
3126
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
3126
3127
  __name: "CodeBlockEditor",
3127
3128
  setup(__props) {
3128
3129
  const services = inject("services");
@@ -3194,7 +3195,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3194
3195
  "append-to-body": true
3195
3196
  }, {
3196
3197
  default: withCtx(() => [
3197
- createVNode(_sfc_main$k, {
3198
+ createVNode(_sfc_main$l, {
3198
3199
  left: left.value,
3199
3200
  "onUpdate:left": _cache[1] || (_cache[1] = ($event) => left.value = $event),
3200
3201
  "min-left": 45,
@@ -3223,7 +3224,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3223
3224
  ]),
3224
3225
  default: withCtx(() => [
3225
3226
  createElementVNode("div", _hoisted_6$1, [
3226
- codeConfig.value ? (openBlock(), createBlock(_sfc_main$o, {
3227
+ codeConfig.value ? (openBlock(), createBlock(_sfc_main$p, {
3227
3228
  key: 0,
3228
3229
  ref_key: "codeEditor",
3229
3230
  ref: codeEditor,
@@ -3296,10 +3297,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3296
3297
  id: data.id,
3297
3298
  class: "list-container"
3298
3299
  }, [
3299
- createElementVNode("div", _hoisted_2$2, [
3300
+ createElementVNode("div", _hoisted_2$3, [
3300
3301
  createElementVNode("div", _hoisted_3$1, toDisplayString(data.name) + "\uFF08" + toDisplayString(data.id) + "\uFF09", 1)
3301
3302
  ])
3302
- ], 8, _hoisted_1$6)
3303
+ ], 8, _hoisted_1$7)
3303
3304
  ]),
3304
3305
  _: 1
3305
3306
  }, 8, ["data", "current-node-key"])) : createCommentVNode("", true)
@@ -3313,8 +3314,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3313
3314
  }
3314
3315
  });
3315
3316
 
3316
- const _hoisted_1$5 = { class: "m-editor-code-block-list" };
3317
- const _hoisted_2$1 = { class: "code-header-wrapper" };
3317
+ const _hoisted_1$6 = { class: "m-editor-code-block-list" };
3318
+ const _hoisted_2$2 = { class: "code-header-wrapper" };
3318
3319
  const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u65B0\u589E");
3319
3320
  const _hoisted_4 = ["id"];
3320
3321
  const _hoisted_5 = { class: "list-item" };
@@ -3335,7 +3336,7 @@ const _hoisted_9 = /* @__PURE__ */ createElementVNode("svg", {
3335
3336
  d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"
3336
3337
  })
3337
3338
  ], -1);
3338
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
3339
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3339
3340
  __name: "CodeBlockList",
3340
3341
  props: {
3341
3342
  customError: null
@@ -3463,9 +3464,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3463
3464
  stage?.select(compId);
3464
3465
  };
3465
3466
  return (_ctx, _cache) => {
3466
- return openBlock(), createElementBlock("div", _hoisted_1$5, [
3467
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
3467
3468
  renderSlot(_ctx.$slots, "code-block-panel-header", {}, () => [
3468
- createElementVNode("div", _hoisted_2$1, [
3469
+ createElementVNode("div", _hoisted_2$2, [
3469
3470
  createVNode(unref(TMagicInput), {
3470
3471
  class: normalizeClass([unref(editable) ? "code-filter-input" : "code-filter-input-no-btn"]),
3471
3472
  size: "small",
@@ -3514,7 +3515,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3514
3515
  placement: "bottom"
3515
3516
  }, {
3516
3517
  default: withCtx(() => [
3517
- createVNode(_sfc_main$n, {
3518
+ createVNode(_sfc_main$o, {
3518
3519
  icon: unref(editable) ? unref(Edit) : unref(View),
3519
3520
  class: "edit-icon",
3520
3521
  onClick: withModifiers(($event) => editCode(`${data.id}`), ["stop"])
@@ -3529,7 +3530,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3529
3530
  placement: "bottom"
3530
3531
  }, {
3531
3532
  default: withCtx(() => [
3532
- createVNode(_sfc_main$n, {
3533
+ createVNode(_sfc_main$o, {
3533
3534
  icon: unref(Link),
3534
3535
  class: "edit-icon",
3535
3536
  onClick: withModifiers(($event) => toggleCombineRelation(data), ["stop"])
@@ -3544,7 +3545,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3544
3545
  placement: "bottom"
3545
3546
  }, {
3546
3547
  default: withCtx(() => [
3547
- createVNode(_sfc_main$n, {
3548
+ createVNode(_sfc_main$o, {
3548
3549
  icon: unref(Close),
3549
3550
  class: "edit-icon",
3550
3551
  onClick: withModifiers(($event) => deleteCode(`${data.id}`), ["stop"])
@@ -3579,7 +3580,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3579
3580
  ]),
3580
3581
  _: 3
3581
3582
  }, 8, ["data"])) : createCommentVNode("", true),
3582
- createVNode(_sfc_main$f, null, {
3583
+ createVNode(_sfc_main$g, null, {
3583
3584
  "code-block-edit-panel-header": withCtx(({ id }) => [
3584
3585
  renderSlot(_ctx.$slots, "code-block-edit-panel-header", { id })
3585
3586
  ]),
@@ -3590,8 +3591,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3590
3591
  }
3591
3592
  });
3592
3593
 
3593
- const _hoisted_1$4 = ["onClick", "onDragstart"];
3594
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
3594
+ const _hoisted_1$5 = ["onClick", "onDragstart"];
3595
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3595
3596
  __name: "ComponentListPanel",
3596
3597
  setup(__props) {
3597
3598
  const searchText = ref("");
@@ -3681,7 +3682,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3681
3682
  name: `${index}`
3682
3683
  }, {
3683
3684
  title: withCtx(() => [
3684
- createVNode(_sfc_main$n, { icon: unref(Grid) }, null, 8, ["icon"]),
3685
+ createVNode(_sfc_main$o, { icon: unref(Grid) }, null, 8, ["icon"]),
3685
3686
  createTextVNode(toDisplayString(group.title), 1)
3686
3687
  ]),
3687
3688
  default: withCtx(() => [
@@ -3696,7 +3697,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3696
3697
  onDrag: dragHandler
3697
3698
  }, [
3698
3699
  renderSlot(_ctx.$slots, "component-list-item", { component: item }, () => [
3699
- createVNode(_sfc_main$n, {
3700
+ createVNode(_sfc_main$o, {
3700
3701
  icon: item.icon
3701
3702
  }, null, 8, ["icon"]),
3702
3703
  createVNode(unref(TMagicTooltip), {
@@ -3710,7 +3711,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3710
3711
  _: 2
3711
3712
  }, 1032, ["content"])
3712
3713
  ])
3713
- ], 40, _hoisted_1$4);
3714
+ ], 40, _hoisted_1$5);
3714
3715
  }), 128))
3715
3716
  ]),
3716
3717
  _: 2
@@ -3727,7 +3728,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3727
3728
  }
3728
3729
  });
3729
3730
 
3730
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
3731
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3731
3732
  __name: "ContentMenu",
3732
3733
  props: {
3733
3734
  menuData: { default: () => [] },
@@ -3807,7 +3808,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3807
3808
  });
3808
3809
  return (_ctx, _cache) => {
3809
3810
  const _component_content_menu = resolveComponent("content-menu", true);
3810
- return __props.menuData.length && visible.value ? (openBlock(), createElementBlock("div", {
3811
+ return __props.menuData.length ? withDirectives((openBlock(), createElementBlock("div", {
3811
3812
  key: 0,
3812
3813
  class: "magic-editor-content-menu",
3813
3814
  ref_key: "menu",
@@ -3816,7 +3817,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3816
3817
  }, [
3817
3818
  createElementVNode("div", null, [
3818
3819
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.menuData, (item, index) => {
3819
- return openBlock(), createBlock(_sfc_main$i, {
3820
+ return openBlock(), createBlock(_sfc_main$j, {
3820
3821
  "event-type": "mouseup",
3821
3822
  data: item,
3822
3823
  key: index,
@@ -3835,12 +3836,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3835
3836
  onHide: hide
3836
3837
  }, null, 8, ["menu-data"])
3837
3838
  ]))
3838
- ], 4)) : createCommentVNode("", true);
3839
+ ], 4)), [
3840
+ [vShow, visible.value]
3841
+ ]) : createCommentVNode("", true);
3839
3842
  };
3840
3843
  }
3841
3844
  });
3842
3845
 
3843
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
3846
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3844
3847
  __name: "LayerMenu",
3845
3848
  setup(__props, { expose }) {
3846
3849
  const services = inject("services");
@@ -3928,7 +3931,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3928
3931
  show
3929
3932
  });
3930
3933
  return (_ctx, _cache) => {
3931
- return openBlock(), createBlock(_sfc_main$c, {
3934
+ return openBlock(), createBlock(_sfc_main$d, {
3932
3935
  "menu-data": unref(menuData),
3933
3936
  ref_key: "menu",
3934
3937
  ref: menu,
@@ -3938,8 +3941,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3938
3941
  }
3939
3942
  });
3940
3943
 
3941
- const _hoisted_1$3 = ["id", "onMouseenter"];
3942
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
3944
+ const _hoisted_1$4 = ["id", "onMouseenter"];
3945
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3943
3946
  __name: "LayerPanel",
3944
3947
  setup(__props) {
3945
3948
  const throttleTime = 150;
@@ -4222,12 +4225,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4222
4225
  }, () => [
4223
4226
  createElementVNode("span", null, toDisplayString(`${data.name} (${data.id})`), 1)
4224
4227
  ])
4225
- ], 42, _hoisted_1$3)
4228
+ ], 42, _hoisted_1$4)
4226
4229
  ]),
4227
4230
  _: 3
4228
4231
  }, 8, ["default-expanded-keys", "data", "show-checkbox"])) : createCommentVNode("", true),
4229
4232
  (openBlock(), createBlock(Teleport, { to: "body" }, [
4230
- createVNode(_sfc_main$b, {
4233
+ createVNode(_sfc_main$c, {
4231
4234
  ref_key: "menu",
4232
4235
  ref: menu
4233
4236
  }, null, 512)
@@ -4239,11 +4242,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4239
4242
  }
4240
4243
  });
4241
4244
 
4242
- const _hoisted_1$2 = {
4245
+ const _hoisted_1$3 = {
4243
4246
  key: 1,
4244
4247
  class: "magic-editor-tab-panel-title"
4245
4248
  };
4246
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4249
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4247
4250
  __name: "TabPane",
4248
4251
  props: {
4249
4252
  data: null
@@ -4260,7 +4263,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4260
4263
  type: "component",
4261
4264
  icon: Coin,
4262
4265
  text: "\u7EC4\u4EF6",
4263
- component: _sfc_main$d,
4266
+ component: _sfc_main$e,
4264
4267
  slots: {}
4265
4268
  };
4266
4269
  case "layer":
@@ -4268,7 +4271,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4268
4271
  type: "component",
4269
4272
  icon: Files,
4270
4273
  text: "\u5DF2\u9009\u7EC4\u4EF6",
4271
- component: _sfc_main$a,
4274
+ component: _sfc_main$b,
4272
4275
  slots: {}
4273
4276
  };
4274
4277
  case "code-block":
@@ -4276,7 +4279,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4276
4279
  type: "component",
4277
4280
  icon: EditPen,
4278
4281
  text: "\u4EE3\u7801\u7F16\u8F91",
4279
- component: _sfc_main$e,
4282
+ component: _sfc_main$f,
4280
4283
  slots: {}
4281
4284
  };
4282
4285
  default:
@@ -4292,11 +4295,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4292
4295
  (openBlock(), createElementBlock("div", {
4293
4296
  key: unref(config).text
4294
4297
  }, [
4295
- unref(config).icon ? (openBlock(), createBlock(_sfc_main$n, {
4298
+ unref(config).icon ? (openBlock(), createBlock(_sfc_main$o, {
4296
4299
  key: 0,
4297
4300
  icon: unref(config).icon
4298
4301
  }, null, 8, ["icon"])) : createCommentVNode("", true),
4299
- unref(config).text ? (openBlock(), createElementBlock("div", _hoisted_1$2, toDisplayString(unref(config).text), 1)) : createCommentVNode("", true)
4302
+ unref(config).text ? (openBlock(), createElementBlock("div", _hoisted_1$3, toDisplayString(unref(config).text), 1)) : createCommentVNode("", true)
4300
4303
  ]))
4301
4304
  ]),
4302
4305
  default: withCtx(() => [
@@ -4372,7 +4375,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4372
4375
  }
4373
4376
  });
4374
4377
 
4375
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4378
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4376
4379
  __name: "Sidebar",
4377
4380
  props: {
4378
4381
  data: { default: () => ({ type: "tabs", status: "\u7EC4\u4EF6", items: ["component-list", "layer", "code-block"] }) }
@@ -4400,7 +4403,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4400
4403
  }, {
4401
4404
  default: withCtx(() => [
4402
4405
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.data.items, (item, index) => {
4403
- return openBlock(), createBlock(_sfc_main$9, {
4406
+ return openBlock(), createBlock(_sfc_main$a, {
4404
4407
  key: index,
4405
4408
  data: item
4406
4409
  }, createSlots({ _: 2 }, [
@@ -4461,6 +4464,48 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4461
4464
  }
4462
4465
  });
4463
4466
 
4467
+ const _hoisted_1$2 = {
4468
+ key: 0,
4469
+ class: "m-editor-breadcrumb"
4470
+ };
4471
+ const _hoisted_2$1 = { key: 0 };
4472
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4473
+ __name: "Breadcrumb",
4474
+ setup(__props) {
4475
+ const services = inject("services");
4476
+ const editorService = services?.editorService;
4477
+ const node = computed(() => editorService?.get("node"));
4478
+ const nodes = computed(() => editorService?.get("nodes") || []);
4479
+ const root = computed(() => editorService?.get("root"));
4480
+ const path = computed(() => getNodePath(node.value?.id || "", root.value?.items || []));
4481
+ const select = async (node2) => {
4482
+ await editorService?.select(node2);
4483
+ editorService?.get("stage")?.select(node2.id);
4484
+ };
4485
+ return (_ctx, _cache) => {
4486
+ return unref(nodes).length === 1 ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
4487
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(path), (item, index) => {
4488
+ return openBlock(), createElementBlock(Fragment, {
4489
+ key: item.id
4490
+ }, [
4491
+ createVNode(unref(TMagicButton), {
4492
+ text: "",
4493
+ disabled: item.id === unref(node)?.id,
4494
+ onClick: ($event) => select(item)
4495
+ }, {
4496
+ default: withCtx(() => [
4497
+ createTextVNode(toDisplayString(item.name), 1)
4498
+ ]),
4499
+ _: 2
4500
+ }, 1032, ["disabled", "onClick"]),
4501
+ index < unref(path).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2$1, "/")) : createCommentVNode("", true)
4502
+ ], 64);
4503
+ }), 128))
4504
+ ])) : createCommentVNode("", true);
4505
+ };
4506
+ }
4507
+ });
4508
+
4464
4509
  const _hoisted_1$1 = {
4465
4510
  key: 1,
4466
4511
  style: { "width": "21px" }
@@ -4547,14 +4592,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4547
4592
  class: "m-editor-page-bar-item m-editor-page-bar-item-icon",
4548
4593
  onClick: addPage
4549
4594
  }, [
4550
- createVNode(_sfc_main$n, { icon: unref(Plus) }, null, 8, ["icon"])
4595
+ createVNode(_sfc_main$o, { icon: unref(Plus) }, null, 8, ["icon"])
4551
4596
  ])) : (openBlock(), createElementBlock("div", _hoisted_1$1)),
4552
4597
  canScroll.value ? (openBlock(), createElementBlock("div", {
4553
4598
  key: 2,
4554
4599
  class: "m-editor-page-bar-item m-editor-page-bar-item-icon",
4555
4600
  onClick: _cache[0] || (_cache[0] = ($event) => scroll("left"))
4556
4601
  }, [
4557
- createVNode(_sfc_main$n, { icon: unref(ArrowLeftBold) }, null, 8, ["icon"])
4602
+ createVNode(_sfc_main$o, { icon: unref(ArrowLeftBold) }, null, 8, ["icon"])
4558
4603
  ])) : createCommentVNode("", true),
4559
4604
  unref(pageLength) ? (openBlock(), createElementBlock("div", {
4560
4605
  key: 3,
@@ -4570,7 +4615,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4570
4615
  class: "m-editor-page-bar-item m-editor-page-bar-item-icon",
4571
4616
  onClick: _cache[1] || (_cache[1] = ($event) => scroll("right"))
4572
4617
  }, [
4573
- createVNode(_sfc_main$n, { icon: unref(ArrowRightBold) }, null, 8, ["icon"])
4618
+ createVNode(_sfc_main$o, { icon: unref(ArrowRightBold) }, null, 8, ["icon"])
4574
4619
  ])) : createCommentVNode("", true)
4575
4620
  ], 512);
4576
4621
  };
@@ -4639,7 +4684,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
4639
4684
  default: withCtx(() => [
4640
4685
  createElementVNode("div", null, [
4641
4686
  renderSlot(_ctx.$slots, "page-bar-popover", { page: item }, () => [
4642
- createVNode(_sfc_main$i, {
4687
+ createVNode(_sfc_main$j, {
4643
4688
  data: {
4644
4689
  type: "button",
4645
4690
  text: "\u590D\u5236",
@@ -4647,7 +4692,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
4647
4692
  handler: () => copy(item)
4648
4693
  }
4649
4694
  }, null, 8, ["data"]),
4650
- createVNode(_sfc_main$i, {
4695
+ createVNode(_sfc_main$j, {
4651
4696
  data: {
4652
4697
  type: "button",
4653
4698
  text: "\u5220\u9664",
@@ -5113,7 +5158,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
5113
5158
  };
5114
5159
  expose({ show });
5115
5160
  return (_ctx, _cache) => {
5116
- return openBlock(), createBlock(_sfc_main$c, {
5161
+ return openBlock(), createBlock(_sfc_main$d, {
5117
5162
  "menu-data": menuData,
5118
5163
  ref_key: "menu",
5119
5164
  ref: menu
@@ -5378,6 +5423,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5378
5423
  ref_key: "workspace",
5379
5424
  ref: workspace
5380
5425
  }, [
5426
+ createVNode(_sfc_main$8),
5381
5427
  renderSlot(_ctx.$slots, "stage", {}, () => [
5382
5428
  (openBlock(), createBlock(_sfc_main$2, {
5383
5429
  key: unref(page)?.id
@@ -5421,11 +5467,11 @@ const componentListService = new ComponentList();
5421
5467
  const _sfc_main = defineComponent({
5422
5468
  name: "m-editor",
5423
5469
  components: {
5424
- NavMenu: _sfc_main$h,
5425
- Sidebar: _sfc_main$8,
5470
+ NavMenu: _sfc_main$i,
5471
+ Sidebar: _sfc_main$9,
5426
5472
  Workspace: _sfc_main$1,
5427
- PropsPanel: _sfc_main$g,
5428
- Framework: _sfc_main$j
5473
+ PropsPanel: _sfc_main$h,
5474
+ Framework: _sfc_main$k
5429
5475
  },
5430
5476
  props: {
5431
5477
  modelValue: {
@@ -5721,13 +5767,13 @@ const index = {
5721
5767
  app.config.globalProperties.$TMAGIC_EDITOR = option;
5722
5768
  setConfig(option);
5723
5769
  app.component(Editor.name, Editor);
5724
- app.component("m-fields-ui-select", _sfc_main$p);
5725
- app.component("m-fields-code-link", _sfc_main$r);
5726
- app.component("m-fields-vs-code", _sfc_main$s);
5727
- app.component("magic-code-editor", _sfc_main$o);
5728
- app.component("m-fields-code-select", _sfc_main$q);
5770
+ app.component("m-fields-ui-select", _sfc_main$q);
5771
+ app.component("m-fields-code-link", _sfc_main$s);
5772
+ app.component("m-fields-vs-code", _sfc_main$t);
5773
+ app.component("magic-code-editor", _sfc_main$p);
5774
+ app.component("m-fields-code-select", _sfc_main$r);
5729
5775
  }
5730
5776
  };
5731
5777
 
5732
- export { COPY_STORAGE_KEY, _sfc_main$e as CodeBlockList, CodeDeleteErrorType, CodeEditorMode, _sfc_main$q as CodeSelect, CodeSelectOp, ColumnLayout, _sfc_main$d as ComponentListPanel, _sfc_main$c as ContentMenu, Fixed2Other, H_GUIDE_LINE_STORAGE_KEY, _sfc_main$n as Icon, Keys, LayerOffset, _sfc_main$a as LayerPanel, Layout, _sfc_main$g as PropsPanel, _sfc_main$o as TMagicCodeEditor, Editor as TMagicEditor, _sfc_main$i as ToolButton, V_GUIDE_LINE_STORAGE_KEY, change2Fixed, codeBlockService, debug, index as default, editorService, error, eventsService, fillConfig, fixNodeLeft, fixNodePosition, generatePageName, generatePageNameByApp, getConfig, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageList, getPageNameList, getRelativeStyle, historyService, info, isFixed, log, propsService, setConfig, setLayout, storageService, uiService, useStage, warn };
5778
+ export { COPY_STORAGE_KEY, _sfc_main$f as CodeBlockList, CodeDeleteErrorType, CodeEditorMode, _sfc_main$r as CodeSelect, CodeSelectOp, ColumnLayout, _sfc_main$e as ComponentListPanel, _sfc_main$d as ContentMenu, Fixed2Other, H_GUIDE_LINE_STORAGE_KEY, _sfc_main$o as Icon, Keys, LayerOffset, _sfc_main$b as LayerPanel, Layout, _sfc_main$h as PropsPanel, _sfc_main$p as TMagicCodeEditor, Editor as TMagicEditor, _sfc_main$j as ToolButton, V_GUIDE_LINE_STORAGE_KEY, change2Fixed, codeBlockService, debug, index as default, editorService, error, eventsService, fillConfig, fixNodeLeft, fixNodePosition, generatePageName, generatePageNameByApp, getConfig, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageList, getPageNameList, getRelativeStyle, historyService, info, isFixed, log, propsService, setConfig, setLayout, storageService, uiService, useStage, warn };
5733
5779
  //# sourceMappingURL=tmagic-editor.mjs.map