@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.
@@ -3236,7 +3236,7 @@
3236
3236
  });
3237
3237
 
3238
3238
  const _hoisted_1$u = { class: "m-fields-code-select-col" };
3239
- const _hoisted_2$j = { class: "code-select-container" };
3239
+ const _hoisted_2$g = { class: "code-select-container" };
3240
3240
  const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
3241
3241
  ...{
3242
3242
  name: "MFieldsCodeSelectCol"
@@ -3317,7 +3317,7 @@
3317
3317
  };
3318
3318
  return (_ctx, _cache) => {
3319
3319
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
3320
- vue.createElementVNode("div", _hoisted_2$j, [
3320
+ vue.createElementVNode("div", _hoisted_2$g, [
3321
3321
  vue.createVNode(vue.unref(formPlugin.MContainer), {
3322
3322
  class: "select",
3323
3323
  config: selectConfig,
@@ -4188,7 +4188,7 @@
4188
4188
  };
4189
4189
 
4190
4190
  const _hoisted_1$t = { class: "m-editor-data-source-fields" };
4191
- const _hoisted_2$i = { class: "m-editor-data-source-fields-footer" };
4191
+ const _hoisted_2$f = { class: "m-editor-data-source-fields-footer" };
4192
4192
  const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
4193
4193
  ...{
4194
4194
  name: "MFieldsDataSourceFields"
@@ -4445,16 +4445,16 @@
4445
4445
  data: _ctx.model[_ctx.name],
4446
4446
  columns: fieldColumns
4447
4447
  }, null, 8, ["data"]),
4448
- vue.createElementVNode("div", _hoisted_2$i, [
4448
+ vue.createElementVNode("div", _hoisted_2$f, [
4449
4449
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
4450
4450
  size: "small",
4451
4451
  disabled: _ctx.disabled,
4452
4452
  plain: "",
4453
4453
  onClick: _cache[0] || (_cache[0] = ($event) => newFromJsonHandler())
4454
4454
  }, {
4455
- default: vue.withCtx(() => [
4455
+ default: vue.withCtx(() => _cache[8] || (_cache[8] = [
4456
4456
  vue.createTextVNode("快速添加")
4457
- ]),
4457
+ ])),
4458
4458
  _: 1
4459
4459
  }, 8, ["disabled"]),
4460
4460
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
@@ -4464,9 +4464,9 @@
4464
4464
  plain: "",
4465
4465
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
4466
4466
  }, {
4467
- default: vue.withCtx(() => [
4467
+ default: vue.withCtx(() => _cache[9] || (_cache[9] = [
4468
4468
  vue.createTextVNode("添加")
4469
- ]),
4469
+ ])),
4470
4470
  _: 1
4471
4471
  }, 8, ["disabled"])
4472
4472
  ]),
@@ -4833,8 +4833,8 @@
4833
4833
  });
4834
4834
 
4835
4835
  const _hoisted_1$q = { style: { "display": "flex", "flex-direction": "column", "line-height": "1.2em" } };
4836
- const _hoisted_2$h = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
4837
- const _hoisted_3$8 = { class: "el-input__inner t-input__inner" };
4836
+ const _hoisted_2$e = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
4837
+ const _hoisted_3$4 = { class: "el-input__inner t-input__inner" };
4838
4838
  const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
4839
4839
  ...{
4840
4840
  name: "MFieldsDataSourceInput"
@@ -5040,7 +5040,7 @@
5040
5040
  default: vue.withCtx(({ item }) => [
5041
5041
  vue.createElementVNode("div", _hoisted_1$q, [
5042
5042
  vue.createElementVNode("div", null, vue.toDisplayString(item.text), 1),
5043
- vue.createElementVNode("span", _hoisted_2$h, vue.toDisplayString(item.value), 1)
5043
+ vue.createElementVNode("span", _hoisted_2$e, vue.toDisplayString(item.value), 1)
5044
5044
  ])
5045
5045
  ]),
5046
5046
  _: 1
@@ -5052,7 +5052,7 @@
5052
5052
  vue.createElementVNode("div", {
5053
5053
  class: vue.normalizeClass(`tmagic-data-source-input-text-wrapper el-input__wrapper ${isFocused.value ? " is-focus" : ""}`)
5054
5054
  }, [
5055
- vue.createElementVNode("div", _hoisted_3$8, [
5055
+ vue.createElementVNode("div", _hoisted_3$4, [
5056
5056
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayState.value, (item, index) => {
5057
5057
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
5058
5058
  item.type === "text" ? (vue.openBlock(), vue.createElementBlock("span", {
@@ -5082,9 +5082,9 @@
5082
5082
  });
5083
5083
 
5084
5084
  const _hoisted_1$p = { style: { "display": "flex", "margin-bottom": "10px" } };
5085
- const _hoisted_2$g = { style: { "flex": "1" } };
5086
- const _hoisted_3$7 = { style: { "flex": "1" } };
5087
- const _hoisted_4$7 = { class: "dialog-footer" };
5085
+ const _hoisted_2$d = { style: { "flex": "1" } };
5086
+ const _hoisted_3$3 = { style: { "flex": "1" } };
5087
+ const _hoisted_4$3 = { class: "dialog-footer" };
5088
5088
  const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
5089
5089
  ...{
5090
5090
  name: "MEditorCodeBlockEditor"
@@ -5293,9 +5293,9 @@
5293
5293
  link: "",
5294
5294
  onClick: _cache[0] || (_cache[0] = ($event) => difVisible.value = true)
5295
5295
  }, {
5296
- default: vue.withCtx(() => [
5296
+ default: vue.withCtx(() => _cache[6] || (_cache[6] = [
5297
5297
  vue.createTextVNode("查看修改")
5298
- ]),
5298
+ ])),
5299
5299
  _: 1
5300
5300
  })) : vue.createCommentVNode("", true)
5301
5301
  ]),
@@ -5312,14 +5312,14 @@
5312
5312
  fullscreen: ""
5313
5313
  }, {
5314
5314
  footer: vue.withCtx(() => [
5315
- vue.createElementVNode("span", _hoisted_4$7, [
5315
+ vue.createElementVNode("span", _hoisted_4$3, [
5316
5316
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
5317
5317
  size: "small",
5318
5318
  onClick: _cache[4] || (_cache[4] = ($event) => difVisible.value = false)
5319
5319
  }, {
5320
- default: vue.withCtx(() => [
5320
+ default: vue.withCtx(() => _cache[9] || (_cache[9] = [
5321
5321
  vue.createTextVNode("取消")
5322
- ]),
5322
+ ])),
5323
5323
  _: 1
5324
5324
  }),
5325
5325
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
@@ -5327,34 +5327,34 @@
5327
5327
  type: "primary",
5328
5328
  onClick: diffChange
5329
5329
  }, {
5330
- default: vue.withCtx(() => [
5330
+ default: vue.withCtx(() => _cache[10] || (_cache[10] = [
5331
5331
  vue.createTextVNode("确定")
5332
- ]),
5332
+ ])),
5333
5333
  _: 1
5334
5334
  })
5335
5335
  ])
5336
5336
  ]),
5337
5337
  default: vue.withCtx(() => [
5338
5338
  vue.createElementVNode("div", _hoisted_1$p, [
5339
- vue.createElementVNode("div", _hoisted_2$g, [
5339
+ vue.createElementVNode("div", _hoisted_2$d, [
5340
5340
  vue.createVNode(vue.unref(designPlugin.TMagicTag), {
5341
5341
  size: "small",
5342
5342
  type: "info"
5343
5343
  }, {
5344
- default: vue.withCtx(() => [
5344
+ default: vue.withCtx(() => _cache[7] || (_cache[7] = [
5345
5345
  vue.createTextVNode("修改前")
5346
- ]),
5346
+ ])),
5347
5347
  _: 1
5348
5348
  })
5349
5349
  ]),
5350
- vue.createElementVNode("div", _hoisted_3$7, [
5350
+ vue.createElementVNode("div", _hoisted_3$3, [
5351
5351
  vue.createVNode(vue.unref(designPlugin.TMagicTag), {
5352
5352
  size: "small",
5353
5353
  type: "success"
5354
5354
  }, {
5355
- default: vue.withCtx(() => [
5355
+ default: vue.withCtx(() => _cache[8] || (_cache[8] = [
5356
5356
  vue.createTextVNode("修改后")
5357
- ]),
5357
+ ])),
5358
5358
  _: 1
5359
5359
  })
5360
5360
  ])
@@ -5379,7 +5379,7 @@
5379
5379
  });
5380
5380
 
5381
5381
  const _hoisted_1$o = { class: "m-editor-data-source-methods" };
5382
- const _hoisted_2$f = { class: "m-editor-data-source-methods-footer" };
5382
+ const _hoisted_2$c = { class: "m-editor-data-source-methods-footer" };
5383
5383
  const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
5384
5384
  ...{
5385
5385
  name: "MFieldsDataSourceMethods"
@@ -5455,7 +5455,7 @@
5455
5455
  data: _ctx.model[_ctx.name],
5456
5456
  columns: methodColumns
5457
5457
  }, null, 8, ["data"]),
5458
- vue.createElementVNode("div", _hoisted_2$f, [
5458
+ vue.createElementVNode("div", _hoisted_2$c, [
5459
5459
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
5460
5460
  size: "small",
5461
5461
  type: "primary",
@@ -5463,9 +5463,9 @@
5463
5463
  plain: "",
5464
5464
  onClick: createCodeHandler
5465
5465
  }, {
5466
- default: vue.withCtx(() => [
5466
+ default: vue.withCtx(() => _cache[0] || (_cache[0] = [
5467
5467
  vue.createTextVNode("添加")
5468
- ]),
5468
+ ])),
5469
5469
  _: 1
5470
5470
  }, 8, ["disabled"])
5471
5471
  ]),
@@ -5485,7 +5485,7 @@
5485
5485
  });
5486
5486
 
5487
5487
  const _hoisted_1$n = { class: "m-fields-data-source-method-select" };
5488
- const _hoisted_2$e = { class: "data-source-method-select-container" };
5488
+ const _hoisted_2$b = { class: "data-source-method-select-container" };
5489
5489
  const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
5490
5490
  ...{
5491
5491
  name: "MFieldsDataSourceMethodSelect"
@@ -5573,7 +5573,7 @@
5573
5573
  };
5574
5574
  return (_ctx, _cache) => {
5575
5575
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
5576
- vue.createElementVNode("div", _hoisted_2$e, [
5576
+ vue.createElementVNode("div", _hoisted_2$b, [
5577
5577
  vue.createVNode(vue.unref(formPlugin.MContainer), {
5578
5578
  class: "select",
5579
5579
  config: cascaderConfig.value,
@@ -5617,7 +5617,7 @@
5617
5617
  });
5618
5618
 
5619
5619
  const _hoisted_1$m = { class: "m-editor-data-source-fields" };
5620
- const _hoisted_2$d = { class: "m-editor-data-source-fields-footer" };
5620
+ const _hoisted_2$a = { class: "m-editor-data-source-fields-footer" };
5621
5621
  const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
5622
5622
  ...{
5623
5623
  name: "MFieldsDataSourceMocks"
@@ -5827,7 +5827,7 @@
5827
5827
  data: _ctx.model[_ctx.name],
5828
5828
  columns
5829
5829
  }, null, 8, ["data"]),
5830
- vue.createElementVNode("div", _hoisted_2$d, [
5830
+ vue.createElementVNode("div", _hoisted_2$a, [
5831
5831
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
5832
5832
  size: "small",
5833
5833
  type: "primary",
@@ -5835,9 +5835,9 @@
5835
5835
  plain: "",
5836
5836
  onClick: _cache[0] || (_cache[0] = ($event) => newHandler())
5837
5837
  }, {
5838
- default: vue.withCtx(() => [
5838
+ default: vue.withCtx(() => _cache[4] || (_cache[4] = [
5839
5839
  vue.createTextVNode("添加")
5840
- ]),
5840
+ ])),
5841
5841
  _: 1
5842
5842
  }, 8, ["disabled"])
5843
5843
  ]),
@@ -6092,7 +6092,7 @@
6092
6092
  });
6093
6093
 
6094
6094
  const _hoisted_1$k = { class: "m-fields-event-select" };
6095
- const _hoisted_2$c = {
6095
+ const _hoisted_2$9 = {
6096
6096
  key: 1,
6097
6097
  class: "fullWidth"
6098
6098
  };
@@ -6380,7 +6380,7 @@
6380
6380
  model: _ctx.model,
6381
6381
  config: tableConfig.value,
6382
6382
  onChange: onChangeHandler
6383
- }, null, 8, ["size", "disabled", "model", "config"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$c, [
6383
+ }, null, 8, ["size", "disabled", "model", "config"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
6384
6384
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
6385
6385
  class: "create-button",
6386
6386
  type: "primary",
@@ -6388,9 +6388,9 @@
6388
6388
  disabled: _ctx.disabled,
6389
6389
  onClick: _cache[0] || (_cache[0] = ($event) => addEvent())
6390
6390
  }, {
6391
- default: vue.withCtx(() => [
6391
+ default: vue.withCtx(() => _cache[1] || (_cache[1] = [
6392
6392
  vue.createTextVNode("添加事件")
6393
- ]),
6393
+ ])),
6394
6394
  _: 1
6395
6395
  }, 8, ["size", "disabled"]),
6396
6396
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.model[_ctx.name], (cardItem, index) => {
@@ -6436,10 +6436,6 @@
6436
6436
  xmlns: "http://www.w3.org/2000/svg",
6437
6437
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
6438
6438
  };
6439
- const _hoisted_2$b = /* @__PURE__ */ vue.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);
6440
- const _hoisted_4$6 = [
6441
- _hoisted_2$b
6442
- ];
6443
6439
  const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
6444
6440
  ...{
6445
6441
  name: "MEditorCodeIcon"
@@ -6447,14 +6443,15 @@
6447
6443
  __name: "CodeIcon",
6448
6444
  setup(__props) {
6449
6445
  return (_ctx, _cache) => {
6450
- return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$j, _hoisted_4$6);
6446
+ return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$j, _cache[0] || (_cache[0] = [
6447
+ vue.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)
6448
+ ]));
6451
6449
  };
6452
6450
  }
6453
6451
  });
6454
6452
 
6455
6453
  const _hoisted_1$i = { class: "m-fields-key-value" };
6456
- const _hoisted_2$a = { key: 0 };
6457
- const _hoisted_3$6 = /* @__PURE__ */ vue.createElementVNode("span", { class: "m-fileds-key-value-delimiter" }, ":", -1);
6454
+ const _hoisted_2$8 = { key: 0 };
6458
6455
  const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
6459
6456
  ...{
6460
6457
  name: "MFieldsKeyValue"
@@ -6514,7 +6511,7 @@
6514
6511
  };
6515
6512
  return (_ctx, _cache) => {
6516
6513
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
6517
- !showCode.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a, [
6514
+ !showCode.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
6518
6515
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(records.value, (item, index) => {
6519
6516
  return vue.openBlock(), vue.createElementBlock("div", {
6520
6517
  class: "m-fields-key-value-item",
@@ -6528,7 +6525,7 @@
6528
6525
  size: _ctx.size,
6529
6526
  onChange: keyChangeHandler
6530
6527
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
6531
- _hoisted_3$6,
6528
+ _cache[1] || (_cache[1] = vue.createElementVNode("span", { class: "m-fileds-key-value-delimiter" }, ":", -1)),
6532
6529
  vue.createVNode(vue.unref(designPlugin.TMagicInput), {
6533
6530
  placeholder: "value",
6534
6531
  modelValue: records.value[index][1],
@@ -6557,9 +6554,9 @@
6557
6554
  icon: vue.unref(iconsVue.Plus),
6558
6555
  onClick: addHandler
6559
6556
  }, {
6560
- default: vue.withCtx(() => [
6557
+ default: vue.withCtx(() => _cache[2] || (_cache[2] = [
6561
6558
  vue.createTextVNode("添加")
6562
- ]),
6559
+ ])),
6563
6560
  _: 1
6564
6561
  }, 8, ["size", "disabled", "icon"])
6565
6562
  ])) : vue.createCommentVNode("", true),
@@ -6588,7 +6585,7 @@
6588
6585
  });
6589
6586
 
6590
6587
  const _hoisted_1$h = { class: "m-fields-page-fragment-select" };
6591
- const _hoisted_2$9 = { class: "page-fragment-select-container" };
6588
+ const _hoisted_2$7 = { class: "page-fragment-select-container" };
6592
6589
  const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
6593
6590
  ...{
6594
6591
  name: "MFieldsPageFragmentSelect"
@@ -6636,7 +6633,7 @@
6636
6633
  return (_ctx, _cache) => {
6637
6634
  const _component_m_form_container = vue.resolveComponent("m-form-container");
6638
6635
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
6639
- vue.createElementVNode("div", _hoisted_2$9, [
6636
+ vue.createElementVNode("div", _hoisted_2$7, [
6640
6637
  vue.createVNode(_component_m_form_container, {
6641
6638
  class: "select",
6642
6639
  config: selectConfig,
@@ -6751,9 +6748,9 @@
6751
6748
  link: "",
6752
6749
  style: { "padding": "0" }
6753
6750
  }, {
6754
- default: vue.withCtx(() => [
6751
+ default: vue.withCtx(() => _cache[2] || (_cache[2] = [
6755
6752
  vue.createTextVNode("取消")
6756
- ]),
6753
+ ])),
6757
6754
  _: 1
6758
6755
  }, 8, ["icon", "disabled", "size"])
6759
6756
  ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
@@ -6810,9 +6807,9 @@
6810
6807
  size: _ctx.size,
6811
6808
  onClick: startSelect
6812
6809
  }, {
6813
- default: vue.withCtx(() => [
6810
+ default: vue.withCtx(() => _cache[3] || (_cache[3] = [
6814
6811
  vue.createTextVNode("点击此处选择")
6815
- ]),
6812
+ ])),
6816
6813
  _: 1
6817
6814
  }, 8, ["disabled", "size"])
6818
6815
  ]),
@@ -7009,7 +7006,7 @@
7009
7006
  key: 1,
7010
7007
  class: "menu-item-text"
7011
7008
  };
7012
- const _hoisted_2$8 = { class: "el-dropdown-link menubar-menu-button" };
7009
+ const _hoisted_2$6 = { class: "el-dropdown-link menubar-menu-button" };
7013
7010
  const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
7014
7011
  ...{
7015
7012
  name: "MEditorToolButton"
@@ -7146,7 +7143,7 @@
7146
7143
  })) : vue.createCommentVNode("", true)
7147
7144
  ]),
7148
7145
  default: vue.withCtx(() => [
7149
- vue.createElementVNode("span", _hoisted_2$8, [
7146
+ vue.createElementVNode("span", _hoisted_2$6, [
7150
7147
  vue.createTextVNode(vue.toDisplayString(_ctx.data.text), 1),
7151
7148
  vue.createVNode(vue.unref(designPlugin.TMagicIcon), { class: "el-icon--right" }, {
7152
7149
  default: vue.withCtx(() => [
@@ -7471,9 +7468,9 @@
7471
7468
  });
7472
7469
 
7473
7470
  const _hoisted_1$c = { class: "m-editor-page-bar-tabs" };
7474
- const _hoisted_2$7 = ["page-id", "onClick"];
7475
- const _hoisted_3$5 = { class: "m-editor-page-bar-title" };
7476
- const _hoisted_4$5 = ["title"];
7471
+ const _hoisted_2$5 = ["page-id", "onClick"];
7472
+ const _hoisted_3$2 = { class: "m-editor-page-bar-title" };
7473
+ const _hoisted_4$2 = ["title"];
7477
7474
  const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
7478
7475
  ...{
7479
7476
  name: "MEditorPageBar"
@@ -7580,11 +7577,11 @@
7580
7577
  "page-id": item.id,
7581
7578
  onClick: ($event) => switchPage(item.id)
7582
7579
  }, [
7583
- vue.createElementVNode("div", _hoisted_3$5, [
7580
+ vue.createElementVNode("div", _hoisted_3$2, [
7584
7581
  vue.renderSlot(_ctx.$slots, "page-bar-title", { page: item }, () => [
7585
7582
  vue.createElementVNode("span", {
7586
7583
  title: item.name
7587
- }, vue.toDisplayString(item.name || item.id), 9, _hoisted_4$5)
7584
+ }, vue.toDisplayString(item.name || item.id), 9, _hoisted_4$2)
7588
7585
  ])
7589
7586
  ]),
7590
7587
  vue.createVNode(vue.unref(designPlugin.TMagicPopover), {
@@ -7626,7 +7623,7 @@
7626
7623
  ]),
7627
7624
  _: 2
7628
7625
  }, 1024)
7629
- ], 10, _hoisted_2$7);
7626
+ ], 10, _hoisted_2$5);
7630
7627
  }), 128))
7631
7628
  ]),
