@tmagic/editor 1.3.3 → 1.3.5

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,4 +1,4 @@
1
- import { defineComponent, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, createBlock, Teleport, createElementVNode, normalizeClass, normalizeStyle, createVNode, unref, computed, reactive, resolveComponent, inject, withCtx, Fragment, resolveDynamicComponent, createTextVNode, createCommentVNode, toRaw, nextTick, mergeProps, toDisplayString, renderList, watchEffect, withModifiers, renderSlot, createSlots, normalizeProps, markRaw, getCurrentInstance, withDirectives, vShow, createStaticVNode, provide, Transition, toHandlers, mergeDefaults } from 'vue';
1
+ import { defineComponent, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, createBlock, Teleport, createElementVNode, normalizeClass, normalizeStyle, createVNode, unref, computed, reactive, resolveComponent, inject, withCtx, Fragment, resolveDynamicComponent, createTextVNode, createCommentVNode, toRaw, nextTick, mergeProps, toDisplayString, renderList, createStaticVNode, watchEffect, withModifiers, renderSlot, createSlots, normalizeProps, markRaw, getCurrentInstance, withDirectives, vShow, provide, Transition, toHandlers, mergeDefaults } from 'vue';
2
2
  import { FullScreen, Edit, View, Coin, Delete, Plus, Close, ArrowDown, Grid, Memo, ScaleToOriginal, ZoomOut, ZoomIn, Right, Back, Search, Aim, ArrowRight, CopyDocument, DocumentCopy, Files, Hide, Goods, List, EditPen, Top, Bottom, ArrowLeftBold, ArrowRightBold, CaretBottom } from '@element-plus/icons-vue';
3
3
  import { throttle, isEmpty, cloneDeep, mergeWith, isObject, uniq, map, has, pick, keys } from 'lodash-es';
4
4
  import * as monaco from 'monaco-editor';
@@ -7,7 +7,7 @@ import { TMagicButton, TMagicCard, tMagicMessage, TMagicDialog, TMagicTag, tMagi
7
7
  import { HookType, NodeType, ActionType } from '@tmagic/schema';
8
8
  import { MFormBox, MFormDrawer, MForm, createValues, MSelect } from '@tmagic/form';
9
9
  import { MagicTable } from '@tmagic/table';
10
- import { guid, isPop, getNodePath, isNumber, isPage, toLine, DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX, getDefaultValueFromFields, getKeys, addClassName, removeClassName, removeClassNameByClassName, getNodes } from '@tmagic/utils';
10
+ import { guid, isPop, getNodePath, isNumber, isPage, toLine, getDefaultValueFromFields, DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX, getKeys, addClassName, removeClassName, removeClassNameByClassName, convertToNumber, getNodes } from '@tmagic/utils';
11
11
  import Gesto from 'gesto';
12
12
  import Moveable from 'moveable';
13
13
  import { DepTargetType, Watcher, createCodeBlockTarget, createDataSourceTarget, createDataSourceMethodTarget, createDataSourceCondTarget } from '@tmagic/dep';
@@ -407,7 +407,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
407
407
 
408
408
  const _hoisted_1$w = { style: { "display": "flex", "margin-bottom": "10px" } };
409
409
  const _hoisted_2$p = { style: { "flex": "1" } };
410
- const _hoisted_3$b = { style: { "flex": "1" } };
410
+ const _hoisted_3$c = { style: { "flex": "1" } };
411
411
  const _hoisted_4$7 = { class: "dialog-footer" };
412
412
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
413
413
  ...{
@@ -665,7 +665,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
665
665
  _: 1
666
666
  })
667
667
  ]),
