@tmagic/editor 1.5.0-beta.5 → 1.5.0-beta.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.
@@ -3239,7 +3239,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
3239
3239
  });
3240
3240
 
3241
3241
  const _hoisted_1$u = { class: "m-fields-code-select-col" };
3242
- const _hoisted_2$j = { class: "code-select-container" };
3242
+ const _hoisted_2$g = { class: "code-select-container" };
3243
3243
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
3244
3244
  ...{
3245
3245
  name: "MFieldsCodeSelectCol"
@@ -3320,7 +3320,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
3320
3320
  };
3321
3321
  return (_ctx, _cache) => {
3322
3322
  return openBlock(), createElementBlock("div", _hoisted_1$u, [
3323
- createElementVNode("div", _hoisted_2$j, [
3323
+ createElementVNode("div", _hoisted_2$g, [
3324
3324
  createVNode(unref(MContainer), {
3325
3325
  class: "select",
3326
3326
  config: selectConfig,
@@ -4191,7 +4191,7 @@ const useNodeStatus$1 = (nodeData) => {
4191
4191
  };
4192
4192
 
4193
4193
  const _hoisted_1$t = { class: "m-editor-data-source-fields" };
4194
- const _hoisted_2$i = { class: "m-editor-data-source-fields-footer" };
4194
+ const _hoisted_2$f = { class: "m-editor-data-source-fields-footer" };
4195
4195
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
4196
4196
  ...{
4197
4197
  name: "MFieldsDataSourceFields"
@@ -4448,16 +4448,16 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4448
4448
  data: _ctx.model[_ctx.name],
4449
4449
  columns: fieldColumns
4450
4450
  }, null, 8, ["data"]),
4451
- createElementVNode("div", _hoisted_2$i, [
4451
+ createElementVNode("div", _hoisted_2$f, [
4452
4452
  createVNode(unref(TMagicButton), {
4453
4453
  size: "small",
4454
4454
  disabled: _ctx.disabled,
4455
4455
  plain: "",
4456
4456
  onClick: _cache[0] || (_cache[0] = ($event) => newFromJsonHandler())
4457
4457
  }, {
4458
- default: withCtx(() => [
4458
+ default: withCtx(() => _cache[8] || (_cache[8] = [
4459
4459
  createTextVNode("快速添加")
4460
- ]),
4460
+ ])),
4461
4461
  _: 1
4462
4462
  }, 8, ["disabled"]),
4463
4463
  createVNode(unref(TMagicButton), {
@@ -4467,9 +4467,9 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
4467
4467
  plain: "",
4468
4468
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
4469
4469
  }, {
4470
- default: withCtx(() => [
4470
+ default: withCtx(() => _cache[9] || (_cache[9] = [
4471
4471
  createTextVNode("添加")
4472
- ]),
4472
+ ])),
4473
4473
  _: 1
4474
4474
  }, 8, ["disabled"])
4475
4475
  ]),
@@ -4836,8 +4836,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
4836
4836
  });
4837
4837
 
4838
4838
  const _hoisted_1$q = { style: { "display": "flex", "flex-direction": "column", "line-height": "1.2em" } };
4839
- const _hoisted_2$h = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
4840
- const _hoisted_3$8 = { class: "el-input__inner t-input__inner" };
4839
+ const _hoisted_2$e = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
4840
+ const _hoisted_3$4 = { class: "el-input__inner t-input__inner" };
4841
4841
  const _sfc_main$M = /* @__PURE__ */ defineComponent({
4842
4842
  ...{
4843
4843
  name: "MFieldsDataSourceInput"
@@ -5043,7 +5043,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
5043
5043
  default: withCtx(({ item }) => [
5044
5044
  createElementVNode("div", _hoisted_1$q, [
5045
5045
  createElementVNode("div", null, toDisplayString(item.text), 1),
5046
- createElementVNode("span", _hoisted_2$h, toDisplayString(item.value), 1)
5046
+ createElementVNode("span", _hoisted_2$e, toDisplayString(item.value), 1)
5047
5047
  ])
5048
5048
  ]),
5049
5049
  _: 1
@@ -5055,7 +5055,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
5055
5055
  createElementVNode("div", {
5056
5056
  class: normalizeClass(`tmagic-data-source-input-text-wrapper el-input__wrapper ${isFocused.value ? " is-focus" : ""}`)
5057
5057
  }, [
5058
- createElementVNode("div", _hoisted_3$8, [
5058
+ createElementVNode("div", _hoisted_3$4, [
5059
5059
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayState.value, (item, index) => {
5060
5060
  return openBlock(), createElementBlock(Fragment, null, [
5061
5061
  item.type === "text" ? (openBlock(), createElementBlock("span", {
@@ -5085,9 +5085,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
5085
5085
  });
5086
5086
 
5087
5087
  const _hoisted_1$p = { style: { "display": "flex", "margin-bottom": "10px" } };
5088
- const _hoisted_2$g = { style: { "flex": "1" } };
5089
- const _hoisted_3$7 = { style: { "flex": "1" } };
5090
- const _hoisted_4$7 = { class: "dialog-footer" };
5088
+ const _hoisted_2$d = { style: { "flex": "1" } };
5089
+ const _hoisted_3$3 = { style: { "flex": "1" } };
5090
+ const _hoisted_4$3 = { class: "dialog-footer" };
5091
5091
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
5092
5092
  ...{
5093
5093
  name: "MEditorCodeBlockEditor"
@@ -5296,9 +5296,9 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5296
5296
  link: "",
5297
5297
  onClick: _cache[0] || (_cache[0] = ($event) => difVisible.value = true)
5298
5298
  }, {
5299
- default: withCtx(() => [
5299
+ default: withCtx(() => _cache[6] || (_cache[6] = [
5300
5300
  createTextVNode("查看修改")
5301
- ]),
5301
+ ])),
5302
5302
  _: 1
5303
5303
  })) : createCommentVNode("", true)
5304
5304
  ]),
@@ -5315,14 +5315,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5315
5315
  fullscreen: ""
5316
5316
  }, {
5317
5317
  footer: withCtx(() => [
5318
- createElementVNode("span", _hoisted_4$7, [
5318
+ createElementVNode("span", _hoisted_4$3, [
5319
5319
  createVNode(unref(TMagicButton), {
5320
5320
  size: "small",
5321
5321
  onClick: _cache[4] || (_cache[4] = ($event) => difVisible.value = false)
5322
5322
  }, {
5323
- default: withCtx(() => [
5323
+ default: withCtx(() => _cache[9] || (_cache[9] = [
5324
5324
  createTextVNode("取消")
5325
- ]),
5325
+ ])),
5326
5326
  _: 1
5327
5327
  }),
5328
5328
  createVNode(unref(TMagicButton), {
@@ -5330,34 +5330,34 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5330
5330
  type: "primary",
5331
5331
  onClick: diffChange
5332
5332
  }, {
5333
- default: withCtx(() => [
5333
+ default: withCtx(() => _cache[10] || (_cache[10] = [
5334
5334
  createTextVNode("确定")
5335
- ]),
5335
+ ])),
5336
5336
  _: 1
5337
5337
  })
5338
5338
  ])
5339
5339
  ]),
5340
5340
  default: withCtx(() => [
5341
5341
  createElementVNode("div", _hoisted_1$p, [
5342
- createElementVNode("div", _hoisted_2$g, [
5342
+ createElementVNode("div", _hoisted_2$d, [
5343
5343
  createVNode(unref(TMagicTag), {
5344
5344
  size: "small",
5345
5345
  type: "info"
5346
5346
  }, {
5347
- default: withCtx(() => [
5347
+ default: withCtx(() => _cache[7] || (_cache[7] = [
5348
5348
  createTextVNode("修改前")
5349
- ]),
5349
+ ])),
5350
5350
  _: 1
5351
5351
  })
5352
5352
  ]),
5353
- createElementVNode("div", _hoisted_3$7, [
5353
+ createElementVNode("div", _hoisted_3$3, [
5354
5354
  createVNode(unref(TMagicTag), {
5355
5355
  size: "small",
5356
5356
  type: "success"
5357
5357
  }, {
5358
- default: withCtx(() => [
5358
+ default: withCtx(() => _cache[8] || (_cache[8] = [
5359
5359
  createTextVNode("修改后")
5360
- ]),
5360
+ ])),
5361
5361
  _: 1
5362
5362
  })
5363
5363
  ])
@@ -5382,7 +5382,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5382
5382
  });
5383
5383
 
5384
5384
  const _hoisted_1$o = { class: "m-editor-data-source-methods" };
5385
- const _hoisted_2$f = { class: "m-editor-data-source-methods-footer" };
5385
+ const _hoisted_2$c = { class: "m-editor-data-source-methods-footer" };
5386
5386
  const _sfc_main$K = /* @__PURE__ */ defineComponent({
5387
5387
  ...{
5388
5388
  name: "MFieldsDataSourceMethods"
@@ -5458,7 +5458,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5458
5458
  data: _ctx.model[_ctx.name],
5459
5459
  columns: methodColumns
5460
5460
  }, null, 8, ["data"]),
5461
- createElementVNode("div", _hoisted_2$f, [
5461
+ createElementVNode("div", _hoisted_2$c, [
5462
5462
  createVNode(unref(TMagicButton), {
5463
5463
  size: "small",
5464
5464
  type: "primary",
@@ -5466,9 +5466,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5466
5466
  plain: "",
5467
5467
  onClick: createCodeHandler
5468
5468
  }, {
5469
- default: withCtx(() => [
5469
+ default: withCtx(() => _cache[0] || (_cache[0] = [
5470
5470
  createTextVNode("添加")
5471
- ]),
5471
+ ])),
5472
5472
  _: 1
5473
5473
  }, 8, ["disabled"])
5474
5474
  ]),
@@ -5488,7 +5488,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5488
5488
  });
5489
5489
 
5490
5490
  const _hoisted_1$n = { class: "m-fields-data-source-method-select" };
5491
- const _hoisted_2$e = { class: "data-source-method-select-container" };
5491
+ const _hoisted_2$b = { class: "data-source-method-select-container" };
5492
5492
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
5493
5493
  ...{
5494
5494
  name: "MFieldsDataSourceMethodSelect"
@@ -5576,7 +5576,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5576
5576
  };
5577
5577
  return (_ctx, _cache) => {
5578
5578
  return openBlock(), createElementBlock("div", _hoisted_1$n, [
5579
- createElementVNode("div", _hoisted_2$e, [
5579
+ createElementVNode("div", _hoisted_2$b, [
5580
5580
  createVNode(unref(MContainer), {
5581
5581
  class: "select",
5582
5582
  config: cascaderConfig.value,
@@ -5620,7 +5620,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5620
5620
  });
5621
5621
 
5622
5622
  const _hoisted_1$m = { class: "m-editor-data-source-fields" };
5623
- const _hoisted_2$d = { class: "m-editor-data-source-fields-footer" };
5623
+ const _hoisted_2$a = { class: "m-editor-data-source-fields-footer" };
5624
5624
  const _sfc_main$I = /* @__PURE__ */ defineComponent({
5625
5625
  ...{
5626
5626
  name: "MFieldsDataSourceMocks"
@@ -5830,7 +5830,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
5830
5830
  data: _ctx.model[_ctx.name],
5831
5831
  columns
5832
5832
  }, null, 8, ["data"]),
5833
- createElementVNode("div", _hoisted_2$d, [
5833
+ createElementVNode("div", _hoisted_2$a, [
5834
5834
  createVNode(unref(TMagicButton), {
5835
5835
  size: "small",
5836
5836
  type: "primary",
@@ -5838,9 +5838,9 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
5838
5838
  plain: "",
5839
5839
  onClick: _cache[0] || (_cache[0] = ($event) => newHandler())
5840
5840
  }, {
5841
- default: withCtx(() => [
5841
+ default: withCtx(() => _cache[4] || (_cache[4] = [
5842
5842
  createTextVNode("添加")
5843
- ]),
5843
+ ])),
5844
5844
  _: 1
5845
5845
  }, 8, ["disabled"])
5846
5846
  ]),
@@ -6095,7 +6095,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
6095
6095
  });
6096
6096
 
6097
6097
  const _hoisted_1$k = { class: "m-fields-event-select" };
6098
- const _hoisted_2$c = {
6098
+ const _hoisted_2$9 = {
6099
6099
  key: 1,
6100
6100
  class: "fullWidth"
6101
6101
  };
@@ -6383,7 +6383,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
6383
6383
  model: _ctx.model,
6384
6384
  config: tableConfig.value,
6385
6385
  onChange: onChangeHandler
6386
- }, null, 8, ["size", "disabled", "model", "config"])) : (openBlock(), createElementBlock("div", _hoisted_2$c, [
6386
+ }, null, 8, ["size", "disabled", "model", "config"])) : (openBlock(), createElementBlock("div", _hoisted_2$9, [
6387
6387
  createVNode(unref(TMagicButton), {
6388
6388
  class: "create-button",
6389
6389
  type: "primary",
@@ -6391,9 +6391,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
6391
6391
  disabled: _ctx.disabled,
6392
6392
  onClick: _cache[0] || (_cache[0] = ($event) => addEvent())
6393
6393
  }, {
6394
- default: withCtx(() => [
6394
+ default: withCtx(() => _cache[1] || (_cache[1] = [
6395
6395
  createTextVNode("添加事件")
6396
- ]),
6396
+ ])),
6397
6397
  _: 1
6398
6398
  }, 8, ["size", "disabled"]),
6399
6399
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.model[_ctx.name], (cardItem, index) => {
@@ -6439,10 +6439,6 @@ const _hoisted_1$j = {
6439
6439
  xmlns: "http://www.w3.org/2000/svg",
6440
6440
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
6441
6441
  };
6442
- const _hoisted_2$b = /* @__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);
6443
- const _hoisted_4$6 = [
6444
- _hoisted_2$b
6445
- ];
6446
6442
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
6447
6443
  ...{
6448
6444
  name: "MEditorCodeIcon"
@@ -6450,14 +6446,15 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
6450
6446
  __name: "CodeIcon",
6451
6447
  setup(__props) {
6452
6448
  return (_ctx, _cache) => {
6453
- return openBlock(), createElementBlock("svg", _hoisted_1$j, _hoisted_4$6);
6449
+ return openBlock(), createElementBlock("svg", _hoisted_1$j, _cache[0] || (_cache[0] = [
6450
+ 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)
6451
+ ]));
6454
6452
  };
6455
6453
  }
6456
6454
  });
6457
6455
 
6458
6456
  const _hoisted_1$i = { class: "m-fields-key-value" };
6459
- const _hoisted_2$a = { key: 0 };
6460
- const _hoisted_3$6 = /* @__PURE__ */ createElementVNode("span", { class: "m-fileds-key-value-delimiter" }, ":", -1);
6457
+ const _hoisted_2$8 = { key: 0 };
6461
6458
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
6462
6459
  ...{
6463
6460
  name: "MFieldsKeyValue"
@@ -6517,7 +6514,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6517
6514
  };
6518
6515
  return (_ctx, _cache) => {
6519
6516
  return openBlock(), createElementBlock("div", _hoisted_1$i, [
6520
- !showCode.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
6517
+ !showCode.value ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
6521
6518
  (openBlock(true), createElementBlock(Fragment, null, renderList(records.value, (item, index) => {
6522
6519
  return openBlock(), createElementBlock("div", {
6523
6520
  class: "m-fields-key-value-item",
@@ -6531,7 +6528,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6531
6528
  size: _ctx.size,
6532
6529
  onChange: keyChangeHandler
6533
6530
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
6534
- _hoisted_3$6,
6531
+ _cache[1] || (_cache[1] = createElementVNode("span", { class: "m-fileds-key-value-delimiter" }, ":", -1)),
6535
6532
  createVNode(unref(TMagicInput), {
6536
6533
  placeholder: "value",
6537
6534
  modelValue: records.value[index][1],
@@ -6560,9 +6557,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6560
6557
  icon: unref(Plus),
6561
6558
  onClick: addHandler
6562
6559
  }, {
6563
- default: withCtx(() => [
6560
+ default: withCtx(() => _cache[2] || (_cache[2] = [
6564
6561
  createTextVNode("添加")
6565
- ]),
6562
+ ])),
6566
6563
  _: 1
6567
6564
  }, 8, ["size", "disabled", "icon"])
6568
6565
  ])) : createCommentVNode("", true),
@@ -6591,7 +6588,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6591
6588
  });
6592
6589
 
6593
6590
  const _hoisted_1$h = { class: "m-fields-page-fragment-select" };
6594
- const _hoisted_2$9 = { class: "page-fragment-select-container" };
6591
+ const _hoisted_2$7 = { class: "page-fragment-select-container" };
6595
6592
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
6596
6593
  ...{
6597
6594
  name: "MFieldsPageFragmentSelect"
@@ -6639,7 +6636,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
6639
6636
  return (_ctx, _cache) => {
6640
6637
  const _component_m_form_container = resolveComponent("m-form-container");
6641
6638
  return openBlock(), createElementBlock("div", _hoisted_1$h, [
6642
- createElementVNode("div", _hoisted_2$9, [
6639
+ createElementVNode("div", _hoisted_2$7, [
6643
6640
  createVNode(_component_m_form_container, {
6644
6641
  class: "select",
6645
6642
  config: selectConfig,
@@ -6754,9 +6751,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
6754
6751
  link: "",
6755
6752
  style: { "padding": "0" }
6756
6753
  }, {
6757
- default: withCtx(() => [
6754
+ default: withCtx(() => _cache[2] || (_cache[2] = [
6758
6755
  createTextVNode("取消")
6759
- ]),
6756
+ ])),
6760
6757
  _: 1
6761
6758
  }, 8, ["icon", "disabled", "size"])
6762
6759
  ])) : (openBlock(), createElementBlock("div", _hoisted_1$g, [
@@ -6813,9 +6810,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
6813
6810
  size: _ctx.size,
6814
6811
  onClick: startSelect
6815
6812
  }, {
6816
- default: withCtx(() => [
6813
+ default: withCtx(() => _cache[3] || (_cache[3] = [
6817
6814
  createTextVNode("点击此处选择")
6818
- ]),
6815
+ ])),
6819
6816
  _: 1
6820
6817
  }, 8, ["disabled", "size"])
6821
6818
  ]),
@@ -7012,7 +7009,7 @@ const _hoisted_1$f = {
7012
7009
  key: 1,
7013
7010
  class: "menu-item-text"
7014
7011
  };
7015
- const _hoisted_2$8 = { class: "el-dropdown-link menubar-menu-button" };
7012
+ const _hoisted_2$6 = { class: "el-dropdown-link menubar-menu-button" };
7016
7013
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
7017
7014
  ...{
7018
7015
  name: "MEditorToolButton"
@@ -7149,7 +7146,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
7149
7146
  })) : createCommentVNode("", true)
7150
7147
  ]),
7151
7148
  default: withCtx(() => [
7152
- createElementVNode("span", _hoisted_2$8, [
7149
+ createElementVNode("span", _hoisted_2$6, [
7153
7150
  createTextVNode(toDisplayString(_ctx.data.text), 1),
7154
7151
  createVNode(unref(TMagicIcon), { class: "el-icon--right" }, {
7155
7152
  default: withCtx(() => [
@@ -7474,9 +7471,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
7474
7471
  });
7475
7472
 
7476
7473
  const _hoisted_1$c = { class: "m-editor-page-bar-tabs" };
7477
- const _hoisted_2$7 = ["page-id", "onClick"];
7478
- const _hoisted_3$5 = { class: "m-editor-page-bar-title" };
7479
- const _hoisted_4$5 = ["title"];
7474
+ const _hoisted_2$5 = ["page-id", "onClick"];
7475
+ const _hoisted_3$2 = { class: "m-editor-page-bar-title" };
7476
+ const _hoisted_4$2 = ["title"];
7480
7477
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
7481
7478
  ...{
7482
7479
  name: "MEditorPageBar"
@@ -7583,11 +7580,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
7583
7580
  "page-id": item.id,
7584
7581
  onClick: ($event) => switchPage(item.id)
7585
7582
  }, [
7586
- createElementVNode("div", _hoisted_3$5, [
7583
+ createElementVNode("div", _hoisted_3$2, [
7587
7584
  renderSlot(_ctx.$slots, "page-bar-title", { page: item }, () => [
7588
7585
  createElementVNode("span", {
7589
7586
  title: item.name
7590
- }, toDisplayString(item.name || item.id), 9, _hoisted_4$5)
7587
+ }, toDisplayString(item.name || item.id), 9, _hoisted_4$2)
7591
7588
  ])
7592
7589
  ]),
7593
7590
  createVNode(unref(TMagicPopover), {
@@ -7629,7 +7626,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
7629
7626
  ]),
7630
7627
  _: 2
7631
7628
  }, 1024)
7632
- ], 10, _hoisted_2$7);
7629
+ ], 10, _hoisted_2$5);
7633
7630
  }), 128))
7634
7631
  ]),
7635
7632
  _: 3
@@ -7640,9 +7637,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
7640
7637
  });
7641
7638
 
7642
7639
  const _hoisted_1$b = { class: "m-editor-empty-panel" };
7643
- const _hoisted_2$6 = { class: "m-editor-empty-content" };
7644
- const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("p", null, "新增页面", -1);
7645
- const _hoisted_4$4 = /* @__PURE__ */ createElementVNode("p", null, "新增页面片", -1);
7640
+ const _hoisted_2$4 = { class: "m-editor-empty-content" };
7646
7641
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
7647
7642
  ...{
7648
7643
  name: "MEditorAddPageBox"
@@ -7666,7 +7661,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7666
7661
  };
7667
7662
  return (_ctx, _cache) => {
7668
7663
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
7669
- createElementVNode("div", _hoisted_2$6, [
7664
+ createElementVNode("div", _hoisted_2$4, [
7670
7665
  createElementVNode("div", {
7671
7666
  class: "m-editor-empty-button",
7672
7667
  onClick: _cache[0] || (_cache[0] = ($event) => clickHandler(unref(NodeType).PAGE))
@@ -7674,7 +7669,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7674
7669
  createElementVNode("div", null, [
7675
7670
  createVNode(_sfc_main$Y, { icon: unref(Plus) }, null, 8, ["icon"])
7676
7671
  ]),
7677
- _hoisted_3$4
7672
+ _cache[2] || (_cache[2] = createElementVNode("p", null, "新增页面", -1))
7678
7673
  ]),
7679
7674
  !_ctx.disabledPageFragment ? (openBlock(), createElementBlock("div", {
7680
7675
  key: 0,
@@ -7684,7 +7679,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7684
7679
  createElementVNode("div", null, [
7685
7680
  createVNode(_sfc_main$Y, { icon: unref(Plus) }, null, 8, ["icon"])
7686
7681
  ]),
7687
- _hoisted_4$4
7682
+ _cache[3] || (_cache[3] = createElementVNode("p", null, "新增页面片", -1))
7688
7683
  ])) : createCommentVNode("", true)
7689
7684
  ])
7690
7685
  ]);
@@ -8192,9 +8187,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
8192
8187
  });
8193
8188
 
8194
8189
  const _hoisted_1$9 = ["draggable", "data-node-id", "data-parent-id", "data-parents-id", "data-is-container"];
8195
- const _hoisted_2$5 = { class: "tree-node-label" };
8196
- const _hoisted_3$3 = { class: "tree-node-tool" };
8197
- const _hoisted_4$3 = {
8190
+ const _hoisted_2$3 = { class: "tree-node-label" };
8191
+ const _hoisted_3$1 = { class: "tree-node-tool" };
8192
+ const _hoisted_4$1 = {
8198
8193
  key: 0,
8199
8194
  class: "m-editor-tree-node-children"
8200
8195
  };
@@ -8283,18 +8278,18 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
8283
8278
  onClick: nodeClickHandler
8284
8279
  }, [
8285
8280
  renderSlot(_ctx.$slots, "tree-node-content", { data: _ctx.data }, () => [
8286
- createElementVNode("div", _hoisted_2$5, [
8281
+ createElementVNode("div", _hoisted_2$3, [
8287
8282
  renderSlot(_ctx.$slots, "tree-node-label", { data: _ctx.data }, () => [
8288
8283
  createTextVNode(toDisplayString(`${_ctx.data.name} (${_ctx.data.id})`), 1)
8289
8284
  ])
8290
8285
  ]),
8291
- createElementVNode("div", _hoisted_3$3, [
8286
+ createElementVNode("div", _hoisted_3$1, [
8292
8287
  renderSlot(_ctx.$slots, "tree-node-tool", { data: _ctx.data })
8293
8288
  ])
8294
8289
  ])
8295
8290
  ])
8296
8291
  ], 38),
8297
- hasChildren.value && expanded.value ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
8292
+ hasChildren.value && expanded.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
8298
8293
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data.items, (item) => {
8299
8294
  return openBlock(), createBlock(_component_TreeNode, {
8300
8295
  key: item.id,
@@ -8572,9 +8567,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
8572
8567
  size: "small",
8573
8568
  onClick: unref(createCodeBlock)
8574
8569
  }, {
8575
- default: withCtx(() => [
8570
+ default: withCtx(() => _cache[0] || (_cache[0] = [
8576
8571
  createTextVNode("新增")
8577
- ]),
8572
+ ])),
8578
8573
  _: 1
8579
8574
  }, 8, ["onClick"])) : createCommentVNode("", true),
8580
8575
  renderSlot(_ctx.$slots, "code-block-panel-search")
@@ -8938,9 +8933,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
8938
8933
  type: "primary",
8939
8934
  size: "small"
8940
8935
  }, {
8941
- default: withCtx(() => [
8936
+ default: withCtx(() => _cache[0] || (_cache[0] = [
8942
8937
  createTextVNode("新增")
8943
- ]),
8938
+ ])),
8944
8939
  _: 1
8945
8940
  })
8946
8941
  ]),
@@ -9159,18 +9154,6 @@ const _hoisted_1$5 = {
9159
9154
  fill: "currentColor",
9160
9155
  xmlns: "http://www.w3.org/2000/svg"
9161
9156
  };
9162
- const _hoisted_2$4 = /* @__PURE__ */ createElementVNode("path", {
9163
- "fill-rule": "evenodd",
9164
- d: "M9.828 4H2.19a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91H9v1H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31L.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181L15.546 8H14.54l.265-2.91A1 1 0 0 0 13.81 4H9.828zm-2.95-1.707L7.587 3H2.19c-.24 0-.47.042-.684.12L1.5 2.98a1 1 0 0 1 1-.98h3.672a1 1 0 0 1 .707.293z"
9165
- }, null, -1);
9166
- const _hoisted_3$2 = /* @__PURE__ */ createElementVNode("path", {
9167
- "fill-rule": "evenodd",
9168
- d: "M11 11.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5z"
9169
- }, null, -1);
9170
- const _hoisted_4$2 = [
9171
- _hoisted_2$4,
9172
- _hoisted_3$2
9173
- ];
9174
9157
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
9175
9158
  ...{
9176
9159
  name: "MEditorFolderMinusIcon"
@@ -9178,7 +9161,16 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
9178
9161
  __name: "FolderMinusIcon",
9179
9162
  setup(__props) {
9180
9163
  return (_ctx, _cache) => {
9181
- return openBlock(), createElementBlock("svg", _hoisted_1$5, _hoisted_4$2);
9164
+ return openBlock(), createElementBlock("svg", _hoisted_1$5, _cache[0] || (_cache[0] = [
9165
+ createElementVNode("path", {
9166
+ "fill-rule": "evenodd",
9167
+ d: "M9.828 4H2.19a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91H9v1H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31L.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181L15.546 8H14.54l.265-2.91A1 1 0 0 0 13.81 4H9.828zm-2.95-1.707L7.587 3H2.19c-.24 0-.47.042-.684.12L1.5 2.98a1 1 0 0 1 1-.98h3.672a1 1 0 0 1 .707.293z"
9168
+ }, null, -1),
9169
+ createElementVNode("path", {
9170
+ "fill-rule": "evenodd",
9171
+ d: "M11 11.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5z"
9172
+ }, null, -1)
9173
+ ]));
9182
9174
  };
9183
9175
  }
9184
9176
  });
@@ -9954,7 +9946,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
9954
9946
  });
9955
9947
 
9956
9948
  const _hoisted_1$4 = ["onClick", "onDragstart"];
9957
- const _hoisted_2$3 = ["title"];
9949
+ const _hoisted_2$2 = ["title"];
9958
9950
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
9959
9951
  ...{
9960
9952
  name: "MEditorComponentListPanel"
@@ -10072,7 +10064,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
10072
10064
  }, 1032, ["disabled", "content"]),
10073
10065
  createElementVNode("span", {
10074
10066
  title: item.text
10075
- }, toDisplayString(item.text), 9, _hoisted_2$3)
10067
+ }, toDisplayString(item.text), 9, _hoisted_2$2)
10076
10068
  ])
10077
10069
  ], 40, _hoisted_1$4);
10078
10070
  }), 128))
@@ -10096,13 +10088,13 @@ const _hoisted_1$3 = {
10096
10088
  key: 0,
10097
10089
  class: "m-editor-sidebar"
10098
10090
  };
10099
- const _hoisted_2$2 = { class: "m-editor-sidebar-header" };
10100
- const _hoisted_3$1 = ["draggable", "onClick", "onDragend"];
10101
- const _hoisted_4$1 = {
10091
+ const _hoisted_2$1 = { class: "m-editor-sidebar-header" };
10092
+ const _hoisted_3 = ["draggable", "onClick", "onDragend"];
10093
+ const _hoisted_4 = {
10102
10094
  key: 1,
10103
10095
  class: "magic-editor-tab-panel-title"
10104
10096
  };
10105
- const _hoisted_5$1 = { class: "m-editor-slide-list-box" };
10097
+ const _hoisted_5 = { class: "m-editor-slide-list-box" };
10106
10098
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
10107
10099
  ...{
10108
10100
  name: "MEditorSidebar"
@@ -10240,7 +10232,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
10240
10232
  return (_ctx, _cache) => {
10241
10233
  return openBlock(), createElementBlock(Fragment, null, [
10242
10234
  _ctx.data.type === "tabs" && _ctx.data.items.length ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
10243
- createElementVNode("div", _hoisted_2$2, [
10235
+ createElementVNode("div", _hoisted_2$1, [
10244
10236
  (openBlock(true), createElementBlock(Fragment, null, renderList(sideBarItems.value, (config, index) => {
10245
10237
  return withDirectives((openBlock(), createElementBlock("div", {
10246
10238
  class: normalizeClass(["m-editor-sidebar-header-item", { "is-active": activeTabName.value === config.text }]),
@@ -10256,8 +10248,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
10256
10248
  key: 0,
10257
10249
  icon: config.icon
10258
10250
  }, null, 8, ["icon"])) : createCommentVNode("", true),
10259
- config.text ? (openBlock(), createElementBlock("div", _hoisted_4$1, toDisplayString(config.text), 1)) : createCommentVNode("", true)
10260
- ], 46, _hoisted_3$1)), [
10251
+ config.text ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(config.text), 1)) : createCommentVNode("", true)
10252
+ ], 46, _hoisted_3)), [
10261
10253
  [vShow, !unref(floatBoxStates)[config.$key]?.status]
10262
10254
  ]);
10263
10255
  }), 128))
@@ -10412,7 +10404,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
10412
10404
  }
10413
10405
  }, {
10414
10406
  body: withCtx(() => [
10415
- createElementVNode("div", _hoisted_5$1, [
10407
+ createElementVNode("div", _hoisted_5, [
10416
10408
  config && unref(floatBoxStates)[config.$key].status ? (openBlock(), createBlock(resolveDynamicComponent(config.component), mergeProps({
10417
10409
  key: 0,
10418
10410
  ref_for: true
@@ -10803,32 +10795,6 @@ const _hoisted_1$2 = {
10803
10795
  fill: "none",
10804
10796
  xmlns: "http://www.w3.org/2000/svg"
10805
10797
  };
10806
- const _hoisted_2$1 = /* @__PURE__ */ createElementVNode("path", {
10807
- "fill-rule": "evenodd",
10808
- "clip-rule": "evenodd",
10809
- d: "M2 4H21V6H2V4Z",
10810
- fill: "black",
10811
- "fill-opacity": "0.9"
10812
- }, null, -1);
10813
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("path", {
10814
- "fill-rule": "evenodd",
10815
- "clip-rule": "evenodd",
10816
- d: "M5 11H18V13H5V11Z",
10817
- fill: "black",
10818
- "fill-opacity": "0.9"
10819
- }, null, -1);
10820
- const _hoisted_4 = /* @__PURE__ */ createElementVNode("path", {
10821
- "fill-rule": "evenodd",
10822
- "clip-rule": "evenodd",
10823
- d: "M2 18H21V20H2V18Z",
10824
- fill: "black",
10825
- "fill-opacity": "0.9"
10826
- }, null, -1);
10827
- const _hoisted_5 = [
10828
- _hoisted_2$1,
10829
- _hoisted_3,
10830
- _hoisted_4
10831
- ];
10832
10798
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
10833
10799
  ...{
10834
10800
  name: "MEditorCenterIcon"
@@ -10836,7 +10802,29 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
10836
10802
  __name: "CenterIcon",
10837
10803
  setup(__props) {
10838
10804
  return (_ctx, _cache) => {
10839
- return openBlock(), createElementBlock("svg", _hoisted_1$2, _hoisted_5);
10805
+ return openBlock(), createElementBlock("svg", _hoisted_1$2, _cache[0] || (_cache[0] = [
10806
+ createElementVNode("path", {
10807
+ "fill-rule": "evenodd",
10808
+ "clip-rule": "evenodd",
10809
+ d: "M2 4H21V6H2V4Z",
10810
+ fill: "black",
10811
+ "fill-opacity": "0.9"
10812
+ }, null, -1),
10813
+ createElementVNode("path", {
10814
+ "fill-rule": "evenodd",
10815
+ "clip-rule": "evenodd",
10816
+ d: "M5 11H18V13H5V11Z",
10817
+ fill: "black",
10818
+ "fill-opacity": "0.9"
10819
+ }, null, -1),
10820
+ createElementVNode("path", {
10821
+ "fill-rule": "evenodd",
10822
+ "clip-rule": "evenodd",
10823
+ d: "M2 18H21V20H2V18Z",
10824
+ fill: "black",
10825
+ "fill-opacity": "0.9"
10826
+ }, null, -1)
10827
+ ]));
10840
10828
  };
10841
10829
  }
10842
10830
  });
@@ -12535,8 +12523,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12535
12523
  disabledPageFragment: { type: Boolean },
12536
12524
  disabledStageOverlay: { type: Boolean },
12537
12525
  disabledShowSrc: { type: Boolean },
12538
- indent: {},
12539
- nextLevelIndentIncrement: {},
12526
+ treeIndent: {},
12527
+ treeNextLevelIndentIncrement: {},
12540
12528
  render: { type: Function },
12541
12529
  updateDragEl: { type: Function },
12542
12530
  canSelect: { type: Function },
@@ -12614,8 +12602,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12614
12602
  data: _ctx.sidebar,
12615
12603
  "layer-content-menu": _ctx.layerContentMenu,
12616
12604
  "custom-content-menu": _ctx.customContentMenu,
12617
- indent: _ctx.indent,
12618
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement
12605
+ indent: _ctx.treeIndent,
12606
+ "next-level-indent-increment": _ctx.treeNextLevelIndentIncrement
12619
12607
  }, {
12620
12608
  "layer-panel-header": withCtx(() => [
12621
12609
  renderSlot(_ctx.$slots, "layer-panel-header")