7632
7629
  _: 3
@@ -7637,9 +7634,7 @@
7637
7634
  });
7638
7635
 
7639
7636
  const _hoisted_1$b = { class: "m-editor-empty-panel" };
7640
- const _hoisted_2$6 = { class: "m-editor-empty-content" };
7641
- const _hoisted_3$4 = /* @__PURE__ */ vue.createElementVNode("p", null, "新增页面", -1);
7642
- const _hoisted_4$4 = /* @__PURE__ */ vue.createElementVNode("p", null, "新增页面片", -1);
7637
+ const _hoisted_2$4 = { class: "m-editor-empty-content" };
7643
7638
  const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
7644
7639
  ...{
7645
7640
  name: "MEditorAddPageBox"
@@ -7663,7 +7658,7 @@
7663
7658
  };
7664
7659
  return (_ctx, _cache) => {
7665
7660
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
7666
- vue.createElementVNode("div", _hoisted_2$6, [
7661
+ vue.createElementVNode("div", _hoisted_2$4, [
7667
7662
  vue.createElementVNode("div", {
7668
7663
  class: "m-editor-empty-button",
7669
7664
  onClick: _cache[0] || (_cache[0] = ($event) => clickHandler(vue.unref(core.NodeType).PAGE))
@@ -7671,7 +7666,7 @@
7671
7666
  vue.createElementVNode("div", null, [
7672
7667
  vue.createVNode(_sfc_main$Y, { icon: vue.unref(iconsVue.Plus) }, null, 8, ["icon"])
7673
7668
  ]),
7674
- _hoisted_3$4
7669
+ _cache[2] || (_cache[2] = vue.createElementVNode("p", null, "新增页面", -1))
7675
7670
  ]),
7676
7671
  !_ctx.disabledPageFragment ? (vue.openBlock(), vue.createElementBlock("div", {
7677
7672
  key: 0,
@@ -7681,7 +7676,7 @@
7681
7676
  vue.createElementVNode("div", null, [
7682
7677
  vue.createVNode(_sfc_main$Y, { icon: vue.unref(iconsVue.Plus) }, null, 8, ["icon"])
7683
7678
  ]),
7684
- _hoisted_4$4
7679
+ _cache[3] || (_cache[3] = vue.createElementVNode("p", null, "新增页面片", -1))
7685
7680
  ])) : vue.createCommentVNode("", true)
7686
7681
  ])
7687
7682
  ]);
@@ -8189,9 +8184,9 @@
8189
8184
  });