668
- createElementVNode("div", _hoisted_3$b, [
668
+ createElementVNode("div", _hoisted_3$c, [
669
669
  createVNode(unref(TMagicTag), {
670
670
  size: "small",
671
671
  type: "success"
@@ -770,6 +770,7 @@ const HttpFormConfig = [
770
770
  name: "data",
771
771
  type: "key-value",
772
772
  defaultValue: {},
773
+ advanced: true,
773
774
  text: "请求体"
774
775
  },
775
776
  {
@@ -2531,7 +2532,9 @@ class Editor extends BaseService {
2531
2532
  async update(config) {
2532
2533
  const nodes = Array.isArray(config) ? config : [config];
2533
2534
  const newNodes = await Promise.all(nodes.map((node) => this.doUpdate(node)));
2534
- this.pushHistoryState();
2535
+ if (newNodes[0]?.type !== NodeType.ROOT) {
2536
+ this.pushHistoryState();
2537
+ }
2535
2538
  this.emit("update", newNodes);
2536
2539
  return Array.isArray(config) ? newNodes : newNodes[0];
2537
2540
  }
@@ -3284,7 +3287,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
3284
3287
  },
3285
3288
  {
3286
3289
  label: "属性描述",
3287
- prop: "desc"
3290
+ prop: "description"
3288
3291
  },
3289
3292
  {
3290
3293
  label: "默认值",
@@ -3415,6 +3418,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
3415
3418
  data: {}
3416
3419
  });
3417
3420
  const newFromJsonHandler = () => {
3421
+ jsonFromValues.value.data = getDefaultValueFromFields(props.model[props.name]);
3418
3422
  addFromJsonDialog.value?.show();
3419
3423
  };
3420
3424
  const getValueType = (value) => {
@@ -3432,33 +3436,35 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
3432
3436
  return "string";
3433
3437
  return "any";
3434
3438
  };
3435
- const getFieldsConfig = (value) => {
3439
+ const getFieldsConfig = (value, fields = []) => {
3436
3440
  if (!value || typeof value !== "object")
3437
3441
  throw new Error("数据格式错误");
3438
- const fields = [];
3442
+ const newFields = [];
3439
3443
  Object.entries(value).forEach(([key, value2]) => {
3440
3444
  const type = getValueType(value2);
3445
+ const oldField = fields.find((field) => field.name === key);
3441
3446
  let childFields = [];
3442
3447
  if (Array.isArray(value2) && value2.length > 0) {
3443
- childFields = getFieldsConfig(value2[0]);
3448
+ childFields = getFieldsConfig(value2[0], oldField?.fields);
3444
3449
  } else if (type === "object") {
3445
- childFields = getFieldsConfig(value2);
3450
+ childFields = getFieldsConfig(value2, oldField?.fields);
3446
3451
  }
3447
- fields.push({
3452
+ newFields.push({
3448
3453
  name: key,
3449
- title: key,
3454
+ title: oldField?.title || key,
3450
3455
  type,
3456
+ description: oldField?.description || "",
3457
+ enable: oldField?.enable ?? true,
3451
3458
  defaultValue: value2,
3452
3459
  fields: childFields
3453
3460
  });
3454
3461
  });
3455
- return fields;
3462
+ return newFields;
3456
3463
  };
3457
3464
  const addFromJsonFromChange = ({ data }) => {
3458
- console.log(data);
3459
3465
  try {
3460
3466
  const value = JSON.parse(data);
3461
- props.model[props.name] = getFieldsConfig(value);
3467
+ props.model[props.name] = getFieldsConfig(value, props.model[props.name]);
3462
3468
  addFromJsonDialog.value?.hide();
3463
3469
  emit("change", props.model[props.name]);
3464
3470
  } catch (e) {
@@ -3580,7 +3586,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
3580
3586
 
3581
3587
  const _hoisted_1$s = { style: { "display": "flex", "flex-direction": "column", "line-height": "1.2em" } };
3582
3588
  const _hoisted_2$m = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
3583
- const _hoisted_3$a = { class: "el-input__inner" };
3589
+ const _hoisted_3$b = { class: "el-input__inner" };
3584
3590
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
3585
3591
  ...{
3586
3592
  name: "MEditorDataSourceInput"
@@ -3788,7 +3794,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
3788
3794
  createElementVNode("div", {
3789
3795
  class: normalizeClass(`tmagic-data-source-input-text-wrapper el-input__wrapper ${isFocused.value ? " is-focus" : ""}`)
3790
3796
  }, [
3791
- createElementVNode("div", _hoisted_3$a, [
3797
+ createElementVNode("div", _hoisted_3$b, [
3792
3798
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayState.value, (item, index) => {
3793
3799
  return openBlock(), createElementBlock(Fragment, null, [
3794
3800
  item.type === "text" ? (openBlock(), createElementBlock("span", {
@@ -4676,9 +4682,32 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
4676
4682
  }
4677
4683
  });
4678
4684
 
4679
- const _hoisted_1$n = { class: "m-fields-key-value" };
4680
- const _hoisted_2$h = /* @__PURE__ */ createElementVNode("span", { class: "m-fileds-key-value-delimiter" }, ":", -1);
4685
+ const _hoisted_1$n = {
4686
+ viewBox: "0 0 32 32",
4687
+ version: "1.1",
4688
+ xmlns: "http://www.w3.org/2000/svg",
4689
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
4690
+ };
4691
+ const _hoisted_2$h = /* @__PURE__ */ createStaticVNode('<defs><rect id="path-1" x="0" y="0" width="32" height="32"></rect></defs><g id="组件规范" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="03图标" transform="translate(-561.000000, -2356.000000)"><g id="icon/line/Universal/code" transform="translate(561.000000, 2356.000000)"><g id="路径"><mask id="mask-2" fill="white"><use xlink:href="#path-1"></use></mask><use id="蒙版" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use><path d="M21.9284587,7.9482233 L29.8079004,15.827665 C29.9055315,15.9252961 29.9055315,16.0835874 29.8079004,16.1812184 L21.9284587,24.0606602 C21.8308276,24.1582912 21.6725364,24.1582912 21.5749053,24.0606602 L20.3374684,22.8232233 C20.2419143,22.7276698 20.2398813,22.5740096 20.331369,22.4759832 L20.3374687,22.4696702 L26.8027181,16.0044417 L20.3374687,9.53921328 C20.2398372,9.44158265 20.2398369,9.2832914 20.3374679,9.18566017 L21.5749053,7.9482233 C21.6725364,7.85059223 21.8308276,7.85059223 21.9284587,7.9482233 Z M10.3999684,7.9482233 L11.6374053,9.18566017 C11.7329594,9.28121371 11.7349925,9.43487387 11.6435048,9.53290029 L11.637405,9.53921328 L5.17215562,16.0044417 L11.637405,22.4696702 C11.7329593,22.5652236 11.7349926,22.7188837 11.643505,22.8169103 L11.6374053,22.8232233 L10.3999684,24.0606602 C10.3023374,24.1582912 10.1440461,24.1582912 10.046415,24.0606602 L2.1669733,16.1812184 C2.06934223,16.0835874 2.06934223,15.9252961 2.1669733,15.827665 L10.046415,7.9482233 C10.1440461,7.85059223 10.3023374,7.85059223 10.3999684,7.9482233 Z M17.2612532,9.29310422 L18.9262468,9.83189578 C19.0576112,9.87440526 19.1296423,10.0153579 19.0871328,10.1467222 L15.0848232,22.514807 C15.0423138,22.6461714 14.9013612,22.7182025 14.7699968,22.675693 L13.1050032,22.1369014 C12.9736388,22.0943919 12.9016077,21.9534393 12.9441172,21.822075 L16.9464268,9.45399022 C16.9889362,9.32262585 17.1298888,9.25059474 17.2612532,9.29310422 Z" id="形状" fill="#1D1F24" mask="url(#mask-2)"></path></g></g><g id="icon切图" transform="translate(226.000000, 1782.000000)"></g></g></g>', 2);
4692
+ const _hoisted_4$6 = [
4693
+ _hoisted_2$h
4694
+ ];
4681
4695
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
4696
+ ...{
4697
+ name: "MEditorCodeIcon"
4698
+ },
4699
+ __name: "CodeIcon",
4700
+ setup(__props) {
4701
+ return (_ctx, _cache) => {
4702
+ return openBlock(), createElementBlock("svg", _hoisted_1$n, _hoisted_4$6);
4703
+ };
4704
+ }
4705
+ });
4706
+
4707
+ const _hoisted_1$m = { class: "m-fields-key-value" };
4708
+ const _hoisted_2$g = { key: 0 };
4709
+ const _hoisted_3$a = /* @__PURE__ */ createElementVNode("span", { class: "m-fileds-key-value-delimiter" }, ":", -1);
4710
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
4682
4711
  ...{
4683
4712
  name: "MEditorKeyValue"
4684
4713
  },
@@ -4699,8 +4728,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
4699
4728
  const props = __props;
4700
4729
  const emit = __emit;
4701
4730
  const records = ref([]);
4731
+ const showCode = ref(false);
4702
4732
  watchEffect(() => {
4703
- records.value = Object.entries(props.model[props.name] || {});
4733
+ const initValues = Object.entries(props.model[props.name] || {});
4734
+ for (const [, value] of initValues) {
4735
+ if (typeof value !== "string") {
4736
+ showCode.value = true;
4737
+ break;
4738
+ }
4739
+ }
4740
+ records.value = initValues;
4704
4741
  });
4705
4742
  const getValue = () => {
4706
4743
  const record = {};
@@ -4724,66 +4761,90 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
4724
4761
  records.value.splice(index, 1);
4725
4762
  emit("change", getValue());
4726
4763
  };
4764
+ const save = (v) => {
4765
+ emit("change", v);
4766
+ };
4727
4767
  return (_ctx, _cache) => {
4728
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
4729
- (openBlock(true), createElementBlock(Fragment, null, renderList(records.value, (item, index) => {
4730
- return openBlock(), createElementBlock("div", {
4731
- class: "m-fields-key-value-item",
4732
- key: index
4733
- }, [
4734
- createVNode(unref(TMagicInput), {
4735
- placeholder: "key",
4736
- modelValue: records.value[index][0],
4737
- "onUpdate:modelValue": ($event) => records.value[index][0] = $event,
4738
- disabled: _ctx.disabled,
4739
- size: _ctx.size,
4740
- onChange: keyChangeHandler
4741
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
4742
- _hoisted_2$h,
4743
- createVNode(unref(TMagicInput), {
4744
- placeholder: "value",
4745
- modelValue: records.value[index][1],
4746
- "onUpdate:modelValue": ($event) => records.value[index][1] = $event,
4747
- disabled: _ctx.disabled,
4748
- size: _ctx.size,
4749
- onChange: valueChangeHandler
4750
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
4751
- createVNode(unref(TMagicButton), {
4752
- class: "m-fileds-key-value-delete",
4753
- type: "danger",
4754
- size: _ctx.size,
4755
- disabled: _ctx.disabled,
4756
- circle: "",
4757
- plain: "",
4758
- icon: unref(Delete),
4759
- onClick: ($event) => deleteHandler(index)
4760
- }, null, 8, ["size", "disabled", "icon", "onClick"])
4761
- ]);
4762
- }), 128)),
4763
- createVNode(unref(TMagicButton), {
4764
- type: "primary",
4765
- size: _ctx.size,
4768
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
4769
+ !showCode.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
4770
+ (openBlock(true), createElementBlock(Fragment, null, renderList(records.value, (item, index) => {
4771
+ return openBlock(), createElementBlock("div", {
4772
+ class: "m-fields-key-value-item",
4773
+ key: index
4774
+ }, [
4775
+ createVNode(unref(TMagicInput), {
4776
+ placeholder: "key",
4777
+ modelValue: records.value[index][0],
4778
+ "onUpdate:modelValue": ($event) => records.value[index][0] = $event,
4779
+ disabled: _ctx.disabled,
4780
+ size: _ctx.size,
4781
+ onChange: keyChangeHandler
4782
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
4783
+ _hoisted_3$a,
4784
+ createVNode(unref(TMagicInput), {
4785
+ placeholder: "value",
4786
+ modelValue: records.value[index][1],
4787
+ "onUpdate:modelValue": ($event) => records.value[index][1] = $event,
4788
+ disabled: _ctx.disabled,
4789
+ size: _ctx.size,
4790
+ onChange: valueChangeHandler
4791
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
4792
+ createVNode(unref(TMagicButton), {
4793
+ class: "m-fileds-key-value-delete",
4794
+ type: "danger",
4795
+ size: _ctx.size,
4796
+ disabled: _ctx.disabled,
4797
+ circle: "",
4798
+ plain: "",
4799
+ icon: unref(Delete),
4800
+ onClick: ($event) => deleteHandler(index)
4801
+ }, null, 8, ["size", "disabled", "icon", "onClick"])
4802
+ ]);
4803
+ }), 128)),
4804
+ createVNode(unref(TMagicButton), {
4805
+ type: "primary",
4806
+ size: _ctx.size,
4807
+ disabled: _ctx.disabled,
4808
+ plain: "",
4809
+ icon: unref(Plus),
4810
+ onClick: addHandler
4811
+ }, {
4812
+ default: withCtx(() => [
4813
+ createTextVNode("添加")
4814
+ ]),
4815
+ _: 1
4816
+ }, 8, ["size", "disabled", "icon"])
4817
+ ])) : createCommentVNode("", true),
4818
+ _ctx.config.advanced && showCode.value ? (openBlock(), createBlock(_sfc_main$T, {
4819
+ key: 1,
4820
+ height: "200px",
4821
+ "init-values": _ctx.model[_ctx.name],
4822
+ language: "json",
4823
+ options: {
4824
+ readOnly: _ctx.disabled
4825
+ },
4826
+ parse: true,
4827
+ onSave: save
4828
+ }, null, 8, ["init-values", "options"])) : createCommentVNode("", true),
4829
+ _ctx.config.advanced ? (openBlock(), createBlock(unref(TMagicButton), {
4830
+ key: 2,
4831
+ size: "default",
4766
4832
  disabled: _ctx.disabled,
4767
- plain: "",
4768
- icon: unref(Plus),
4769
- onClick: addHandler
4770
- }, {
4771
- default: withCtx(() => [
4772
- createTextVNode("添加")
4773
- ]),
4774
- _: 1
4775
- }, 8, ["size", "disabled", "icon"])
4833
+ text: "",
4834
+ icon: _sfc_main$D,
4835
+ onClick: _cache[0] || (_cache[0] = ($event) => showCode.value = !showCode.value)
4836
+ }, null, 8, ["disabled"])) : createCommentVNode("", true)
4776
4837
  ]);
4777
4838
  };
4778
4839
  }
4779
4840
  });
4780
4841
 
4781
- const _hoisted_1$m = {
4842
+ const _hoisted_1$l = {
4782
4843
  key: 1,
4783
4844
  class: "m-fields-ui-select",
4784
4845
  style: { "display": "flex" }
4785
4846
  };
4786
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
4847
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
4787
4848
  ...{
4788
4849
  name: "MEditorUISelect"
4789
4850
  },
@@ -4873,7 +4934,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
4873
4934
  ]),
4874
4935
  _: 1
4875
4936
  }, 8, ["icon", "disabled", "size"])
4876
- ])) : (openBlock(), createElementBlock("div", _hoisted_1$m, [
4937
+ ])) : (openBlock(), createElementBlock("div", _hoisted_1$l, [
4877
4938
  val.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
4878
4939
  createVNode(unref(TMagicTooltip), {
4879
4940
  content: "清除",
@@ -4970,7 +5031,7 @@ const useGetSo = (target, emit) => {
4970
5031
  };
4971
5032
  };
4972
5033
 
4973
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
5034
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
4974
5035
  ...{
4975
5036
  name: "MEditorResizer"
4976
5037
  },
@@ -4992,7 +5053,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
4992
5053
  }
4993
5054
  });
4994
5055
 
4995
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
5056
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
4996
5057
  ...{
4997
5058
  name: "MEditorLayout"
4998
5059
  },
@@ -5119,7 +5180,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
5119
5180
  }, [
5120
5181
  renderSlot(_ctx.$slots, "left")
5121
5182
  ], 6),
5122
- createVNode(_sfc_main$B, { onChange: changeLeft })
5183
+ createVNode(_sfc_main$A, { onChange: changeLeft })
5123
5184
  ], 64)) : createCommentVNode("", true),
5124
5185
  createElementVNode("div", {
5125
5186
  class: normalizeClass(["m-editor-layout-center", _ctx.centerClass]),
@@ -5128,7 +5189,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
5128
5189
  renderSlot(_ctx.$slots, "center")
5129
5190
  ], 6),
5130
5191
  hasRight.value && _ctx.$slots.right ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
5131
- createVNode(_sfc_main$B, { onChange: changeRight }),
5192
+ createVNode(_sfc_main$A, { onChange: changeRight }),
5132
5193
  createElementVNode("div", {
5133
5194
  class: normalizeClass(["m-editor-layout-right", _ctx.rightClass]),
5134
5195
  style: normalizeStyle(`width: ${_ctx.right}px`)
@@ -5141,10 +5202,10 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
5141
5202
  }
5142
5203
  });
5143
5204
 
5144
- const _hoisted_1$l = { class: "m-editor-empty-panel" };
5145
- const _hoisted_2$g = { class: "m-editor-empty-content" };
5205
+ const _hoisted_1$k = { class: "m-editor-empty-panel" };
5206
+ const _hoisted_2$f = { class: "m-editor-empty-content" };
5146
5207
  const _hoisted_3$9 = /* @__PURE__ */ createElementVNode("p", null, "新增页面", -1);
5147
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
5208
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5148
5209
  ...{
5149
5210
  name: "MEditorAddPageBox"
5150
5211
  },
@@ -5164,8 +5225,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
5164
5225
  });
5165
5226
  };
5166
5227
  return (_ctx, _cache) => {
5167
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
5168
- createElementVNode("div", _hoisted_2$g, [
5228
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
5229
+ createElementVNode("div", _hoisted_2$f, [
5169
5230
  createElementVNode("div", {
5170
5231
  class: "m-editor-empty-button",
5171
5232
  onClick: clickHandler
@@ -5185,7 +5246,7 @@ const DEFAULT_LEFT_COLUMN_WIDTH = 310;
5185
5246
  const DEFAULT_RIGHT_COLUMN_WIDTH = 480;
5186
5247
  const LEFT_COLUMN_WIDTH_STORAGE_KEY = "$MagicEditorLeftColumnWidthData";
5187
5248
  const RIGHT_COLUMN_WIDTH_STORAGE_KEY = "$MagicEditorRightColumnWidthData";
5188
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
5249
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
5189
5250
  ...{
5190
5251
  name: "MEditorFramework"
5191
5252
  },
@@ -5266,7 +5327,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5266
5327
  options: unref(codeOptions),
5267
5328
  onSave: saveCode
5268
5329
  }, null, 8, ["init-values", "options"])
5269
- ]) : (openBlock(), createBlock(_sfc_main$A, {
5330
+ ]) : (openBlock(), createBlock(_sfc_main$z, {
5270
5331
  key: 1,
5271
5332
  ref_key: "splitView",
5272
5333
  ref: splitView,
@@ -5288,7 +5349,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5288
5349
  ]),
5289
5350
  center: withCtx(() => [
5290
5351
  pageLength.value > 0 ? renderSlot(_ctx.$slots, "workspace", { key: 0 }) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
5291
- createVNode(_sfc_main$z)
5352
+ createVNode(_sfc_main$y)
5292
5353
  ])
5293
5354
  ]),
5294
5355
  _: 2
@@ -5313,12 +5374,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5313
5374
  }
5314
5375
  });
5315
5376
 
5316
- const _hoisted_1$k = {
5377
+ const _hoisted_1$j = {
5317
5378
  key: 1,
5318
5379
  class: "menu-item-text"
5319
5380
  };
5320
- const _hoisted_2$f = { class: "el-dropdown-link menubar-menu-button" };
5321
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
5381
+ const _hoisted_2$e = { class: "el-dropdown-link menubar-menu-button" };
5382
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
5322
5383
  ...{
5323
5384
  name: "MEditorToolButton"
5324
5385
  },
@@ -5397,7 +5458,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
5397
5458
  _ctx.data.type === "divider" ? (openBlock(), createBlock(unref(TMagicDivider), {
5398
5459
  key: 0,
5399
5460
  direction: _ctx.data.direction || "vertical"
5400
- }, null, 8, ["direction"])) : _ctx.data.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$k, toDisplayString(_ctx.data.text), 1)) : _ctx.data.type === "button" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
5461
+ }, null, 8, ["direction"])) : _ctx.data.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$j, toDisplayString(_ctx.data.text), 1)) : _ctx.data.type === "button" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
5401
5462
  _ctx.data.tooltip ? (openBlock(), createBlock(unref(TMagicTooltip), {
5402
5463
  key: 0,
5403
5464
  effect: "dark",
@@ -5462,7 +5523,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
5462
5523
  })) : createCommentVNode("", true)