8190
8185
 
8191
8186
  const _hoisted_1$9 = ["draggable", "data-node-id", "data-parent-id", "data-parents-id", "data-is-container"];
8192
- const _hoisted_2$5 = { class: "tree-node-label" };
8193
- const _hoisted_3$3 = { class: "tree-node-tool" };
8194
- const _hoisted_4$3 = {
8187
+ const _hoisted_2$3 = { class: "tree-node-label" };
8188
+ const _hoisted_3$1 = { class: "tree-node-tool" };
8189
+ const _hoisted_4$1 = {
8195
8190
  key: 0,
8196
8191
  class: "m-editor-tree-node-children"
8197
8192
  };
@@ -8280,18 +8275,18 @@
8280
8275
  onClick: nodeClickHandler
8281
8276
  }, [
8282
8277
  vue.renderSlot(_ctx.$slots, "tree-node-content", { data: _ctx.data }, () => [
8283
- vue.createElementVNode("div", _hoisted_2$5, [
8278
+ vue.createElementVNode("div", _hoisted_2$3, [
8284
8279
  vue.renderSlot(_ctx.$slots, "tree-node-label", { data: _ctx.data }, () => [
8285
8280
  vue.createTextVNode(vue.toDisplayString(`${_ctx.data.name} (${_ctx.data.id})`), 1)
8286
8281
  ])
8287
8282
  ]),
8288
- vue.createElementVNode("div", _hoisted_3$3, [
8283
+ vue.createElementVNode("div", _hoisted_3$1, [
8289
8284
  vue.renderSlot(_ctx.$slots, "tree-node-tool", { data: _ctx.data })
8290
8285
  ])
8291
8286
  ])
8292
8287
  ])
8293
8288
  ], 38),
8294
- hasChildren.value && expanded.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [
8289
+ hasChildren.value && expanded.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, [
8295
8290
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.data.items, (item) => {
8296
8291
  return vue.openBlock(), vue.createBlock(_component_TreeNode, {
8297
8292
  key: item.id,
@@ -8569,9 +8564,9 @@
8569
8564
  size: "small",
8570
8565
  onClick: vue.unref(createCodeBlock)
8571
8566
  }, {
8572
- default: vue.withCtx(() => [
8567
+ default: vue.withCtx(() => _cache[0] || (_cache[0] = [
8573
8568
  vue.createTextVNode("新增")
8574
- ]),
8569
+ ])),
8575
8570
  _: 1
8576
8571
  }, 8, ["onClick"])) : vue.createCommentVNode("", true),
8577
8572
  vue.renderSlot(_ctx.$slots, "code-block-panel-search")
@@ -8935,9 +8930,9 @@
8935
8930
  type: "primary",
8936
8931
  size: "small"
8937
8932
  }, {
8938
- default: vue.withCtx(() => [
8933
+ default: vue.withCtx(() => _cache[0] || (_cache[0] = [
8939
8934
  vue.createTextVNode("新增")
8940
- ]),
8935
+ ])),
8941
8936
  _: 1
8942
8937
  })
8943
8938
  ]),
@@ -9156,18 +9151,6 @@
9156
9151
  fill: "currentColor",
9157
9152
  xmlns: "http://www.w3.org/2000/svg"
9158
9153
  };
9159
- const _hoisted_2$4 = /* @__PURE__ */ vue.createElementVNode("path", {
9160
- "fill-rule": "evenodd",
9161
- 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"
9162
- }, null, -1);
9163
- const _hoisted_3$2 = /* @__PURE__ */ vue.createElementVNode("path", {
9164
- "fill-rule": "evenodd",
9165
- 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"
9166
- }, null, -1);
9167
- const _hoisted_4$2 = [
9168
- _hoisted_2$4,
9169
- _hoisted_3$2
9170
- ];
9171
9154
  const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
9172
9155
  ...{
9173
9156
  name: "MEditorFolderMinusIcon"
@@ -9175,7 +9158,16 @@
9175
9158
  __name: "FolderMinusIcon",
9176
9159
  setup(__props) {
9177
9160
  return (_ctx, _cache) => {
9178
- return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$5, _hoisted_4$2);
9161
+ return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$5, _cache[0] || (_cache[0] = [
9162
+ vue.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
+ vue.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
+ ]));
9179
9171
  };
9180
9172
  }
9181
9173
  });
@@ -9951,7 +9943,7 @@
9951
9943
  });