5463
5524
  ]),
5464
5525
  default: withCtx(() => [
5465
- createElementVNode("span", _hoisted_2$f, [
5526
+ createElementVNode("span", _hoisted_2$e, [
5466
5527
  createTextVNode(toDisplayString(_ctx.data.text), 1),
5467
5528
  createVNode(unref(TMagicIcon), { class: "el-icon--right" }, {
5468
5529
  default: withCtx(() => [
@@ -5479,7 +5540,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
5479
5540
  }
5480
5541
  });
5481
5542
 
5482
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
5543
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
5483
5544
  ...{
5484
5545
  name: "MEditorNavMenu"
5485
5546
  },
@@ -5641,7 +5702,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
5641
5702
  style: normalizeStyle(`width: ${columnWidth.value?.[key]}px`)
5642
5703
  }, [
5643
5704
  (openBlock(true), createElementBlock(Fragment, null, renderList(buttons.value[key], (item, index) => {
5644
- return openBlock(), createBlock(_sfc_main$x, {
5705
+ return openBlock(), createBlock(_sfc_main$w, {
5645
5706
  data: item,
5646
5707
  key: index
5647
5708
  }, null, 8, ["data"]);
@@ -5653,8 +5714,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
5653
5714
  }
5654
5715
  });
5655
5716
 
5656
- const _hoisted_1$j = { class: "m-editor-props-panel" };
5657
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
5717
+ const _hoisted_1$i = { class: "m-editor-props-panel" };
5718
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
5658
5719
  ...{
5659
5720
  name: "MEditorPropsPanel"
5660
5721
  },
@@ -5708,7 +5769,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
5708
5769
  };
5709
5770
  __expose({ configForm, submit });
5710
5771
  return (_ctx, _cache) => {
5711
- return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$j, [
5772
+ return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$i, [
5712
5773
  renderSlot(_ctx.$slots, "props-panel-header"),
5713
5774
  createVNode(unref(MForm), {
5714
5775
  ref_key: "configForm",
@@ -5859,7 +5920,7 @@ const useFloatBox = (slideKeys) => {
5859
5920
  };
5860
5921
  };
5861
5922
 
5862
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
5923
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
5863
5924
  ...{
5864
5925
  name: "MEditorSearchInput"
5865
5926
  },
@@ -5899,8 +5960,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
5899
5960
  }
5900
5961
  });
5901
5962
 
5902
- const _hoisted_1$i = { xmlns: "http://www.w3.org/2000/svg" };
5903
- const _hoisted_2$e = /* @__PURE__ */ createElementVNode("g", {
5963
+ const _hoisted_1$h = { xmlns: "http://www.w3.org/2000/svg" };
5964
+ const _hoisted_2$d = /* @__PURE__ */ createElementVNode("g", {
5904
5965
  fill: "#7C878E",
5905
5966
  "fill-rule": "evenodd"
5906
5967
  }, [
@@ -5911,38 +5972,16 @@ const _hoisted_2$e = /* @__PURE__ */ createElementVNode("g", {
5911
5972
  /* @__PURE__ */ createElementVNode("path", { d: "M8 13.5L2.3 9.2 0.7 10.5 8 16 15.3 10.5 13.7 9.2z" })
5912
5973
  ], -1);
5913
5974
  const _hoisted_3$8 = [
5914
- _hoisted_2$e
5915
- ];
5916
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
5917
- ...{
5918
- name: "MEditorAppManageIcon"
5919
- },
5920
- __name: "AppManageIcon",
5921
- setup(__props) {
5922
- return (_ctx, _cache) => {
5923
- return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$8);
5924
- };
5925
- }
5926
- });
5927
-
5928
- const _hoisted_1$h = {
5929
- viewBox: "0 0 32 32",
5930
- version: "1.1",
5931
- xmlns: "http://www.w3.org/2000/svg",
5932
- "xmlns:xlink": "http://www.w3.org/1999/xlink"
5933
- };
5934
- const _hoisted_2$d = /* @__PURE__ */ createStaticVNode('<defs><rect id="path-1" x="0" y="0" width="32" height="32"></rect></defs><g id="组件规范" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="03图标" transform="translate(-561.000000, -2356.000000)"><g id="icon/line/Universal/code" transform="translate(561.000000, 2356.000000)"><g id="路径"><mask id="mask-2" fill="white"><use xlink:href="#path-1"></use></mask><use id="蒙版" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use><path d="M21.9284587,7.9482233 L29.8079004,15.827665 C29.9055315,15.9252961 29.9055315,16.0835874 29.8079004,16.1812184 L21.9284587,24.0606602 C21.8308276,24.1582912 21.6725364,24.1582912 21.5749053,24.0606602 L20.3374684,22.8232233 C20.2419143,22.7276698 20.2398813,22.5740096 20.331369,22.4759832 L20.3374687,22.4696702 L26.8027181,16.0044417 L20.3374687,9.53921328 C20.2398372,9.44158265 20.2398369,9.2832914 20.3374679,9.18566017 L21.5749053,7.9482233 C21.6725364,7.85059223 21.8308276,7.85059223 21.9284587,7.9482233 Z M10.3999684,7.9482233 L11.6374053,9.18566017 C11.7329594,9.28121371 11.7349925,9.43487387 11.6435048,9.53290029 L11.637405,9.53921328 L5.17215562,16.0044417 L11.637405,22.4696702 C11.7329593,22.5652236 11.7349926,22.7188837 11.643505,22.8169103 L11.6374053,22.8232233 L10.3999684,24.0606602 C10.3023374,24.1582912 10.1440461,24.1582912 10.046415,24.0606602 L2.1669733,16.1812184 C2.06934223,16.0835874 2.06934223,15.9252961 2.1669733,15.827665 L10.046415,7.9482233 C10.1440461,7.85059223 10.3023374,7.85059223 10.3999684,7.9482233 Z M17.2612532,9.29310422 L18.9262468,9.83189578 C19.0576112,9.87440526 19.1296423,10.0153579 19.0871328,10.1467222 L15.0848232,22.514807 C15.0423138,22.6461714 14.9013612,22.7182025 14.7699968,22.675693 L13.1050032,22.1369014 C12.9736388,22.0943919 12.9016077,21.9534393 12.9441172,21.822075 L16.9464268,9.45399022 C16.9889362,9.32262585 17.1298888,9.25059474 17.2612532,9.29310422 Z" id="形状" fill="#1D1F24" mask="url(#mask-2)"></path></g></g><g id="icon切图" transform="translate(226.000000, 1782.000000)"></g></g></g>', 2);
5935
- const _hoisted_4$6 = [
5936
5975
  _hoisted_2$d
5937
5976
  ];
5938
5977
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
5939
5978
  ...{
5940
- name: "MEditorCodeIcon"
5979
+ name: "MEditorAppManageIcon"
5941
5980
  },
5942
- __name: "CodeIcon",
5981
+ __name: "AppManageIcon",
5943
5982
  setup(__props) {
5944
5983
  return (_ctx, _cache) => {
5945
- return openBlock(), createElementBlock("svg", _hoisted_1$h, _hoisted_4$6);
5984
+ return openBlock(), createElementBlock("svg", _hoisted_1$h, _hoisted_3$8);
5946
5985
  };
5947
5986
  }
5948
5987
  });
@@ -6056,11 +6095,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6056
6095
  class: "list-container"
6057
6096
  }, [
6058
6097
  createElementVNode("div", _hoisted_2$c, [
6059
- data.type === "code" ? (openBlock(), createBlock(_sfc_main$s, {
6098
+ data.type === "code" ? (openBlock(), createBlock(_sfc_main$D, {
6060
6099
  key: 0,
6061
6100
  class: "codeIcon"
6062
6101
  })) : createCommentVNode("", true),
6063
- data.type === "node" ? (openBlock(), createBlock(_sfc_main$t, {
6102
+ data.type === "node" ? (openBlock(), createBlock(_sfc_main$s, {
6064
6103
  key: 1,
6065
6104
  class: "compIcon"
6066
6105
  })) : createCommentVNode("", true),
@@ -6135,7 +6174,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
6135
6174
  default: withCtx(() => [
6136
6175
  renderSlot(_ctx.$slots, "code-block-panel-header", {}, () => [
6137
6176
  createElementVNode("div", _hoisted_1$f, [
6138
- createVNode(_sfc_main$u, { onSearch: filterTextChangeHandler }),
6177
+ createVNode(_sfc_main$t, { onSearch: filterTextChangeHandler }),
6139
6178
  editable.value ? (openBlock(), createBlock(unref(TMagicButton), {
6140
6179
  key: 0,
6141
6180
  class: "create-code-button",
@@ -6462,7 +6501,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6462
6501
  createVNode(unref(TMagicScrollbar), { class: "data-source-list-panel m-editor-dep-list-panel" }, {
6463
6502
  default: withCtx(() => [
6464
6503
  createElementVNode("div", _hoisted_1$d, [
6465
- createVNode(_sfc_main$u, { onSearch: filterTextChangeHandler }),
6504
+ createVNode(_sfc_main$t, { onSearch: filterTextChangeHandler }),
6466
6505
  editable.value ? (openBlock(), createBlock(unref(TMagicPopover), {
6467
6506
  key: 0,
6468
6507
  placement: "right"
@@ -6481,7 +6520,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6481
6520
  default: withCtx(() => [
6482
6521
  createElementVNode("div", _hoisted_2$a, [
6483
6522
  (openBlock(true), createElementBlock(Fragment, null, renderList(datasourceTypeList.value, (item, index) => {
6484
- return openBlock(), createBlock(_sfc_main$x, {
6523
+ return openBlock(), createBlock(_sfc_main$w, {
6485
6524
  data: {
6486
6525
  type: "button",
6487
6526
  text: item.text,
@@ -6824,7 +6863,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6824
6863
  renderSlot(_ctx.$slots, "title"),
6825
6864
  createElementVNode("div", null, [
6826
6865
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuData, (item, index) => {
6827
- return openBlock(), createBlock(_sfc_main$x, {
6866
+ return openBlock(), createBlock(_sfc_main$w, {
6828
6867
  "event-type": "mouseup",
6829
6868
  ref_for: true,
6830
6869
  ref_key: "buttons",
@@ -7622,7 +7661,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7622
7661
  return openBlock(), createBlock(unref(TMagicScrollbar), { class: "m-editor-layer-panel" }, {
7623
7662
  default: withCtx(() => [
7624
7663
  renderSlot(_ctx.$slots, "layer-panel-header"),
7625
- createVNode(_sfc_main$u, { onSearch: unref(filterTextChangeHandler) }, null, 8, ["onSearch"]),
7664
+ createVNode(_sfc_main$t, { onSearch: unref(filterTextChangeHandler) }, null, 8, ["onSearch"]),
7626
7665
  page.value && unref(nodeStatusMap) ? (openBlock(), createBlock(_sfc_main$l, {
7627
7666
  key: 0,
7628
7667
  tabindex: "-1",
@@ -7745,7 +7784,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7745
7784
  "model-value": collapseValue.value
7746
7785
  }, {
7747
7786
  default: withCtx(() => [
7748
- createVNode(_sfc_main$u, { onSearch: filterTextChangeHandler }),
7787
+ createVNode(_sfc_main$t, { onSearch: filterTextChangeHandler }),
7749
7788
  (openBlock(true), createElementBlock(Fragment, null, renderList(list.value, (group, index) => {
7750
7789
  return openBlock(), createElementBlock(Fragment, null, [
7751
7790
  group.items && group.items.length ? (openBlock(), createBlock(unref(TMagicCollapseItem), {
@@ -8304,8 +8343,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8304
8343
  const el = ref();
8305
8344
  const style = computed(
8306
8345
  () => `
8307
- width: ${props.width}px;
8308
- height: ${props.height}px;
8346
+ width: ${isNumber(`${props.width}`) ? `${props.width}px` : props.width};
8347
+ height: ${isNumber(`${props.height}`) ? `${props.height}px` : props.height};
8309
8348
  position: absolute;
8310
8349
  margin-top: 30px;
8311
8350
  `
@@ -8443,8 +8482,10 @@ class Ui extends BaseService {
8443
8482
  const { height, width } = stageContainerRect;
8444
8483
  if (!width || !height)
8445
8484
  return 1;
8446
- const stageWidth = stageRect.width + 30;
8447
- const stageHeight = stageRect.height + 30;
8485
+ let stageWidth = convertToNumber(stageRect.width, width);
8486
+ let stageHeight = convertToNumber(stageRect.height, height);
8487
+ stageWidth = stageWidth + 30;
8488
+ stageHeight = stageHeight + 30;
8448
8489
  if (width > stageWidth && height > stageHeight) {
8449
8490
  return 1;
8450
8491
  }
@@ -9164,7 +9205,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
9164
9205
  let top = 0;
9165
9206
  let left = 0;
9166
9207
  let position = "relative";
9167
- if (layout === Layout.ABSOLUTE) {
9208
+ if (style.position === "fixed") {
9209
+ position = "fixed";
9210
+ top = e.clientY - containerRect.top;
9211
+ left = e.clientX - containerRect.left;
9212
+ } else if (layout === Layout.ABSOLUTE) {
9168
9213
  position = "absolute";
9169
9214
  top = e.clientY - containerRect.top + scrollTop;
9170
9215
  left = e.clientX - containerRect.left + scrollLeft;
@@ -9462,7 +9507,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
9462
9507
  default: withCtx(() => [
9463
9508
  createElementVNode("div", null, [
9464
9509
  renderSlot(_ctx.$slots, "page-bar-popover", { page: item }, () => [
9465
- createVNode(_sfc_main$x, {
9510
+ createVNode(_sfc_main$w, {
9466
9511
  data: {
9467
9512
  type: "button",
9468
9513
  text: "复制",
@@ -9470,7 +9515,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
9470
9515
  handler: () => copy(item)
9471
9516
  }
9472
9517
  }, null, 8, ["data"]),
9473
- createVNode(_sfc_main$x, {
9518
+ createVNode(_sfc_main$w, {
9474
9519
  data: {
9475
9520
  type: "button",
9476
9521
  text: "删除",
@@ -10385,13 +10430,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10385
10430
  );
10386
10431
  __expose(services);
10387
10432
  return (_ctx, _cache) => {
10388
- return openBlock(), createBlock(_sfc_main$y, null, {
10433
+ return openBlock(), createBlock(_sfc_main$x, null, {
10389
10434
  header: withCtx(() => [
10390
10435
  renderSlot(_ctx.$slots, "header")
10391
10436
  ]),
10392
10437
  nav: withCtx(() => [
10393
10438
  renderSlot(_ctx.$slots, "nav", { editorService: unref(editorService) }, () => [
10394
- createVNode(_sfc_main$w, { data: _ctx.menu }, null, 8, ["data"])
10439
+ createVNode(_sfc_main$v, { data: _ctx.menu }, null, 8, ["data"])
10395
10440
  ])
10396
10441
  ]),
10397
10442
  "content-before": withCtx(() => [
@@ -10458,7 +10503,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10458
10503
  ]),
10459
10504
  "props-panel": withCtx(() => [
10460
10505
  renderSlot(_ctx.$slots, "props-panel", {}, () => [
10461
- createVNode(_sfc_main$v, {
10506
+ createVNode(_sfc_main$u, {
10462
10507
  "extend-state": _ctx.extendFormState,
10463
10508
  onMounted: _cache[0] || (_cache[0] = (instance) => _ctx.$emit("props-panel-mounted", instance))
10464
10509
  }, {
@@ -10496,7 +10541,7 @@ const index = {
10496
10541
  app.config.globalProperties.$TMAGIC_EDITOR = option;
10497
10542
  setConfig(option);
10498
10543
  app.component(_sfc_main.name, _sfc_main);
10499
- app.component("m-fields-ui-select", _sfc_main$C);
10544
+ app.component("m-fields-ui-select", _sfc_main$B);
10500
10545
  app.component("m-fields-code-link", _sfc_main$R);
10501
10546
  app.component("m-fields-vs-code", _sfc_main$S);
10502
10547
  app.component("magic-code-editor", _sfc_main$T);
@@ -10505,7 +10550,7 @@ const index = {
10505
10550
  app.component("m-fields-event-select", _sfc_main$E);
10506
10551
  app.component("m-fields-data-source-fields", _sfc_main$L);
10507
10552
  app.component("m-fields-data-source-mocks", _sfc_main$G);
10508
- app.component("m-fields-key-value", _sfc_main$D);
10553
+ app.component("m-fields-key-value", _sfc_main$C);
10509
10554
  app.component("m-fields-data-source-input", _sfc_main$J);
10510
10555
  app.component("m-fields-data-source-select", _sfc_main$F);
10511
10556
  app.component("m-fields-data-source-methods", _sfc_main$I);
@@ -10514,5 +10559,5 @@ const index = {
10514
10559
  }
10515
10560
  };
10516
10561
 
10517
- export { CODE_DRAFT_STORAGE_KEY, COPY_STORAGE_KEY, _sfc_main$P as CodeBlockEditor, _sfc_main$r as CodeBlockList, _sfc_main$q as CodeBlockListPanel, CodeDeleteErrorType, _sfc_main$Q as CodeSelect, _sfc_main$M as CodeSelectCol, ColumnLayout, _sfc_main$f as ComponentListPanel, _sfc_main$k as ContentMenu, _sfc_main$K as DataSourceFieldSelect, _sfc_main$L as DataSourceFields, _sfc_main$J as DataSourceInput, _sfc_main$H as DataSourceMethodSelect, _sfc_main$I as DataSourceMethods, _sfc_main$G as DataSourceMocks, _sfc_main$F as DataSourceSelect, DragType, _sfc_main$E as EventSelect, Fixed2Other, H_GUIDE_LINE_STORAGE_KEY, _sfc_main$N as Icon, KeyBindingCommand, _sfc_main$D as KeyValue, Keys, LayerOffset, _sfc_main$g as LayerPanel, Layout, _sfc_main$A as LayoutContainer, _sfc_main$v as PropsPanel, _sfc_main$B as Resizer, _sfc_main$A as SplitView, _sfc_main$T as TMagicCodeEditor, _sfc_main as TMagicEditor, _sfc_main$x as ToolButton, UI_SELECT_MODE_EVENT_NAME, V_GUIDE_LINE_STORAGE_KEY, advancedTabConfig, beforePaste, change2Fixed, codeBlockService, dataSourceService, debug, index as default, depService, displayTabConfig, editorService, error, eventTabConfig, eventsService, fillConfig, fixNodeLeft, fixNodePosition, generatePageName, generatePageNameByApp, getAddParent, getConfig, getDefaultConfig, getDisplayField, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, historyService, info, isFixed, log, propsService, serializeConfig, setChilrenLayout, setConfig, setLayout, storageService, styleTabConfig, traverseNode, uiService, useCodeBlockEdit, useDataSourceMethod, useFloatBox, useStage, warn };
10562
+ export { CODE_DRAFT_STORAGE_KEY, COPY_STORAGE_KEY, _sfc_main$P as CodeBlockEditor, _sfc_main$r as CodeBlockList, _sfc_main$q as CodeBlockListPanel, CodeDeleteErrorType, _sfc_main$Q as CodeSelect, _sfc_main$M as CodeSelectCol, ColumnLayout, _sfc_main$f as ComponentListPanel, _sfc_main$k as ContentMenu, _sfc_main$K as DataSourceFieldSelect, _sfc_main$L as DataSourceFields, _sfc_main$J as DataSourceInput, _sfc_main$H as DataSourceMethodSelect, _sfc_main$I as DataSourceMethods, _sfc_main$G as DataSourceMocks, _sfc_main$F as DataSourceSelect, DragType, _sfc_main$E as EventSelect, Fixed2Other, H_GUIDE_LINE_STORAGE_KEY, _sfc_main$N as Icon, KeyBindingCommand, _sfc_main$C as KeyValue, Keys, LayerOffset, _sfc_main$g as LayerPanel, Layout, _sfc_main$z as LayoutContainer, _sfc_main$u as PropsPanel, _sfc_main$A as Resizer, _sfc_main$z as SplitView, _sfc_main$T as TMagicCodeEditor, _sfc_main as TMagicEditor, _sfc_main$w as ToolButton, UI_SELECT_MODE_EVENT_NAME, V_GUIDE_LINE_STORAGE_KEY, advancedTabConfig, beforePaste, change2Fixed, codeBlockService, dataSourceService, debug, index as default, depService, displayTabConfig, editorService, error, eventTabConfig, eventsService, fillConfig, fixNodeLeft, fixNodePosition, generatePageName, generatePageNameByApp, getAddParent, getConfig, getDefaultConfig, getDisplayField, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, historyService, info, isFixed, log, propsService, serializeConfig, setChilrenLayout, setConfig, setLayout, storageService, styleTabConfig, traverseNode, uiService, useCodeBlockEdit, useDataSourceMethod, useFloatBox, useStage, warn };
10518
10563
  //# sourceMappingURL=tmagic-editor.js.map