9952
9944
 
9953
9945
  const _hoisted_1$4 = ["onClick", "onDragstart"];
9954
- const _hoisted_2$3 = ["title"];
9946
+ const _hoisted_2$2 = ["title"];
9955
9947
  const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
9956
9948
  ...{
9957
9949
  name: "MEditorComponentListPanel"
@@ -10069,7 +10061,7 @@
10069
10061
  }, 1032, ["disabled", "content"]),
10070
10062
  vue.createElementVNode("span", {
10071
10063
  title: item.text
10072
- }, vue.toDisplayString(item.text), 9, _hoisted_2$3)
10064
+ }, vue.toDisplayString(item.text), 9, _hoisted_2$2)
10073
10065
  ])
10074
10066
  ], 40, _hoisted_1$4);
10075
10067
  }), 128))
@@ -10093,13 +10085,13 @@
10093
10085
  key: 0,
10094
10086
  class: "m-editor-sidebar"
10095
10087
  };
10096
- const _hoisted_2$2 = { class: "m-editor-sidebar-header" };
10097
- const _hoisted_3$1 = ["draggable", "onClick", "onDragend"];
10098
- const _hoisted_4$1 = {
10088
+ const _hoisted_2$1 = { class: "m-editor-sidebar-header" };
10089
+ const _hoisted_3 = ["draggable", "onClick", "onDragend"];
10090
+ const _hoisted_4 = {
10099
10091
  key: 1,
10100
10092
  class: "magic-editor-tab-panel-title"
10101
10093
  };
10102
- const _hoisted_5$1 = { class: "m-editor-slide-list-box" };
10094
+ const _hoisted_5 = { class: "m-editor-slide-list-box" };
10103
10095
  const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
10104
10096
  ...{
10105
10097
  name: "MEditorSidebar"
@@ -10237,7 +10229,7 @@
10237
10229
  return (_ctx, _cache) => {
10238
10230
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
10239
10231
  _ctx.data.type === "tabs" && _ctx.data.items.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
10240
- vue.createElementVNode("div", _hoisted_2$2, [
10232
+ vue.createElementVNode("div", _hoisted_2$1, [
10241
10233
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(sideBarItems.value, (config, index) => {
10242
10234
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
10243
10235
  class: vue.normalizeClass(["m-editor-sidebar-header-item", { "is-active": activeTabName.value === config.text }]),
@@ -10253,8 +10245,8 @@
10253
10245
  key: 0,
10254
10246
  icon: config.icon
10255
10247
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
10256
- config.text ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, vue.toDisplayString(config.text), 1)) : vue.createCommentVNode("", true)
10257
- ], 46, _hoisted_3$1)), [
10248
+ config.text ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, vue.toDisplayString(config.text), 1)) : vue.createCommentVNode("", true)
10249
+ ], 46, _hoisted_3)), [
10258
10250
  [vue.vShow, !vue.unref(floatBoxStates)[config.$key]?.status]
10259
10251
  ]);
10260
10252
  }), 128))
@@ -10409,7 +10401,7 @@
10409
10401
  }
10410
10402
  }, {
10411
10403
  body: vue.withCtx(() => [
10412
- vue.createElementVNode("div", _hoisted_5$1, [
10404
+ vue.createElementVNode("div", _hoisted_5, [
10413
10405
  config && vue.unref(floatBoxStates)[config.$key].status ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(config.component), vue.mergeProps({
10414
10406
  key: 0,
10415
10407
  ref_for: true
@@ -10800,32 +10792,6 @@
10800
10792
  fill: "none",
10801
10793
  xmlns: "http://www.w3.org/2000/svg"
10802
10794
  };
10803
- const _hoisted_2$1 = /* @__PURE__ */ vue.createElementVNode("path", {
10804
- "fill-rule": "evenodd",
10805
- "clip-rule": "evenodd",
10806
- d: "M2 4H21V6H2V4Z",
10807
- fill: "black",
10808
- "fill-opacity": "0.9"
10809
- }, null, -1);
10810
- const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", {
10811
- "fill-rule": "evenodd",
10812
- "clip-rule": "evenodd",
10813
- d: "M5 11H18V13H5V11Z",
10814
- fill: "black",
10815
- "fill-opacity": "0.9"
10816
- }, null, -1);
10817
- const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", {
10818
- "fill-rule": "evenodd",
10819
- "clip-rule": "evenodd",
10820
- d: "M2 18H21V20H2V18Z",
10821
- fill: "black",
10822
- "fill-opacity": "0.9"
10823
- }, null, -1);
10824
- const _hoisted_5 = [
10825
- _hoisted_2$1,
10826
- _hoisted_3,
10827
- _hoisted_4
10828
- ];
10829
10795
  const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
10830
10796
  ...{
10831
10797
  name: "MEditorCenterIcon"
@@ -10833,7 +10799,29 @@
10833
10799
  __name: "CenterIcon",
10834
10800
  setup(__props) {
10835
10801
  return (_ctx, _cache) => {
10836
- return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$2, _hoisted_5);
10802
+ return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$2, _cache[0] || (_cache[0] = [
10803
+ vue.createElementVNode("path", {
10804
+ "fill-rule": "evenodd",
10805
+ "clip-rule": "evenodd",
10806
+ d: "M2 4H21V6H2V4Z",
10807
+ fill: "black",
10808
+ "fill-opacity": "0.9"
10809
+ }, null, -1),
10810
+ vue.createElementVNode("path", {
10811
+ "fill-rule": "evenodd",
10812
+ "clip-rule": "evenodd",
10813
+ d: "M5 11H18V13H5V11Z",
10814
+ fill: "black",
10815
+ "fill-opacity": "0.9"
10816
+ }, null, -1),
10817
+ vue.createElementVNode("path", {
10818
+ "fill-rule": "evenodd",
10819
+ "clip-rule": "evenodd",
10820
+ d: "M2 18H21V20H2V18Z",
10821
+ fill: "black",
10822
+ "fill-opacity": "0.9"
10823
+ }, null, -1)
10824
+ ]));
10837
10825
  };
10838
10826
  }
10839
10827
  });
@@ -12532,8 +12520,8 @@
12532
12520
  disabledPageFragment: { type: Boolean },
12533
12521
  disabledStageOverlay: { type: Boolean },
12534
12522
  disabledShowSrc: { type: Boolean },
12535
- indent: {},
12536
- nextLevelIndentIncrement: {},
12523
+ treeIndent: {},
12524
+ treeNextLevelIndentIncrement: {},
12537
12525
  render: { type: Function },
12538
12526
  updateDragEl: { type: Function },
12539
12527
  canSelect: { type: Function },
@@ -12611,8 +12599,8 @@
12611
12599
  data: _ctx.sidebar,
12612
12600
  "layer-content-menu": _ctx.layerContentMenu,
12613
12601
  "custom-content-menu": _ctx.customContentMenu,
12614
- indent: _ctx.indent,
12615
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement
12602
+ indent: _ctx.treeIndent,
12603
+ "next-level-indent-increment": _ctx.treeNextLevelIndentIncrement
12616
12604
  }, {
12617
12605
  "layer-panel-header": vue.withCtx(() => [
12618
12606
  vue.renderSlot(_ctx.$slots, "layer-panel-header")