@tmagic/editor 1.6.0 → 1.6.1

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.
@@ -13,7 +13,7 @@ import { throttle, isEmpty, isObject, cloneDeep, mergeWith, uniq, get, map, has,
13
13
  import serialize from 'serialize-javascript';
14
14
  import { emmetHTML, emmetCSS } from 'emmet-monaco-es';
15
15
  import * as monaco from 'monaco-editor';
16
- import { HookCodeType, HookType, NODE_DISABLE_CODE_BLOCK_KEY, NODE_DISABLE_DATA_SOURCE_KEY, NODE_CONDS_KEY, Target, Watcher, NodeType, ActionType, DepTargetType, traverseTarget, createCodeBlockTarget, createDataSourceTarget, createDataSourceCondTarget, createDataSourceMethodTarget, updateNode } from '@tmagic/core';
16
+ import { HookCodeType, HookType, NODE_DISABLE_CODE_BLOCK_KEY, NODE_DISABLE_DATA_SOURCE_KEY, NODE_CONDS_RESULT_KEY, NODE_CONDS_KEY, Target, Watcher, NodeType, ActionType, DepTargetType, traverseTarget, createCodeBlockTarget, createDataSourceTarget, createDataSourceCondTarget, createDataSourceMethodTarget, updateNode } from '@tmagic/core';
17
17
  export { DepTargetType } from '@tmagic/core';
18
18
  import { isPage, isPageFragment, isPop, getNodePath, isNumber, getElById, calcValueByFontsize, isValueIncludeDataSource, toLine, guid, getValueByKeyPath, setValueByKeyPath, getNodeInfo, DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX, dataSourceTemplateRegExp, getKeysArray, getKeys, convertToNumber, getIdFromEl, traverseNode, getDefaultValueFromFields, DATA_SOURCE_FIELDS_CHANGE_EVENT_PREFIX, removeClassName, addClassName, removeClassNameByClassName, getNodes, getDepNodeIds } from '@tmagic/utils';
19
19
  export * from '@tmagic/utils';
@@ -27,7 +27,7 @@ import { detailedDiff } from 'deep-object-diff';
27
27
  import Sortable from 'sortablejs';
28
28
  import KeyController from 'keycon';
29
29
 
30
- const _hoisted_1$10 = ["src"];
30
+ const _hoisted_1$$ = ["src"];
31
31
  const _sfc_main$1r = /* @__PURE__ */ defineComponent({
32
32
  ...{
33
33
  name: "MEditorIcon"
@@ -39,7 +39,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
39
39
  setup(__props) {
40
40
  const isRelativePath = (str) => /^(\.|(\.\.)?\/)/.test(str);
41
41
  return (_ctx, _cache) => {
42
- return !_ctx.icon ? (openBlock(), createBlock(unref(TMagicIcon), {
42
+ return !__props.icon ? (openBlock(), createBlock(unref(TMagicIcon), {
43
43
  key: 0,
44
44
  class: "magic-editor-icon"
45
45
  }, {
@@ -48,20 +48,20 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
48
48
  ]),
49
49
  _: 1
50
50
  /* STABLE */
51
- })) : typeof _ctx.icon === "string" && (_ctx.icon.startsWith("http") || isRelativePath(_ctx.icon)) ? (openBlock(), createBlock(unref(TMagicIcon), {
51
+ })) : typeof __props.icon === "string" && (__props.icon.startsWith("http") || isRelativePath(__props.icon)) ? (openBlock(), createBlock(unref(TMagicIcon), {
52
52
  key: 1,
53
53
  class: "magic-editor-icon"
54
54
  }, {
55
55
  default: withCtx(() => [
56
- createElementVNode("img", { src: _ctx.icon }, null, 8, _hoisted_1$10)
56
+ createElementVNode("img", { src: __props.icon }, null, 8, _hoisted_1$$)
57
57
  ]),
58
58
  _: 1
59
59
  /* STABLE */
60
- })) : typeof _ctx.icon === "string" ? (openBlock(), createElementBlock(
60
+ })) : typeof __props.icon === "string" ? (openBlock(), createElementBlock(
61
61
  "i",
62
62
  {
63
63
  key: 2,
64
- class: normalizeClass(["magic-editor-icon", _ctx.icon])
64
+ class: normalizeClass(["magic-editor-icon", __props.icon])
65
65
  },
66
66
  null,
67
67
  2
@@ -71,7 +71,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
71
71
  class: "magic-editor-icon"
72
72
  }, {
73
73
  default: withCtx(() => [
74
- (openBlock(), createBlock(resolveDynamicComponent(toRaw(_ctx.icon))))
74
+ (openBlock(), createBlock(resolveDynamicComponent(toRaw(__props.icon))))
75
75
  ]),
76
76
  _: 1
77
77
  /* STABLE */
@@ -89,10 +89,10 @@ const getEditorConfig = (key) => $TMAGIC_EDITOR[key];
89
89
  emmetHTML(monaco);
90
90
  emmetCSS(monaco, ["css", "scss"]);
91
91
 
92
- const _hoisted_1$$ = {
92
+ const _hoisted_1$_ = {
93
93
  class: /* @__PURE__ */ normalizeClass(`magic-code-editor`)
94
94
  };
95
- const _hoisted_2$n = {
95
+ const _hoisted_2$o = {
96
96
  ref: "codeEditor",
97
97
  class: "magic-code-editor-content"
98
98
  };
@@ -287,7 +287,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
287
287
  }
288
288
  });
289
289
  return (_ctx, _cache) => {
290
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
290
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
291
291
  (openBlock(), createBlock(Teleport, {
292
292
  to: "body",
293
293
  disabled: !fullScreen.value
@@ -296,10 +296,10 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
296
296
  "div",
297
297
  {
298
298
  class: normalizeClass(`magic-code-editor-wrapper${fullScreen.value ? " full-screen" : ""}`),
299
- style: normalizeStyle(!fullScreen.value && _ctx.height ? `height: ${_ctx.height}` : "100%")
299
+ style: normalizeStyle(!fullScreen.value && __props.height ? `height: ${__props.height}` : "100%")
300
300
  },
301
301
  [
302
- !_ctx.disabledFullScreen ? (openBlock(), createBlock(unref(TMagicButton), {
302
+ !__props.disabledFullScreen ? (openBlock(), createBlock(unref(TMagicButton), {
303
303
  key: 0,
304
304
  class: "magic-code-editor-full-screen-icon",
305
305
  circle: "",
@@ -314,7 +314,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
314
314
  })) : createCommentVNode("v-if", true),
315
315
  createElementVNode(
316
316
  "div",
317
- _hoisted_2$n,
317
+ _hoisted_2$o,
318
318
  null,
319
319
  512
320
320
  /* NEED_PATCH */
@@ -353,14 +353,14 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
353
353
  };
354
354
  return (_ctx, _cache) => {
355
355
  return openBlock(), createBlock(_sfc_main$1q, {
356
- height: _ctx.config.height,
357
- "init-values": _ctx.model[_ctx.name],
358
- language: _ctx.config.language,
356
+ height: __props.config.height,
357
+ "init-values": __props.model[__props.name],
358
+ language: __props.config.language,
359
359
  options: {
360
- ..._ctx.config.options,
361
- readOnly: _ctx.disabled
360
+ ...__props.config.options,
361
+ readOnly: __props.disabled
362
362
  },
363
- parse: _ctx.config.parse,
363
+ parse: __props.config.parse,
364
364
  onSave: save
365
365
  }, null, 8, ["height", "init-values", "language", "options", "parse"]);
366
366
  };
@@ -554,18 +554,18 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
554
554
  return openBlock(), createElementBlock(
555
555
  "div",
556
556
  {
557
- class: normalizeClass(["m-fields-code-select", _ctx.config.className])
557
+ class: normalizeClass(["m-fields-code-select", __props.config.className])
558
558
  },
559
559
  [
560
560
  createVNode(unref(TMagicCard), null, {
561
561
  default: withCtx(() => [
562
562
  createVNode(unref(MContainer), {
563
563
  config: codeConfig.value,
564
- size: _ctx.size,
565
- prop: _ctx.prop,
566
- disabled: _ctx.disabled,
567
- lastValues: _ctx.lastValues,
568
- model: _ctx.model[_ctx.name],
564
+ size: __props.size,
565
+ prop: __props.prop,
566
+ disabled: __props.disabled,
567
+ lastValues: __props.lastValues,
568
+ model: __props.model[__props.name],
569
569
  onChange: changeHandler
570
570
  }, null, 8, ["config", "size", "prop", "disabled", "lastValues", "model"])
571
571
  ]),
@@ -716,8 +716,19 @@ const advancedTabConfig = {
716
716
  };
717
717
  const displayTabConfig = {
718
718
  title: "显示条件",
719
- display: (_vm, { model }) => model.type !== "page",
719
+ display: (_state, { model }) => model.type !== "page",
720
720
  items: [
721
+ {
722
+ name: NODE_CONDS_RESULT_KEY,
723
+ type: "select",
724
+ text: "条件成立时",
725
+ defaultValue: false,
726
+ options: [
727
+ { text: "显示", value: false },
728
+ { text: "隐藏", value: true }
729
+ ],
730
+ extra: (_state, { model }) => `条件成立时${model[NODE_CONDS_RESULT_KEY] ? "隐藏" : "显示"},不成立时${model[NODE_CONDS_RESULT_KEY] ? "显示" : "隐藏"};<br />同一条件组内的所有条件配置同时成立时表示该条件组成立,任意一个条件组成立时表示条件成立(条件组内为且的关系,条件组间为或的关系);<br />条件为空时表示成立;`
731
+ },
721
732
  {
722
733
  type: "display-conds",
723
734
  name: NODE_CONDS_KEY,
@@ -3240,9 +3251,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
3240
3251
  return openBlock(), createBlock(unref(MForm), {
3241
3252
  ref: "form",
3242
3253
  config: codeParamsConfig.value,
3243
- "init-values": _ctx.model,
3244
- disabled: _ctx.disabled,
3245
- size: _ctx.size,
3254
+ "init-values": __props.model,
3255
+ disabled: __props.disabled,
3256
+ size: __props.size,
3246
3257
  "watch-props": false,
3247
3258
  onChange: onParamsChangeHandler
3248
3259
  }, null, 8, ["config", "init-values", "disabled", "size"]);
@@ -3250,8 +3261,8 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
3250
3261
  }
3251
3262
  });
3252
3263
 
3253
- const _hoisted_1$_ = { class: "m-fields-code-select-col" };
3254
- const _hoisted_2$m = { class: "code-select-container" };
3264
+ const _hoisted_1$Z = { class: "m-fields-code-select-col" };
3265
+ const _hoisted_2$n = { class: "code-select-container" };
3255
3266
  const _sfc_main$1l = /* @__PURE__ */ defineComponent({
3256
3267
  ...{
3257
3268
  name: "MFieldsCodeSelectCol"
@@ -3351,22 +3362,22 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
3351
3362
  eventBus?.emit("edit-code", id);
3352
3363
  };
3353
3364
  return (_ctx, _cache) => {
3354
- return openBlock(), createElementBlock("div", _hoisted_1$_, [
3355
- createElementVNode("div", _hoisted_2$m, [
3365
+ return openBlock(), createElementBlock("div", _hoisted_1$Z, [
3366
+ createElementVNode("div", _hoisted_2$n, [
3356
3367
  createCommentVNode(" 代码块下拉框 "),
3357
3368
  createVNode(unref(MContainer), {
3358
3369
  class: "select",
3359
3370
  config: selectConfig,
3360
- model: _ctx.model,
3361
- size: _ctx.size,
3371
+ model: __props.model,
3372
+ size: __props.size,
3362
3373
  onChange: onCodeIdChangeHandler
3363
3374
  }, null, 8, ["model", "size"]),
3364
3375
  createCommentVNode(" 查看/编辑按钮 "),
3365
- _ctx.model[_ctx.name] && hasCodeBlockSidePanel.value ? (openBlock(), createBlock(unref(TMagicButton), {
3376
+ __props.model[__props.name] && hasCodeBlockSidePanel.value ? (openBlock(), createBlock(unref(TMagicButton), {
3366
3377
  key: 0,
3367
3378
  class: "m-fields-select-action-button",
3368
- size: _ctx.size,
3369
- onClick: _cache[0] || (_cache[0] = ($event) => editCode(_ctx.model[_ctx.name]))
3379
+ size: __props.size,
3380
+ onClick: _cache[0] || (_cache[0] = ($event) => editCode(__props.model[__props.name]))
3370
3381
  }, {
3371
3382
  default: withCtx(() => [
3372
3383
  createVNode(_sfc_main$1r, {
@@ -3380,9 +3391,9 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
3380
3391
  createCommentVNode(" 参数填写框 "),
3381
3392
  paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$1m, {
3382
3393
  name: "params",
3383
- key: _ctx.model[_ctx.name],
3384
- model: _ctx.model,
3385
- size: _ctx.size,
3394
+ key: __props.model[__props.name],
3395
+ model: __props.model,
3396
+ size: __props.size,
3386
3397
  "params-config": paramsConfig.value,
3387
3398
  onChange: onParamsChangeHandler
3388
3399
  }, null, 8, ["model", "size", "params-config"])) : createCommentVNode("v-if", true)
@@ -3445,12 +3456,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
3445
3456
  };
3446
3457
  return (_ctx, _cache) => {
3447
3458
  return openBlock(), createBlock(unref(TMagicSelect), {
3448
- modelValue: _ctx.model[_ctx.name],
3449
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
3459
+ modelValue: __props.model[__props.name],
3460
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
3450
3461
  clearable: "",
3451
3462
  filterable: "",
3452
- size: _ctx.size,
3453
- disabled: _ctx.disabled,
3463
+ size: __props.size,
3464
+ disabled: __props.disabled,
3454
3465
  onChange: fieldChangeHandler
3455
3466
  }, {
3456
3467
  default: withCtx(() => [
@@ -3490,7 +3501,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
3490
3501
  }
3491
3502
  });
3492
3503
 
3493
- const _hoisted_1$Z = {
3504
+ const _hoisted_1$Y = {
3494
3505
  ref: "title",
3495
3506
  class: "m-editor-float-box-title"
3496
3507
  };
@@ -3638,13 +3649,13 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
3638
3649
  [
3639
3650
  createElementVNode(
3640
3651
  "div",
3641
- _hoisted_1$Z,
3652
+ _hoisted_1$Y,
3642
3653
  [
3643
3654
  renderSlot(_ctx.$slots, "title", {}, () => [
3644
3655
  createElementVNode(
3645
3656
  "span",
3646
3657
  null,
3647
- toDisplayString(_ctx.title),
3658
+ toDisplayString(__props.title),
3648
3659
  1
3649
3660
  /* TEXT */
3650
3661
  )
@@ -4187,8 +4198,8 @@ const useNodeStatus$1 = (nodeData) => {
4187
4198
  };
4188
4199
  };
4189
4200
 
4190
- const _hoisted_1$Y = { class: "m-editor-data-source-fields" };
4191
- const _hoisted_2$l = { class: "m-editor-data-source-fields-footer" };
4201
+ const _hoisted_1$X = { class: "m-editor-data-source-fields" };
4202
+ const _hoisted_2$m = { class: "m-editor-data-source-fields-footer" };
4192
4203
  const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4193
4204
  ...{
4194
4205
  name: "MFieldsDataSourceFields"
@@ -4454,16 +4465,16 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4454
4465
  const parentFloating = inject("parentFloating", ref(null));
4455
4466
  const { boxPosition, calcBoxPosition } = useNextFloatBoxPosition(uiService, parentFloating);
4456
4467
  return (_ctx, _cache) => {
4457
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
4468
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
4458
4469
  createVNode(unref(MagicTable), {
4459
- data: _ctx.model[_ctx.name],
4470
+ data: __props.model[__props.name],
4460
4471
  columns: fieldColumns,
4461
4472
  border: true
4462
4473
  }, null, 8, ["data"]),
4463
- createElementVNode("div", _hoisted_2$l, [
4474
+ createElementVNode("div", _hoisted_2$m, [
4464
4475
  createVNode(unref(TMagicButton), {
4465
4476
  size: "small",
4466
- disabled: _ctx.disabled,
4477
+ disabled: __props.disabled,
4467
4478
  plain: "",
4468
4479
  onClick: _cache[0] || (_cache[0] = ($event) => newFromJsonHandler())
4469
4480
  }, {
@@ -4480,7 +4491,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4480
4491
  createVNode(unref(TMagicButton), {
4481
4492
  size: "small",
4482
4493
  type: "primary",
4483
- disabled: _ctx.disabled,
4494
+ disabled: __props.disabled,
4484
4495
  plain: "",
4485
4496
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
4486
4497
  }, {
@@ -4511,8 +4522,8 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4511
4522
  title: fieldTitle.value,
4512
4523
  config: dataSourceFieldsConfig,
4513
4524
  values: fieldValues.value,
4514
- parentValues: _ctx.model[_ctx.name],
4515
- disabled: _ctx.disabled,
4525
+ parentValues: __props.model[__props.name],
4526
+ disabled: __props.disabled,
4516
4527
  onSubmit: fieldChange
4517
4528
  }, null, 8, ["title", "values", "parentValues", "disabled"])
4518
4529
  ]),
@@ -4533,7 +4544,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4533
4544
  createVNode(unref(MFormBox), {
4534
4545
  config: jsonFromConfig,
4535
4546
  values: jsonFromValues.value,
4536
- disabled: _ctx.disabled,
4547
+ disabled: __props.disabled,
4537
4548
  onSubmit: addFromJsonFromChange
4538
4549
  }, null, 8, ["values", "disabled"])
4539
4550
  ]),
@@ -4545,7 +4556,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4545
4556
  }
4546
4557
  });
4547
4558
 
4548
- const _hoisted_1$X = { class: "m-editor-data-source-field-select" };
4559
+ const _hoisted_1$W = { class: "m-editor-data-source-field-select" };
4549
4560
  const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4550
4561
  __name: "FieldSelect",
4551
4562
  props: /* @__PURE__ */ mergeModels({
@@ -4627,8 +4638,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4627
4638
  eventBus?.emit("edit-data-source", removeDataSourceFieldPrefix(id));
4628
4639
  };
4629
4640
  return (_ctx, _cache) => {
4630
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
4631
- _ctx.checkStrictly ? (openBlock(), createElementBlock(
4641
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
4642
+ __props.checkStrictly ? (openBlock(), createElementBlock(
4632
4643
  Fragment,
4633
4644
  { key: 0 },
4634
4645
  [
@@ -4636,8 +4647,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4636
4647
  "model-value": selectDataSourceId.value,
4637
4648
  clearable: "",
4638
4649
  filterable: "",
4639
- size: _ctx.size,
4640
- disabled: _ctx.disabled,
4650
+ size: __props.size,
4651
+ disabled: __props.disabled,
4641
4652
  onChange: dsChangeHandler
4642
4653
  }, {
4643
4654
  default: withCtx(() => [
@@ -4679,11 +4690,11 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4679
4690
  "model-value": selectFieldsId.value,
4680
4691
  clearable: "",
4681
4692
  filterable: "",
4682
- size: _ctx.size,
4683
- disabled: _ctx.disabled,
4693
+ size: __props.size,
4694
+ disabled: __props.disabled,
4684
4695
  options: fieldsOptions.value,
4685
4696
  props: {
4686
- checkStrictly: _ctx.checkStrictly
4697
+ checkStrictly: __props.checkStrictly
4687
4698
  },
4688
4699
  onChange: fieldChangeHandler
4689
4700
  }, null, 8, ["model-value", "size", "disabled", "options", "props"])
@@ -4695,11 +4706,11 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4695
4706
  clearable: "",
4696
4707
  filterable: "",
4697
4708
  "model-value": modelValue.value,
4698
- disabled: _ctx.disabled,
4699
- size: _ctx.size,
4709
+ disabled: __props.disabled,
4710
+ size: __props.size,
4700
4711
  options: cascaderOptions.value,
4701
4712
  props: {
4702
- checkStrictly: _ctx.checkStrictly
4713
+ checkStrictly: __props.checkStrictly
4703
4714
  },
4704
4715
  onChange: onChangeHandler
4705
4716
  }, null, 8, ["model-value", "disabled", "size", "options", "props"])),
@@ -4710,7 +4721,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4710
4721
  default: withCtx(() => [
4711
4722
  createVNode(unref(TMagicButton), {
4712
4723
  class: "m-fields-select-action-button",
4713
- size: _ctx.size,
4724
+ size: __props.size,
4714
4725
  onClick: _cache[0] || (_cache[0] = ($event) => editHandler(selectDataSourceId.value))
4715
4726
  }, {
4716
4727
  default: withCtx(() => [
@@ -4730,7 +4741,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4730
4741
  }
4731
4742
  });
4732
4743
 
4733
- const _hoisted_1$W = { class: "m-fields-data-source-field-select" };
4744
+ const _hoisted_1$V = { class: "m-fields-data-source-field-select" };
4734
4745
  const _sfc_main$1g = /* @__PURE__ */ defineComponent({
4735
4746
  ...{
4736
4747
  name: "MFieldsDataSourceFieldSelect"
@@ -4833,39 +4844,38 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
4833
4844
  }
4834
4845
  };
4835
4846
  return (_ctx, _cache) => {
4836
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
4837
- !disabledDataSource.value && (showDataSourceFieldSelect.value || !_ctx.config.fieldConfig) ? (openBlock(), createBlock(_sfc_main$1h, {
4847
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
4848
+ !disabledDataSource.value && (showDataSourceFieldSelect.value || !__props.config.fieldConfig) ? (openBlock(), createBlock(_sfc_main$1h, {
4838
4849
  key: 0,
4839
- "model-value": _ctx.model[_ctx.name],
4840
- disabled: _ctx.disabled,
4841
- size: _ctx.size,
4842
- value: _ctx.config.value,
4850
+ "model-value": __props.model[__props.name],
4851
+ disabled: __props.disabled,
4852
+ size: __props.size,
4853
+ value: __props.config.value,
4843
4854
  checkStrictly: checkStrictly.value,
4844
- dataSourceFieldType: _ctx.config.dataSourceFieldType,
4855
+ dataSourceFieldType: __props.config.dataSourceFieldType,
4845
4856
  onChange: onChangeHandler
4846
4857
  }, null, 8, ["model-value", "disabled", "size", "value", "checkStrictly", "dataSourceFieldType"])) : (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
4847
4858
  key: 1,
4848
- config: _ctx.config.fieldConfig,
4849
- model: _ctx.model,
4850
- name: _ctx.name,
4851
- disabled: _ctx.disabled,
4852
- size: _ctx.size,
4853
- "last-values": _ctx.lastValues,
4854
- "init-values": _ctx.initValues,
4855
- values: _ctx.values,
4856
- prop: _ctx.prop,
4859
+ config: __props.config.fieldConfig,
4860
+ model: __props.model,
4861
+ name: __props.name,
4862
+ disabled: __props.disabled,
4863
+ size: __props.size,
4864
+ "last-values": __props.lastValues,
4865
+ "init-values": __props.initValues,
4866
+ values: __props.values,
4867
+ prop: __props.prop,
4857
4868
  onChange: onChangeHandler
4858
4869
  }, null, 40, ["config", "model", "name", "disabled", "size", "last-values", "init-values", "values", "prop"])),
4859
- _ctx.config.fieldConfig && !disabledDataSource.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
4870
+ __props.config.fieldConfig && !disabledDataSource.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
4860
4871
  key: 2,
4861
4872
  disabled: showDataSourceFieldSelect.value,
4862
4873
  content: "选择数据源"
4863
4874
  }, {
4864
4875
  default: withCtx(() => [
4865
4876
  createVNode(unref(TMagicButton), {
4866
- style: { "margin-left": "5px" },
4867
4877
  type: showDataSourceFieldSelect.value ? "primary" : "default",
4868
- size: _ctx.size,
4878
+ size: __props.size,
4869
4879
  onClick: _cache[0] || (_cache[0] = ($event) => showDataSourceFieldSelect.value = !showDataSourceFieldSelect.value)
4870
4880
  }, {
4871
4881
  default: withCtx(() => [
@@ -4883,9 +4893,9 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
4883
4893
  }
4884
4894
  });
4885
4895
 
4886
- const _hoisted_1$V = { style: { "display": "flex", "flex-direction": "column", "line-height": "1.2em" } };
4887
- const _hoisted_2$k = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
4888
- const _hoisted_3$7 = { class: "el-input__inner t-input__inner" };
4896
+ const _hoisted_1$U = { style: { "display": "flex", "flex-direction": "column", "line-height": "1.2em" } };
4897
+ const _hoisted_2$l = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
4898
+ const _hoisted_3$8 = { class: "el-input__inner t-input__inner" };
4889
4899
  const _sfc_main$1f = /* @__PURE__ */ defineComponent({
4890
4900
  ...{
4891
4901
  name: "MFieldsDataSourceInput"
@@ -5067,11 +5077,11 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5067
5077
  key: 0,
5068
5078
  modelValue: state.value,
5069
5079
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.value = $event),
5070
- disabled: _ctx.disabled,
5071
- size: _ctx.size,
5080
+ disabled: __props.disabled,
5081
+ size: __props.size,
5072
5082
  clearable: true,
5073
5083
  onChange: changeHandler
5074
- }, null, 8, ["modelValue", "disabled", "size"])) : _ctx.disabled || isFocused.value ? (openBlock(), createBlock(resolveDynamicComponent(unref(getDesignConfig)("components")?.autocomplete.component || "el-autocomplete"), mergeProps(
5084
+ }, null, 8, ["modelValue", "disabled", "size"])) : __props.disabled || isFocused.value ? (openBlock(), createBlock(resolveDynamicComponent(unref(getDesignConfig)("components")?.autocomplete.component || "el-autocomplete"), mergeProps(
5075
5085
  {
5076
5086
  key: 1,
5077
5087
  class: "tmagic-design-auto-complete",
@@ -5080,8 +5090,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5080
5090
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.value = $event)
5081
5091
  },
5082
5092
  unref(getDesignConfig)("components")?.autocomplete.props({
5083
- disabled: _ctx.disabled,
5084
- size: _ctx.size,
5093
+ disabled: __props.disabled,
5094
+ size: __props.size,
5085
5095
  fetchSuggestions: querySearch,
5086
5096
  triggerOnFocus: false,
5087
5097
  clearable: true
@@ -5097,7 +5107,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5097
5107
  createVNode(_sfc_main$1r, { icon: unref(Coin) }, null, 8, ["icon"])
5098
5108
  ]),
5099
5109
  default: withCtx(({ item }) => [
5100
- createElementVNode("div", _hoisted_1$V, [
5110
+ createElementVNode("div", _hoisted_1$U, [
5101
5111
  createElementVNode(
5102
5112
  "div",
5103
5113
  null,
@@ -5107,7 +5117,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5107
5117
  ),
5108
5118
  createElementVNode(
5109
5119
  "span",
5110
- _hoisted_2$k,
5120
+ _hoisted_2$l,
5111
5121
  toDisplayString(item.value),
5112
5122
  1
5113
5123
  /* TEXT */
@@ -5120,7 +5130,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5120
5130
  "div",
5121
5131
  {
5122
5132
  key: 2,
5123
- class: normalizeClass(`tmagic-data-source-input-text el-input t-input t-size-${_ctx.size?.[0]} el-input--${_ctx.size}`),
5133
+ class: normalizeClass(`tmagic-data-source-input-text el-input t-input t-size-${__props.size?.[0]} el-input--${__props.size}`),
5124
5134
  onMouseup: mouseupHandler
5125
5135
  },
5126
5136
  [
@@ -5130,7 +5140,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5130
5140
  class: normalizeClass(`tmagic-data-source-input-text-wrapper el-input__wrapper ${isFocused.value ? " is-focus" : ""}`)
5131
5141
  },
5132
5142
  [
5133
- createElementVNode("div", _hoisted_3$7, [
5143
+ createElementVNode("div", _hoisted_3$8, [
5134
5144
  (openBlock(true), createElementBlock(
5135
5145
  Fragment,
5136
5146
  null,
@@ -5151,7 +5161,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5151
5161
  )) : createCommentVNode("v-if", true),
5152
5162
  item.type === "var" ? (openBlock(), createBlock(unref(TMagicTag), {
5153
5163
  key: index,
5154
- size: _ctx.size
5164
+ size: __props.size
5155
5165
  }, {
5156
5166
  default: withCtx(() => [
5157
5167
  createTextVNode(
@@ -5188,9 +5198,9 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5188
5198
  }
5189
5199
  });
5190
5200
 
5191
- const _hoisted_1$U = { style: { "display": "flex", "margin-bottom": "10px" } };
5192
- const _hoisted_2$j = { style: { "flex": "1" } };
5193
- const _hoisted_3$6 = { style: { "flex": "1" } };
5201
+ const _hoisted_1$T = { style: { "display": "flex", "margin-bottom": "10px" } };
5202
+ const _hoisted_2$k = { style: { "flex": "1" } };
5203
+ const _hoisted_3$7 = { style: { "flex": "1" } };
5194
5204
  const _hoisted_4$5 = { class: "dialog-footer" };
5195
5205
  const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5196
5206
  ...{
@@ -5385,7 +5395,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5385
5395
  "onUpdate:width": _cache[2] || (_cache[2] = ($event) => width.value = $event),
5386
5396
  height: unref(codeBlockEditorHeight),
5387
5397
  "onUpdate:height": _cache[3] || (_cache[3] = ($event) => isRef(codeBlockEditorHeight) ? codeBlockEditorHeight.value = $event : null),
5388
- title: _ctx.content.name ? `${_ctx.disabled ? "查看" : "编辑"}${_ctx.content.name}` : "新增代码",
5398
+ title: __props.content.name ? `${__props.disabled ? "查看" : "编辑"}${__props.content.name}` : "新增代码",
5389
5399
  position: unref(boxPosition),
5390
5400
  "before-close": beforeClose
5391
5401
  }, {
@@ -5396,10 +5406,10 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5396
5406
  ref: formBox,
5397
5407
  "label-width": "80px",
5398
5408
  "close-on-press-escape": false,
5399
- title: _ctx.content.name,
5409
+ title: __props.content.name,
5400
5410
  config: functionConfig.value,
5401
- values: _ctx.content,
5402
- disabled: _ctx.disabled,
5411
+ values: __props.content,
5412
+ disabled: __props.disabled,
5403
5413
  style: { "height": "100%" },
5404
5414
  onChange: changeHandler,
5405
5415
  onSubmit: submitForm,
@@ -5407,7 +5417,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5407
5417
  onClosed: closedHandler
5408
5418
  }, {
5409
5419
  left: withCtx(() => [
5410
- !_ctx.disabled ? (openBlock(), createBlock(unref(TMagicButton), {
5420
+ !__props.disabled ? (openBlock(), createBlock(unref(TMagicButton), {
5411
5421
  key: 0,
5412
5422
  type: "primary",
5413
5423
  link: "",
@@ -5473,8 +5483,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5473
5483
  ])
5474
5484
  ]),
5475
5485
  default: withCtx(() => [
5476
- createElementVNode("div", _hoisted_1$U, [
5477
- createElementVNode("div", _hoisted_2$j, [
5486
+ createElementVNode("div", _hoisted_1$T, [
5487
+ createElementVNode("div", _hoisted_2$k, [
5478
5488
  createVNode(unref(TMagicTag), {
5479
5489
  size: "small",
5480
5490
  type: "info"
@@ -5490,7 +5500,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5490
5500
  /* STABLE */
5491
5501
  })
5492
5502
  ]),
5493
- createElementVNode("div", _hoisted_3$6, [
5503
+ createElementVNode("div", _hoisted_3$7, [
5494
5504
  createVNode(unref(TMagicTag), {
5495
5505
  size: "small",
5496
5506
  type: "success"
@@ -5512,7 +5522,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5512
5522
  type: "diff",
5513
5523
  language: "json",
5514
5524
  "disabled-full-screen": true,
5515
- initValues: _ctx.content.content,
5525
+ initValues: __props.content.content,
5516
5526
  modifiedValues: formBox.value?.form?.values.content,
5517
5527
  height: `${unref(windowRect).height - 150}px`
5518
5528
  }, null, 8, ["initValues", "modifiedValues", "height"])
@@ -5529,8 +5539,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5529
5539
  }
5530
5540
  });
5531
5541
 
5532
- const _hoisted_1$T = { class: "m-editor-data-source-methods" };
5533
- const _hoisted_2$i = { class: "m-editor-data-source-methods-footer" };
5542
+ const _hoisted_1$S = { class: "m-editor-data-source-methods" };
5543
+ const _hoisted_2$j = { class: "m-editor-data-source-methods-footer" };
5534
5544
  const _sfc_main$1d = /* @__PURE__ */ defineComponent({
5535
5545
  ...{
5536
5546
  name: "MFieldsDataSourceMethods"
@@ -5648,17 +5658,17 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
5648
5658
  codeBlockEditorRef.value?.hide();
5649
5659
  };
5650
5660
  return (_ctx, _cache) => {
5651
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
5661
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
5652
5662
  createVNode(unref(MagicTable), {
5653
- data: _ctx.model[_ctx.name],
5663
+ data: __props.model[__props.name],
5654
5664
  columns: methodColumns,
5655
5665
  border: true
5656
5666
  }, null, 8, ["data"]),
5657
- createElementVNode("div", _hoisted_2$i, [
5667
+ createElementVNode("div", _hoisted_2$j, [
5658
5668
  createVNode(unref(TMagicButton), {
5659
5669
  size: "small",
5660
5670
  type: "primary",
5661
- disabled: _ctx.disabled,
5671
+ disabled: __props.disabled,
5662
5672
  plain: "",
5663
5673
  onClick: createCodeHandler
5664
5674
  }, {
@@ -5676,10 +5686,10 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
5676
5686
  codeConfig.value ? (openBlock(), createBlock(_sfc_main$1e, {
5677
5687
  key: 0,
5678
5688
  ref: "codeBlockEditor",
5679
- disabled: _ctx.disabled,
5689
+ disabled: __props.disabled,
5680
5690
  content: codeConfig.value,
5681
5691
  "is-data-source": true,
5682
- "data-source-type": _ctx.model.type,
5692
+ "data-source-type": __props.model.type,
5683
5693
  onSubmit: submitCodeHandler
5684
5694
  }, null, 8, ["disabled", "content", "data-source-type"])) : createCommentVNode("v-if", true)
5685
5695
  ]);
@@ -5687,8 +5697,8 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
5687
5697
  }
5688
5698
  });
5689
5699
 
5690
- const _hoisted_1$S = { class: "m-fields-data-source-method-select" };
5691
- const _hoisted_2$h = { class: "data-source-method-select-container" };
5700
+ const _hoisted_1$R = { class: "m-fields-data-source-method-select" };
5701
+ const _hoisted_2$i = { class: "data-source-method-select-container" };
5692
5702
  const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5693
5703
  ...{
5694
5704
  name: "MFieldsDataSourceMethodSelect"
@@ -5774,23 +5784,23 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5774
5784
  eventBus?.emit("edit-data-source", id);
5775
5785
  };
5776
5786
  return (_ctx, _cache) => {
5777
- return openBlock(), createElementBlock("div", _hoisted_1$S, [
5778
- createElementVNode("div", _hoisted_2$h, [
5787
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
5788
+ createElementVNode("div", _hoisted_2$i, [
5779
5789
  createVNode(unref(MContainer), {
5780
5790
  class: "select",
5781
5791
  config: cascaderConfig.value,
5782
- model: _ctx.model,
5783
- size: _ctx.size,
5792
+ model: __props.model,
5793
+ size: __props.size,
5784
5794
  onChange: onChangeHandler
5785
5795
  }, null, 8, ["config", "model", "size"]),
5786
- _ctx.model[_ctx.name] && isCustomMethod.value && hasDataSourceSidePanel.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
5796
+ __props.model[__props.name] && isCustomMethod.value && hasDataSourceSidePanel.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
5787
5797
  key: 0,
5788
5798
  content: notEditable.value ? "查看" : "编辑"
5789
5799
  }, {
5790
5800
  default: withCtx(() => [
5791
5801
  createVNode(unref(TMagicButton), {
5792
5802
  class: "m-fields-select-action-button",
5793
- size: _ctx.size,
5803
+ size: __props.size,
5794
5804
  onClick: editCodeHandler
5795
5805
  }, {
5796
5806
  default: withCtx(() => [
@@ -5809,9 +5819,9 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5809
5819
  paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$1m, {
5810
5820
  key: 0,
5811
5821
  name: "params",
5812
- model: _ctx.model,
5813
- size: _ctx.size,
5814
- disabled: _ctx.disabled,
5822
+ model: __props.model,
5823
+ size: __props.size,
5824
+ disabled: __props.disabled,
5815
5825
  "params-config": paramsConfig.value,
5816
5826
  onChange: onChangeHandler
5817
5827
  }, null, 8, ["model", "size", "disabled", "params-config"])) : createCommentVNode("v-if", true)
@@ -5820,8 +5830,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5820
5830
  }
5821
5831
  });
5822
5832
 
5823
- const _hoisted_1$R = { class: "m-editor-data-source-fields" };
5824
- const _hoisted_2$g = { class: "m-editor-data-source-fields-footer" };
5833
+ const _hoisted_1$Q = { class: "m-editor-data-source-fields" };
5834
+ const _hoisted_2$h = { class: "m-editor-data-source-fields-footer" };
5825
5835
  const _sfc_main$1b = /* @__PURE__ */ defineComponent({
5826
5836
  ...{
5827
5837
  name: "MFieldsDataSourceMocks"
@@ -6026,16 +6036,16 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
6026
6036
  const parentFloating = inject("parentFloating", ref(null));
6027
6037
  const { boxPosition, calcBoxPosition } = useNextFloatBoxPosition(uiService, parentFloating);
6028
6038
  return (_ctx, _cache) => {
6029
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
6039
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
6030
6040
  createVNode(unref(MagicTable), {
6031
- data: _ctx.model[_ctx.name],
6041
+ data: __props.model[__props.name],
6032
6042
  columns
6033
6043
  }, null, 8, ["data"]),
6034
- createElementVNode("div", _hoisted_2$g, [
6044
+ createElementVNode("div", _hoisted_2$h, [
6035
6045
  createVNode(unref(TMagicButton), {
6036
6046
  size: "small",
6037
6047
  type: "primary",
6038
- disabled: _ctx.disabled,
6048
+ disabled: __props.disabled,
6039
6049
  plain: "",
6040
6050
  onClick: _cache[0] || (_cache[0] = ($event) => newHandler())
6041
6051
  }, {
@@ -6065,8 +6075,8 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
6065
6075
  "label-width": "120px",
6066
6076
  config: formConfig,
6067
6077
  values: formValues.value,
6068
- parentValues: _ctx.model[_ctx.name],
6069
- disabled: _ctx.disabled,
6078
+ parentValues: __props.model[__props.name],
6079
+ disabled: __props.disabled,
6070
6080
  onSubmit: formChangeHandler
6071
6081
  }, null, 8, ["values", "parentValues", "disabled"])
6072
6082
  ]),
@@ -6078,7 +6088,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
6078
6088
  }
6079
6089
  });
6080
6090
 
6081
- const _hoisted_1$Q = { class: "m-fields-data-source-select" };
6091
+ const _hoisted_1$P = { class: "m-fields-data-source-select" };
6082
6092
  const _sfc_main$1a = /* @__PURE__ */ defineComponent({
6083
6093
  ...{
6084
6094
  name: "MFieldsDataSourceSelect"
@@ -6136,25 +6146,25 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
6136
6146
  eventBus?.emit("edit-data-source", id);
6137
6147
  };
6138
6148
  return (_ctx, _cache) => {
6139
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
6149
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
6140
6150
  createVNode(unref(MSelect), {
6141
- model: _ctx.model,
6142
- name: _ctx.name,
6143
- size: _ctx.size,
6144
- prop: _ctx.prop,
6145
- disabled: _ctx.disabled,
6151
+ model: __props.model,
6152
+ name: __props.name,
6153
+ size: __props.size,
6154
+ prop: __props.prop,
6155
+ disabled: __props.disabled,
6146
6156
  config: selectConfig.value,
6147
- "last-values": _ctx.lastValues,
6157
+ "last-values": __props.lastValues,
6148
6158
  onChange: changeHandler
6149
6159
  }, null, 8, ["model", "name", "size", "prop", "disabled", "config", "last-values"]),
6150
- _ctx.model[_ctx.name] && hasDataSourceSidePanel.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
6160
+ __props.model[__props.name] && hasDataSourceSidePanel.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
6151
6161
  key: 0,
6152
6162
  content: notEditable.value ? "查看" : "编辑"
6153
6163
  }, {
6154
6164
  default: withCtx(() => [
6155
6165
  createVNode(unref(TMagicButton), {
6156
6166
  class: "m-fields-select-action-button",
6157
- size: _ctx.size,
6167
+ size: __props.size,
6158
6168
  onClick: editHandler
6159
6169
  }, {
6160
6170
  default: withCtx(() => [
@@ -6294,20 +6304,20 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6294
6304
  return openBlock(), createBlock(unref(MGroupList), {
6295
6305
  style: { "width": "100%" },
6296
6306
  config: config.value,
6297
- name: _ctx.name,
6298
- disabled: _ctx.disabled,
6299
- model: _ctx.model,
6300
- "last-values": _ctx.lastValues,
6301
- prop: _ctx.prop,
6302
- size: _ctx.size,
6307
+ name: __props.name,
6308
+ disabled: __props.disabled,
6309
+ model: __props.model,
6310
+ "last-values": __props.lastValues,
6311
+ prop: __props.prop,
6312
+ size: __props.size,
6303
6313
  onChange: changeHandler
6304
6314
  }, null, 8, ["config", "name", "disabled", "model", "last-values", "prop", "size"]);
6305
6315
  };
6306
6316
  }
6307
6317
  });
6308
6318
 
6309
- const _hoisted_1$P = { class: "m-fields-event-select" };
6310
- const _hoisted_2$f = {
6319
+ const _hoisted_1$O = { class: "m-fields-event-select" };
6320
+ const _hoisted_2$g = {
6311
6321
  key: 1,
6312
6322
  class: "fullWidth"
6313
6323
  };
@@ -6588,21 +6598,21 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6588
6598
  const onChangeHandler = (v, eventData) => emit("change", props.model[props.name], eventData);
6589
6599
  return (_ctx, _cache) => {
6590
6600
  const _component_m_form_table = resolveComponent("m-form-table");
6591
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
6601
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
6592
6602
  isOldVersion.value ? (openBlock(), createBlock(_component_m_form_table, {
6593
6603
  key: 0,
6594
6604
  name: "events",
6595
- size: _ctx.size,
6596
- disabled: _ctx.disabled,
6597
- model: _ctx.model,
6605
+ size: __props.size,
6606
+ disabled: __props.disabled,
6607
+ model: __props.model,
6598
6608
  config: tableConfig.value,
6599
6609
  onChange: onChangeHandler
6600
- }, null, 8, ["size", "disabled", "model", "config"])) : (openBlock(), createElementBlock("div", _hoisted_2$f, [
6610
+ }, null, 8, ["size", "disabled", "model", "config"])) : (openBlock(), createElementBlock("div", _hoisted_2$g, [
6601
6611
  createVNode(unref(TMagicButton), {
6602
6612
  class: "create-button",
6603
6613
  type: "primary",
6604
- size: _ctx.size,
6605
- disabled: _ctx.disabled,
6614
+ size: __props.size,
6615
+ disabled: __props.disabled,
6606
6616
  onClick: _cache[0] || (_cache[0] = ($event) => addEvent())
6607
6617
  }, {
6608
6618
  default: withCtx(() => [..._cache[1] || (_cache[1] = [
@@ -6618,15 +6628,15 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6618
6628
  (openBlock(true), createElementBlock(
6619
6629
  Fragment,
6620
6630
  null,
6621
- renderList(_ctx.model[_ctx.name], (cardItem, index) => {
6631
+ renderList(__props.model[__props.name], (cardItem, index) => {
6622
6632
  return openBlock(), createBlock(unref(MPanel), {
6623
6633
  key: index,
6624
- disabled: _ctx.disabled,
6625
- size: _ctx.size,
6626
- prop: `${_ctx.prop}.${index}`,
6634
+ disabled: __props.disabled,
6635
+ size: __props.size,
6636
+ prop: `${__props.prop}.${index}`,
6627
6637
  config: actionsConfig.value,
6628
6638
  model: cardItem,
6629
- "label-width": _ctx.config.labelWidth || "100px",
6639
+ "label-width": __props.config.labelWidth || "100px",
6630
6640
  onChange: onChangeHandler
6631
6641
  }, {
6632
6642
  header: withCtx(() => [
@@ -6634,17 +6644,17 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6634
6644
  class: "fullWidth",
6635
6645
  config: eventNameConfig.value,
6636
6646
  model: cardItem,
6637
- disabled: _ctx.disabled,
6638
- size: _ctx.size,
6639
- prop: `${_ctx.prop}.${index}`,
6647
+ disabled: __props.disabled,
6648
+ size: __props.size,
6649
+ prop: `${__props.prop}.${index}`,
6640
6650
  onChange: eventNameChangeHandler
6641
6651
  }, null, 8, ["config", "model", "disabled", "size", "prop"]),
6642
6652
  createVNode(unref(TMagicButton), {
6643
6653
  style: { "color": "#f56c6c" },
6644
6654
  link: "",
6645
6655
  icon: unref(Delete),
6646
- disabled: _ctx.disabled,
6647
- size: _ctx.size,
6656
+ disabled: __props.disabled,
6657
+ size: __props.size,
6648
6658
  onClick: ($event) => removeEvent(index)
6649
6659
  }, null, 8, ["icon", "disabled", "size", "onClick"])
6650
6660
  ]),
@@ -6661,7 +6671,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6661
6671
  }
6662
6672
  });
6663
6673
 
6664
- const _hoisted_1$O = {
6674
+ const _hoisted_1$N = {
6665
6675
  viewBox: "0 0 32 32",
6666
6676
  version: "1.1",
6667
6677
  xmlns: "http://www.w3.org/2000/svg",
@@ -6674,15 +6684,15 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
6674
6684
  __name: "CodeIcon",
6675
6685
  setup(__props) {
6676
6686
  return (_ctx, _cache) => {
6677
- return openBlock(), createElementBlock("svg", _hoisted_1$O, [..._cache[0] || (_cache[0] = [
6687
+ return openBlock(), createElementBlock("svg", _hoisted_1$N, [..._cache[0] || (_cache[0] = [
6678
6688
  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)
6679
6689
  ])]);
6680
6690
  };
6681
6691
  }
6682
6692
  });
6683
6693
 
6684
- const _hoisted_1$N = { class: "m-fields-key-value" };
6685
- const _hoisted_2$e = { key: 0 };
6694
+ const _hoisted_1$M = { class: "m-fields-key-value" };
6695
+ const _hoisted_2$f = { key: 0 };
6686
6696
  const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6687
6697
  ...{
6688
6698
  name: "MFieldsKeyValue"
@@ -6745,8 +6755,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6745
6755
  emit("change", v);
6746
6756
  };
6747
6757
  return (_ctx, _cache) => {
6748
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
6749
- !showCode.value ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
6758
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
6759
+ !showCode.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
6750
6760
  (openBlock(true), createElementBlock(
6751
6761
  Fragment,
6752
6762
  null,
@@ -6759,8 +6769,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6759
6769
  placeholder: "key",
6760
6770
  modelValue: records.value[index][0],
6761
6771
  "onUpdate:modelValue": ($event) => records.value[index][0] = $event,
6762
- disabled: _ctx.disabled,
6763
- size: _ctx.size,
6772
+ disabled: __props.disabled,
6773
+ size: __props.size,
6764
6774
  onChange: keyChangeHandler
6765
6775
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
6766
6776
  _cache[1] || (_cache[1] = createElementVNode(
@@ -6774,15 +6784,15 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6774
6784
  placeholder: "value",
6775
6785
  modelValue: records.value[index][1],
6776
6786
  "onUpdate:modelValue": ($event) => records.value[index][1] = $event,
6777
- disabled: _ctx.disabled,
6778
- size: _ctx.size,
6787
+ disabled: __props.disabled,
6788
+ size: __props.size,
6779
6789
  onChange: valueChangeHandler
6780
6790
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
6781
6791
  createVNode(unref(TMagicButton), {
6782
6792
  class: "m-fields-key-value-delete",
6783
6793
  type: "danger",
6784
- size: _ctx.size,
6785
- disabled: _ctx.disabled,
6794
+ size: __props.size,
6795
+ disabled: __props.disabled,
6786
6796
  circle: "",
6787
6797
  plain: "",
6788
6798
  icon: unref(Delete),
@@ -6795,8 +6805,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6795
6805
  )),
6796
6806
  createVNode(unref(TMagicButton), {
6797
6807
  type: "primary",
6798
- size: _ctx.size,
6799
- disabled: _ctx.disabled,
6808
+ size: __props.size,
6809
+ disabled: __props.disabled,
6800
6810
  plain: "",
6801
6811
  icon: unref(Plus),
6802
6812
  onClick: addHandler
@@ -6812,21 +6822,21 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6812
6822
  /* STABLE */
6813
6823
  }, 8, ["size", "disabled", "icon"])
6814
6824
  ])) : createCommentVNode("v-if", true),
6815
- _ctx.config.advanced && showCode.value ? (openBlock(), createBlock(_sfc_main$1q, {
6825
+ __props.config.advanced && showCode.value ? (openBlock(), createBlock(_sfc_main$1q, {
6816
6826
  key: 1,
6817
6827
  height: "200px",
6818
- "init-values": _ctx.model[_ctx.name],
6828
+ "init-values": __props.model[__props.name],
6819
6829
  language: "javascript",
6820
6830
  options: {
6821
- readOnly: _ctx.disabled
6831
+ readOnly: __props.disabled
6822
6832
  },
6823
6833
  parse: true,
6824
6834
  onSave: save
6825
6835
  }, null, 8, ["init-values", "options"])) : createCommentVNode("v-if", true),
6826
- _ctx.config.advanced ? (openBlock(), createBlock(unref(TMagicButton), {
6836
+ __props.config.advanced ? (openBlock(), createBlock(unref(TMagicButton), {
6827
6837
  key: 2,
6828
6838
  size: "default",
6829
- disabled: _ctx.disabled,
6839
+ disabled: __props.disabled,
6830
6840
  link: "",
6831
6841
  icon: _sfc_main$17,
6832
6842
  onClick: _cache[0] || (_cache[0] = ($event) => showCode.value = !showCode.value)
@@ -6836,8 +6846,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6836
6846
  }
6837
6847
  });
6838
6848
 
6839
- const _hoisted_1$M = { class: "m-fields-page-fragment-select" };
6840
- const _hoisted_2$d = { class: "page-fragment-select-container" };
6849
+ const _hoisted_1$L = { class: "m-fields-page-fragment-select" };
6850
+ const _hoisted_2$e = { class: "page-fragment-select-container" };
6841
6851
  const _sfc_main$15 = /* @__PURE__ */ defineComponent({
6842
6852
  ...{
6843
6853
  name: "MFieldsPageFragmentSelect"
@@ -6884,22 +6894,22 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
6884
6894
  };
6885
6895
  return (_ctx, _cache) => {
6886
6896
  const _component_m_form_container = resolveComponent("m-form-container");
6887
- return openBlock(), createElementBlock("div", _hoisted_1$M, [
6888
- createElementVNode("div", _hoisted_2$d, [
6897
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
6898
+ createElementVNode("div", _hoisted_2$e, [
6889
6899
  createCommentVNode(" 页面片下拉框 "),
6890
6900
  createVNode(_component_m_form_container, {
6891
6901
  class: "select",
6892
6902
  config: selectConfig,
6893
- model: _ctx.model,
6894
- size: _ctx.size,
6903
+ model: __props.model,
6904
+ size: __props.size,
6895
6905
  onChange: changeHandler
6896
6906
  }, null, 8, ["model", "size"]),
6897
6907
  createCommentVNode(" 编辑按钮 "),
6898
- _ctx.model[_ctx.name] ? (openBlock(), createBlock(_sfc_main$1r, {
6908
+ __props.model[__props.name] ? (openBlock(), createBlock(_sfc_main$1r, {
6899
6909
  key: 0,
6900
6910
  class: "icon",
6901
6911
  icon: unref(Edit),
6902
- onClick: _cache[0] || (_cache[0] = ($event) => editPageFragment(_ctx.model[_ctx.name]))
6912
+ onClick: _cache[0] || (_cache[0] = ($event) => editPageFragment(__props.model[__props.name]))
6903
6913
  }, null, 8, ["icon"])) : createCommentVNode("v-if", true)
6904
6914
  ])
6905
6915
  ]);
@@ -6907,9 +6917,9 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
6907
6917
  }
6908
6918
  });
6909
6919
 
6910
- const _hoisted_1$L = { class: "background-position-container" };
6911
- const _hoisted_2$c = { class: "presets-value-list" };
6912
- const _hoisted_3$5 = { class: "custom-value" };
6920
+ const _hoisted_1$K = { class: "background-position-container" };
6921
+ const _hoisted_2$d = { class: "presets-value-list" };
6922
+ const _hoisted_3$6 = { class: "custom-value" };
6913
6923
  const _sfc_main$14 = /* @__PURE__ */ defineComponent({
6914
6924
  __name: "BackgroundPosition",
6915
6925
  props: {
@@ -6965,8 +6975,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
6965
6975
  emit("change", v);
6966
6976
  };
6967
6977
  return (_ctx, _cache) => {
6968
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
6969
- createElementVNode("div", _hoisted_2$c, [
6978
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
6979
+ createElementVNode("div", _hoisted_2$d, [
6970
6980
  (openBlock(true), createElementBlock(
6971
6981
  Fragment,
6972
6982
  null,
@@ -6974,14 +6984,15 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
6974
6984
  return openBlock(), createBlock(unref(TMagicButton), {
6975
6985
  key: index,
6976
6986
  link: "",
6977
- class: normalizeClass(_ctx.model[_ctx.name] === item.value && "btn-active"),
6987
+ class: normalizeClass(__props.model[__props.name] === item.value && "btn-active"),
6988
+ disabled: __props.disabled,
6978
6989
  onClick: ($event) => changeHandler(item.value)
6979
6990
  }, {
6980
6991
  default: withCtx(() => [
6981
6992
  createElementVNode(
6982
6993
  "div",
6983
6994
  {
6984
- class: normalizeClass(["position-icon", item.class, _ctx.model[_ctx.name] === item.value && "active"])
6995
+ class: normalizeClass(["position-icon", item.class, __props.model[__props.name] === item.value && "active"])
6985
6996
  },
6986
6997
  null,
6987
6998
  2
@@ -6990,21 +7001,22 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
6990
7001
  ]),
6991
7002
  _: 2
6992
7003
  /* DYNAMIC */
6993
- }, 1032, ["class", "onClick"]);
7004
+ }, 1032, ["class", "disabled", "onClick"]);
6994
7005
  }),
6995
7006
  128
6996
7007
  /* KEYED_FRAGMENT */
6997
7008
  ))
6998
7009
  ]),
6999
- createElementVNode("div", _hoisted_3$5, [
7010
+ createElementVNode("div", _hoisted_3$6, [
7000
7011
  createVNode(unref(TMagicInput), {
7001
- modelValue: _ctx.model[_ctx.name],
7002
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
7003
- size: "small",
7012
+ modelValue: __props.model[__props.name],
7013
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
7004
7014
  placeholder: "自定义背景位置",
7005
7015
  clearable: "",
7016
+ size: __props.size,
7017
+ disabled: __props.disabled,
7006
7018
  onChange: changeHandler
7007
- }, null, 8, ["modelValue"])
7019
+ }, null, 8, ["modelValue", "size", "disabled"])
7008
7020
  ])
7009
7021
  ]);
7010
7022
  };
@@ -7021,13 +7033,13 @@ const _export_sfc = (sfc, props) => {
7021
7033
 
7022
7034
  const _sfc_main$13 = { };
7023
7035
 
7024
- const _hoisted_1$K = {
7036
+ const _hoisted_1$J = {
7025
7037
  xmlns: "http://www.w3.org/2000/svg",
7026
7038
  viewBox: "0 0 1024 1024"
7027
7039
  };
7028
7040
 
7029
7041
  function _sfc_render$k(_ctx, _cache) {
7030
- return (openBlock(), createElementBlock("svg", _hoisted_1$K, [...(_cache[0] || (_cache[0] = [
7042
+ return (openBlock(), createElementBlock("svg", _hoisted_1$J, [...(_cache[0] || (_cache[0] = [
7031
7043
  createStaticVNode("<path d=\"M884.736 102.4l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456C696.32 311.296 712.704 327.68 733.184 327.68l147.456 0c20.48 0 36.864-16.384 36.864-36.864L917.504 139.264C921.6 118.784 905.216 102.4 884.736 102.4zM884.736 290.816l-147.456 0L737.28 139.264l147.456 0L884.736 290.816z\"></path><path d=\"M884.736 696.32l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C921.6 712.704 905.216 696.32 884.736 696.32zM884.736 884.736l-147.456 0 0-147.456 147.456 0L884.736 884.736z\"></path><path d=\"M884.736 401.408l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C921.6 417.792 905.216 401.408 884.736 401.408zM884.736 585.728l-147.456 0 0-147.456 147.456 0L884.736 585.728z\"></path><path d=\"M585.728 401.408l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C622.592 417.792 606.208 401.408 585.728 401.408zM585.728 585.728l-147.456 0 0-147.456 147.456 0L585.728 585.728z\"></path><path d=\"M585.728 102.4l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864L622.592 139.264C622.592 118.784 606.208 102.4 585.728 102.4zM585.728 290.816l-147.456 0L438.272 139.264l147.456 0L585.728 290.816z\"></path><path d=\"M585.728 696.32l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C622.592 712.704 606.208 696.32 585.728 696.32zM585.728 884.736l-147.456 0 0-147.456 147.456 0L585.728 884.736z\"></path><path d=\"M290.816 696.32 139.264 696.32c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C327.68 712.704 311.296 696.32 290.816 696.32zM290.816 884.736 139.264 884.736l0-147.456 147.456 0L286.72 884.736z\"></path><path d=\"M290.816 401.408 139.264 401.408c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C327.68 417.792 311.296 401.408 290.816 401.408zM290.816 585.728 139.264 585.728l0-147.456 147.456 0L286.72 585.728z\"></path><path d=\"M290.816 102.4 139.264 102.4c-20.48 0-36.864 16.384-36.864 36.864l0 147.456C102.4 311.296 118.784 327.68 139.264 327.68l147.456 0C311.296 327.68 327.68 311.296 327.68 290.816L327.68 139.264C327.68 118.784 311.296 102.4 290.816 102.4zM290.816 290.816 139.264 290.816 139.264 139.264l147.456 0L286.72 290.816z\"></path>", 9)
7032
7044
  ]))]))
7033
7045
  }
@@ -7035,13 +7047,13 @@ const BackgroundRepeat = /*#__PURE__*/_export_sfc(_sfc_main$13, [['render',_sfc_
7035
7047
 
7036
7048
  const _sfc_main$12 = { };
7037
7049
 
7038
- const _hoisted_1$J = {
7050
+ const _hoisted_1$I = {
7039
7051
  xmlns: "http://www.w3.org/2000/svg",
7040
7052
  viewBox: "0 0 1024 1024"
7041
7053
  };
7042
7054
 
7043
7055
  function _sfc_render$j(_ctx, _cache) {
7044
- return (openBlock(), createElementBlock("svg", _hoisted_1$J, [...(_cache[0] || (_cache[0] = [
7056
+ return (openBlock(), createElementBlock("svg", _hoisted_1$I, [...(_cache[0] || (_cache[0] = [
7045
7057
  createElementVNode("path", {
7046
7058
  d: "M796.444444 170.666667h-227.555555v682.666666h227.555555V170.666667z m-56.888888 625.777777h-113.777778V227.555556h113.777778v568.888888zM455.111111 170.666667H227.555556v682.666666h227.555555V170.666667zM398.222222 796.444444H284.444444V227.555556h113.777778v568.888888zM910.222222 56.888889h56.888889v910.222222h-56.888889zM56.888889 56.888889h56.888889v910.222222H56.888889z",
7047
7059
  fill: "#333333"
@@ -7052,13 +7064,13 @@ const BackgroundRepeatX = /*#__PURE__*/_export_sfc(_sfc_main$12, [['render',_sfc
7052
7064
 
7053
7065
  const _sfc_main$11 = { };
7054
7066
 
7055
- const _hoisted_1$I = {
7067
+ const _hoisted_1$H = {
7056
7068
  xmlns: "http://www.w3.org/2000/svg",
7057
7069
  viewBox: "0 0 1024 1024"
7058
7070
  };
7059
7071
 
7060
7072
  function _sfc_render$i(_ctx, _cache) {
7061
- return (openBlock(), createElementBlock("svg", _hoisted_1$I, [...(_cache[0] || (_cache[0] = [
7073
+ return (openBlock(), createElementBlock("svg", _hoisted_1$H, [...(_cache[0] || (_cache[0] = [
7062
7074
  createElementVNode("path", {
7063
7075
  d: "M170.666667 227.555556v227.555555h682.666666V227.555556H170.666667z m625.777777 56.888888v113.777778H227.555556V284.444444h568.888888zM170.666667 568.888889v227.555555h682.666666v-227.555555H170.666667z m625.777777 56.888889v113.777778H227.555556v-113.777778h568.888888zM56.888889 56.888889h910.222222v56.888889H56.888889zM56.888889 910.222222h910.222222v56.888889H56.888889z",
7064
7076
  fill: "#333333"
@@ -7069,13 +7081,13 @@ const BackgroundRepeatY = /*#__PURE__*/_export_sfc(_sfc_main$11, [['render',_sfc
7069
7081
 
7070
7082
  const _sfc_main$10 = { };
7071
7083
 
7072
- const _hoisted_1$H = {
7084
+ const _hoisted_1$G = {
7073
7085
  xmlns: "http://www.w3.org/2000/svg",
7074
7086
  viewBox: "0 0 1024 1024"
7075
7087
  };
7076
7088
 
7077
7089
  function _sfc_render$h(_ctx, _cache) {
7078
- return (openBlock(), createElementBlock("svg", _hoisted_1$H, [...(_cache[0] || (_cache[0] = [
7090
+ return (openBlock(), createElementBlock("svg", _hoisted_1$G, [...(_cache[0] || (_cache[0] = [
7079
7091
  createElementVNode("path", {
7080
7092
  d: "M912.526651 867.741144 555.540144 510.712681l356.986507-357.000833c11.171434-11.18576 11.171434-29.257348 0-40.443108-11.20111-11.18576-29.272697-11.18576-40.444131 0L515.096013 470.267527 158.096203 113.267716c-11.187807-11.159154-29.258371-11.159154-40.444131 0-11.186783 11.186783-11.186783 29.286 0 40.47176L474.623229 510.712681 117.623419 867.741144c-11.159154 11.172457-11.159154 29.216415 0 40.443108 11.18576 11.17348 29.284977 11.17348 40.47176 0l357.000833-357.027439 356.985484 357.027439c11.171434 11.17348 29.243021 11.17348 40.444131 0C923.698085 896.957559 923.725714 878.913601 912.526651 867.741144z",
7081
7093
  fill: "#5D5D5D"
@@ -7087,7 +7099,9 @@ const BackgroundNoRepeat = /*#__PURE__*/_export_sfc(_sfc_main$10, [['render',_sf
7087
7099
  const _sfc_main$$ = /* @__PURE__ */ defineComponent({
7088
7100
  __name: "Background",
7089
7101
  props: {
7090
- values: {}
7102
+ values: {},
7103
+ disabled: { type: Boolean },
7104
+ size: {}
7091
7105
  },
7092
7106
  emits: ["change"],
7093
7107
  setup(__props, { emit: __emit }) {
@@ -7152,22 +7166,24 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
7152
7166
  return (_ctx, _cache) => {
7153
7167
  return openBlock(), createBlock(unref(MContainer), {
7154
7168
  config,
7155
- model: _ctx.values,
7169
+ model: __props.values,
7170
+ size: __props.size,
7171
+ disabled: __props.disabled,
7156
7172
  onChange: change
7157
- }, null, 8, ["model"]);
7173
+ }, null, 8, ["model", "size", "disabled"]);
7158
7174
  };
7159
7175
  }
7160
7176
  });
7161
7177
 
7162
7178
  const _sfc_main$_ = { };
7163
7179
 
7164
- const _hoisted_1$G = {
7180
+ const _hoisted_1$F = {
7165
7181
  xmlns: "http://www.w3.org/2000/svg",
7166
7182
  viewBox: "0 0 1024 1024"
7167
7183
  };
7168
7184
 
7169
7185
  function _sfc_render$g(_ctx, _cache) {
7170
- return (openBlock(), createElementBlock("svg", _hoisted_1$G, [...(_cache[0] || (_cache[0] = [
7186
+ return (openBlock(), createElementBlock("svg", _hoisted_1$F, [...(_cache[0] || (_cache[0] = [
7171
7187
  createElementVNode("path", { d: "M128 810.666667h768v85.333333H128z m0-170.666667h512v85.333333H128z m0-170.666667h768v85.333334H128z m0-341.333333h768v85.333333H128z m0 170.666667h512v85.333333H128z" }, null, -1 /* CACHED */)
7172
7188
  ]))]))
7173
7189
  }
@@ -7175,13 +7191,13 @@ const AlignLeft = /*#__PURE__*/_export_sfc(_sfc_main$_, [['render',_sfc_render$g
7175
7191
 
7176
7192
  const _sfc_main$Z = { };
7177
7193
 
7178
- const _hoisted_1$F = {
7194
+ const _hoisted_1$E = {
7179
7195
  xmlns: "http://www.w3.org/2000/svg",
7180
7196
  viewBox: "0 0 1024 1024"
7181
7197
  };
7182
7198
 
7183
7199
  function _sfc_render$f(_ctx, _cache) {
7184
- return (openBlock(), createElementBlock("svg", _hoisted_1$F, [...(_cache[0] || (_cache[0] = [
7200
+ return (openBlock(), createElementBlock("svg", _hoisted_1$E, [...(_cache[0] || (_cache[0] = [
7185
7201
  createElementVNode("path", { d: "M128 810.666667h768v85.333333H128z m128-170.666667h512v85.333333H256z m-128-170.666667h768v85.333334H128z m0-341.333333h768v85.333333H128z m128 170.666667h512v85.333333H256z" }, null, -1 /* CACHED */)
7186
7202
  ]))]))
7187
7203
  }
@@ -7189,13 +7205,13 @@ const AlignCenter = /*#__PURE__*/_export_sfc(_sfc_main$Z, [['render',_sfc_render
7189
7205
 
7190
7206
  const _sfc_main$Y = { };
7191
7207
 
7192
- const _hoisted_1$E = {
7208
+ const _hoisted_1$D = {
7193
7209
  xmlns: "http://www.w3.org/2000/svg",
7194
7210
  viewBox: "0 0 1024 1024"
7195
7211
  };
7196
7212
 
7197
7213
  function _sfc_render$e(_ctx, _cache) {
7198
- return (openBlock(), createElementBlock("svg", _hoisted_1$E, [...(_cache[0] || (_cache[0] = [
7214
+ return (openBlock(), createElementBlock("svg", _hoisted_1$D, [...(_cache[0] || (_cache[0] = [
7199
7215
  createElementVNode("path", { d: "M128 128h768v85.333333H128z m0 682.666667h768v85.333333H128z m213.333333-170.666667h554.666667v85.333333H341.333333z m-213.333333-170.666667h768v85.333334H128z m213.333333-170.666666h554.666667v85.333333H341.333333z" }, null, -1 /* CACHED */)
7200
7216
  ]))]))
7201
7217
  }
@@ -7204,7 +7220,9 @@ const AlignRight = /*#__PURE__*/_export_sfc(_sfc_main$Y, [['render',_sfc_render$
7204
7220
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
7205
7221
  __name: "Font",
7206
7222
  props: {
7207
- values: {}
7223
+ values: {},
7224
+ disabled: { type: Boolean },
7225
+ size: {}
7208
7226
  },
7209
7227
  emits: ["change"],
7210
7228
  setup(__props, { emit: __emit }) {
@@ -7278,23 +7296,27 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
7278
7296
  return (_ctx, _cache) => {
7279
7297
  return openBlock(), createBlock(unref(MContainer), {
7280
7298
  config,
7281
- model: _ctx.values,
7299
+ model: __props.values,
7300
+ size: __props.size,
7301
+ disabled: __props.disabled,
7282
7302
  onChange: change
7283
- }, null, 8, ["model"]);
7303
+ }, null, 8, ["model", "size", "disabled"]);
7284
7304
  };
7285
7305
  }
7286
7306
  });
7287
7307
 
7288
- const _hoisted_1$D = { class: "layout-box-container" };
7289
- const _hoisted_2$b = {
7308
+ const _hoisted_1$C = { class: "layout-box-container" };
7309
+ const _hoisted_2$c = {
7290
7310
  key: 0,
7291
7311
  class: "help-txt"
7292
7312
  };
7293
- const _hoisted_3$4 = { class: "next-input" };
7294
- const _hoisted_4$4 = ["onUpdate:modelValue", "title", "onChange"];
7313
+ const _hoisted_3$5 = { class: "next-input" };
7314
+ const _hoisted_4$4 = ["onUpdate:modelValue", "title", "disabled", "onChange"];
7295
7315
  const _sfc_main$W = /* @__PURE__ */ defineComponent({
7296
7316
  __name: "Box",
7297
7317
  props: {
7318
+ disabled: { type: Boolean },
7319
+ size: {},
7298
7320
  model: {}
7299
7321
  },
7300
7322
  emits: ["change"],
@@ -7342,7 +7364,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
7342
7364
  });
7343
7365
  };
7344
7366
  return (_ctx, _cache) => {
7345
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
7367
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
7346
7368
  (openBlock(), createElementBlock(
7347
7369
  Fragment,
7348
7370
  null,
@@ -7356,19 +7378,20 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
7356
7378
  [
7357
7379
  item.text ? (openBlock(), createElementBlock(
7358
7380
  "span",
7359
- _hoisted_2$b,
7381
+ _hoisted_2$c,
7360
7382
  toDisplayString(item.text),
7361
7383
  1
7362
7384
  /* TEXT */
7363
7385
  )) : createCommentVNode("v-if", true),
7364
- createElementVNode("span", _hoisted_3$4, [
7386
+ createElementVNode("span", _hoisted_3$5, [
7365
7387
  withDirectives(createElementVNode("input", {
7366
- "onUpdate:modelValue": ($event) => _ctx.model[item.name] = $event,
7367
- title: _ctx.model[item.name],
7368
- onChange: ($event) => change($event, item.name),
7369
- placeholder: "0"
7388
+ "onUpdate:modelValue": ($event) => __props.model[item.name] = $event,
7389
+ placeholder: "0",
7390
+ title: __props.model[item.name],
7391
+ disabled: __props.disabled,
7392
+ onChange: ($event) => change($event, item.name)
7370
7393
  }, null, 40, _hoisted_4$4), [
7371
- [vModelText, _ctx.model[item.name]]
7394
+ [vModelText, __props.model[item.name]]
7372
7395
  ])
7373
7396
  ])
7374
7397
  ],
@@ -7386,13 +7409,13 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
7386
7409
 
7387
7410
  const _sfc_main$V = { };
7388
7411
 
7389
- const _hoisted_1$C = {
7412
+ const _hoisted_1$B = {
7390
7413
  xmlns: "http://www.w3.org/2000/svg",
7391
7414
  viewBox: "0 0 1024 1024"
7392
7415
  };
7393
7416
 
7394
7417
  function _sfc_render$d(_ctx, _cache) {
7395
- return (openBlock(), createElementBlock("svg", _hoisted_1$C, [...(_cache[0] || (_cache[0] = [
7418
+ return (openBlock(), createElementBlock("svg", _hoisted_1$B, [...(_cache[0] || (_cache[0] = [
7396
7419
  createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192z m-96 64a32 32 0 0 1 32 32v448a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h704z" }, null, -1 /* CACHED */)
7397
7420
  ]))]))
7398
7421
  }
@@ -7400,13 +7423,13 @@ const DisplayBlock = /*#__PURE__*/_export_sfc(_sfc_main$V, [['render',_sfc_rende
7400
7423
 
7401
7424
  const _sfc_main$U = { };
7402
7425
 
7403
- const _hoisted_1$B = {
7426
+ const _hoisted_1$A = {
7404
7427
  xmlns: "http://www.w3.org/2000/svg",
7405
7428
  viewBox: "0 0 1024 1024"
7406
7429
  };
7407
7430
 
7408
7431
  function _sfc_render$c(_ctx, _cache) {
7409
- return (openBlock(), createElementBlock("svg", _hoisted_1$B, [...(_cache[0] || (_cache[0] = [
7432
+ return (openBlock(), createElementBlock("svg", _hoisted_1$A, [...(_cache[0] || (_cache[0] = [
7410
7433
  createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192zM352 256v512H160V256h192z m256 0v512h-192V256h192z m256 0v512h-192V256h192z" }, null, -1 /* CACHED */)
7411
7434
  ]))]))
7412
7435
  }
@@ -7414,13 +7437,13 @@ const DisplayFlex = /*#__PURE__*/_export_sfc(_sfc_main$U, [['render',_sfc_render
7414
7437
 
7415
7438
  const _sfc_main$T = { };
7416
7439
 
7417
- const _hoisted_1$A = {
7440
+ const _hoisted_1$z = {
7418
7441
  xmlns: "http://www.w3.org/2000/svg",
7419
7442
  viewBox: "0 0 1024 1024"
7420
7443
  };
7421
7444
 
7422
7445
  function _sfc_render$b(_ctx, _cache) {
7423
- return (openBlock(), createElementBlock("svg", _hoisted_1$A, [...(_cache[0] || (_cache[0] = [
7446
+ return (openBlock(), createElementBlock("svg", _hoisted_1$z, [...(_cache[0] || (_cache[0] = [
7424
7447
  createElementVNode("path", { d: "M787.616 651.36a142.72 142.72 0 0 0 52.864 31.904 205.504 205.504 0 0 0 67.264 10.848 245.76 245.76 0 0 0 38.784-2.4c9.504-1.6 19.36-4 30.208-7.04 8.16-2.24 15.968-5.12 23.36-8.32l23.392-10.816V587.52h-8.736c-3.968 3.424-8.96 7.648-15.104 12.544a190.272 190.272 0 0 1-19.936 13.504 120.32 120.32 0 0 1-27.616 12.544 102.528 102.528 0 0 1-62.72-0.576 80 80 0 0 1-29.824-17.088 89.28 89.28 0 0 1-21.664-32.512c-5.696-13.664-8.64-30.784-8.64-51.296 0-19.744 2.72-36.384 7.968-50.08 5.248-13.664 12.384-24.896 20.992-33.056 9.12-8.832 18.816-14.816 29.632-18.816a101.824 101.824 0 0 1 63.68-0.736c9.408 3.136 18.08 7.04 26.112 11.68 13.024 7.808 25.28 16.768 36.672 26.784H1024v-78.72c-6.08-2.88-13.12-6.08-21.12-9.6a205.984 205.984 0 0 0-57.152-15.36 270.016 270.016 0 0 0-37.056-2.304c-24.864 0-47.744 4-68.704 11.84-20.992 7.776-38.432 18.784-52.64 33.6a144.256 144.256 0 0 0-33.632 54.176 207.68 207.68 0 0 0-12.48 70.176c0 27.84 3.968 52.352 12.16 73.568a146.08 146.08 0 0 0 34.176 53.184l0.064 0.416z m-186.112 34.656a122.912 122.912 0 0 0 42.784-21.504c11.2-8.32 20.224-19.296 26.24-31.936 6.56-13.664 9.888-28.704 9.664-43.904 0-22.784-6.272-41.024-18.912-54.72-12.544-13.92-29.664-23.04-51.104-27.36v-2.304c14.4-6.24 26.688-16.448 35.52-29.408 8.384-12.544 12.544-27.008 12.544-43.52 0-14.24-2.944-26.784-9.12-37.6a65.696 65.696 0 0 0-27.936-26.24 117.44 117.44 0 0 0-36.48-12.096A437.312 437.312 0 0 0 526.656 352h-127.552v340.384h143.392c23.84 0 43.52-2.112 59.008-6.4z m-118.112-271.584h7.968c16.544 0 29.472 0.128 38.656 0.352 9.248 0.576 16.864 1.728 23.04 4a26.24 26.24 0 0 1 14.4 13.12c2.656 5.28 4.064 11.072 4.128 16.96 0.16 6.656-1.056 13.248-3.52 19.392a28.064 28.064 0 0 1-15.04 13.696c-7.04 2.912-14.56 4.48-22.208 4.576-9.472 0.32-20.864 0.544-34.24 0.544h-13.184v-72.64z m6.144 215.52h-6.144v-84.8h18.464c12.64 0 24.736 0 36.384 0.256 9.216-0.16 18.432 0.896 27.36 3.2 9.696 2.848 16.544 7.232 20.512 13.12 4 5.92 6.08 14.24 6.08 25.088 0 8.192-1.728 15.488-4.992 21.824-3.232 6.336-9.696 11.392-18.24 15.392-8.544 4-18.24 5.696-28.48 6.272-10.304 0.224-27.392 0.224-51.328 0.224l0.384-0.576z m-378.56-6.016h124.672l23.36 68.416H348.8L224.32 353.728H124.416L0 692.384h87.52l23.488-68.416-0.064-0.032z m62.336-183.552l41.472 121.44h-82.88l41.408-121.44z" }, null, -1 /* CACHED */)
7425
7448
  ]))]))
7426
7449
  }
@@ -7428,13 +7451,13 @@ const DisplayInline = /*#__PURE__*/_export_sfc(_sfc_main$T, [['render',_sfc_rend
7428
7451
 
7429
7452
  const _sfc_main$S = { };
7430
7453
 
7431
- const _hoisted_1$z = {
7454
+ const _hoisted_1$y = {
7432
7455
  xmlns: "http://www.w3.org/2000/svg",
7433
7456
  viewBox: "0 0 1024 1024"
7434
7457
  };
7435
7458
 
7436
7459
  function _sfc_render$a(_ctx, _cache) {
7437
- return (openBlock(), createElementBlock("svg", _hoisted_1$z, [...(_cache[0] || (_cache[0] = [
7460
+ return (openBlock(), createElementBlock("svg", _hoisted_1$y, [...(_cache[0] || (_cache[0] = [
7438
7461
  createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192z m-131.936 158.496c65.984 1.824 109.024 32.512 129.184 92.064l-65.952 15.136-1.856-5.664c-9.984-27.52-30.432-42.112-61.376-43.84-46.72 2.784-71.456 35.296-74.208 97.6 1.856 63.2 26.56 96.64 74.24 100.32 37.536-0.928 59.52-23.36 65.92-67.328L960 559.36l-1.792 7.232c-16.96 63.872-60.352 95.84-130.144 95.84-93.44-4.608-142.464-56.8-147.04-156.672 4.576-98.048 53.6-149.792 147.04-155.296z m-568.928 4.128l114.08 302.336H297.6l-22.016-65.984H160.192L138.24 656.96H64l112.672-302.336h82.464z m278.976 0l7.68 0.32c62.816 3.36 96 27.104 99.52 71.136 0 35.744-19.712 59.552-59.104 71.456 42.144 9.184 65.952 32.544 71.456 70.08 0 59.552-37.568 89.344-112.672 89.344h-148.416v-302.336h141.536z m-4.128 173.152H465.28v81.088h67.328c33.92 0 51.296-13.76 52.224-41.248-2.752-25.632-19.68-38.912-50.848-39.84zM217.92 408.224h-1.376l-0.96 7.36c-1.184 7.232-3.168 13.92-5.92 20.128l-34.336 103.04h87.936l-38.464-104.416-2.624-9.024c-1.6-5.888-3.04-11.584-4.256-17.088z m309.184-2.752H465.28v71.456h61.824c29.344-0.928 44.448-13.76 45.376-38.464-0.96-22.016-16.032-32.992-45.376-32.992z" }, null, -1 /* CACHED */)
7439
7462
  ]))]))
7440
7463
  }
@@ -7442,13 +7465,13 @@ const DisplayInlineBlock = /*#__PURE__*/_export_sfc(_sfc_main$S, [['render',_sfc
7442
7465
 
7443
7466
  const _sfc_main$R = { };
7444
7467
 
7445
- const _hoisted_1$y = {
7468
+ const _hoisted_1$x = {
7446
7469
  xmlns: "http://www.w3.org/2000/svg",
7447
7470
  viewBox: "0 0 1024 1024"
7448
7471
  };
7449
7472
 
7450
7473
  function _sfc_render$9(_ctx, _cache) {
7451
- return (openBlock(), createElementBlock("svg", _hoisted_1$y, [...(_cache[0] || (_cache[0] = [
7474
+ return (openBlock(), createElementBlock("svg", _hoisted_1$x, [...(_cache[0] || (_cache[0] = [
7452
7475
  createElementVNode("path", { d: "M931.37 477.14c-43.94-69.49-93.39-125.03-147.99-166.35L663.31 441.46c8.79 21.36 13.63 44.91 13.63 69.62 0 96.27-73.84 174.32-164.95 174.32-21.63 0-42.28-4.39-61.32-12.47l-94.09 102.52a455.097 455.097 0 0 0 155.41 26.2c172.62 0 312.43-85.54 419.59-256.63 12.83-20.43 12.72-47.45-0.21-67.88zM795.52 127.99L682.24 252.82C627.73 231 570.1 220.04 512.11 220.5c-171.15 0-310.99 85.66-419.48 256.75-12.93 20.43-13.04 47.33-0.2 67.78 46.95 75.15 100.3 133.68 160.01 175.82L131.9 853.65l38.9 42.36 663.6-725.76-38.88-42.26zM519.68 438.37c-3.72-0.59-7.46-0.81-11.27-0.81-45.63 0-82.43 39.03-82.43 87.16 0 4.97 0.42 9.81 1.14 14.54l-57.15 60.14-5.92 8.33c-13.15-24.94-20.5-53.68-20.5-84.28 0-96.3 73.84-174.45 164.95-174.45 27.2 0 52.76 6.93 75.4 19.29l-64.22 70.08z m52.05 135.53c21.74-23.26 27.17-55.48 16.31-81.39l-96.42 103.16c26.59 9.08 58.38 1.48 80.11-21.77z" }, null, -1 /* CACHED */)
7453
7476
  ]))]))
7454
7477
  }
@@ -7456,13 +7479,13 @@ const DisplayNone = /*#__PURE__*/_export_sfc(_sfc_main$R, [['render',_sfc_render
7456
7479
 
7457
7480
  const _sfc_main$Q = { };
7458
7481
 
7459
- const _hoisted_1$x = {
7482
+ const _hoisted_1$w = {
7460
7483
  xmlns: "http://www.w3.org/2000/svg",
7461
7484
  viewBox: "0 0 1024 1024"
7462
7485
  };
7463
7486
 
7464
7487
  function _sfc_render$8(_ctx, _cache) {
7465
- return (openBlock(), createElementBlock("svg", _hoisted_1$x, [...(_cache[0] || (_cache[0] = [
7488
+ return (openBlock(), createElementBlock("svg", _hoisted_1$w, [...(_cache[0] || (_cache[0] = [
7466
7489
  createElementVNode("path", { d: "M896 320H128V0h768v320z m0 320H128v-256h768v256z m-128 192l-256 192-256-192 192-0.032V704h128v128h192z" }, null, -1 /* CACHED */)
7467
7490
  ]))]))
7468
7491
  }
@@ -7470,13 +7493,13 @@ const FlexDirectionColumn = /*#__PURE__*/_export_sfc(_sfc_main$Q, [['render',_sf
7470
7493
 
7471
7494
  const _sfc_main$P = { };
7472
7495
 
7473
- const _hoisted_1$w = {
7496
+ const _hoisted_1$v = {
7474
7497
  xmlns: "http://www.w3.org/2000/svg",
7475
7498
  viewBox: "0 0 1024 1024"
7476
7499
  };
7477
7500
 
7478
7501
  function _sfc_render$7(_ctx, _cache) {
7479
- return (openBlock(), createElementBlock("svg", _hoisted_1$w, [...(_cache[0] || (_cache[0] = [
7502
+ return (openBlock(), createElementBlock("svg", _hoisted_1$v, [...(_cache[0] || (_cache[0] = [
7480
7503
  createElementVNode("path", { d: "M896 704H128v320h768V704z m0-320H128v256h768v-256z m-128-192l-256-192-256 192 192 0.032V320h128V192h192z" }, null, -1 /* CACHED */)
7481
7504
  ]))]))
7482
7505
  }
@@ -7484,13 +7507,13 @@ const FlexDirectionColumnReverse = /*#__PURE__*/_export_sfc(_sfc_main$P, [['rend
7484
7507
 
7485
7508
  const _sfc_main$O = { };
7486
7509
 
7487
- const _hoisted_1$v = {
7510
+ const _hoisted_1$u = {
7488
7511
  xmlns: "http://www.w3.org/2000/svg",
7489
7512
  viewBox: "0 0 1024 1024"
7490
7513
  };
7491
7514
 
7492
7515
  function _sfc_render$6(_ctx, _cache) {
7493
- return (openBlock(), createElementBlock("svg", _hoisted_1$v, [...(_cache[0] || (_cache[0] = [
7516
+ return (openBlock(), createElementBlock("svg", _hoisted_1$u, [...(_cache[0] || (_cache[0] = [
7494
7517
  createElementVNode("path", { d: "M320 128v768H0V128h320z m320 0v768h-256V128h256z m192 128l192 256-192 256-0.032-192H704v-128h128V256z" }, null, -1 /* CACHED */)
7495
7518
  ]))]))
7496
7519
  }
@@ -7498,13 +7521,13 @@ const FlexDirectionRow = /*#__PURE__*/_export_sfc(_sfc_main$O, [['render',_sfc_r
7498
7521
 
7499
7522
  const _sfc_main$N = { };
7500
7523
 
7501
- const _hoisted_1$u = {
7524
+ const _hoisted_1$t = {
7502
7525
  xmlns: "http://www.w3.org/2000/svg",
7503
7526
  viewBox: "0 0 1024 1024"
7504
7527
  };
7505
7528
 
7506
7529
  function _sfc_render$5(_ctx, _cache) {
7507
- return (openBlock(), createElementBlock("svg", _hoisted_1$u, [...(_cache[0] || (_cache[0] = [
7530
+ return (openBlock(), createElementBlock("svg", _hoisted_1$t, [...(_cache[0] || (_cache[0] = [
7508
7531
  createElementVNode("path", { d: "M704 128v768h320V128H704zM384 128v768h256V128h-256zM192 256l-192 256 192 256 0.032-192H320v-128H192V256z" }, null, -1 /* CACHED */)
7509
7532
  ]))]))
7510
7533
  }
@@ -7512,13 +7535,13 @@ const FlexDirectionRowReverse = /*#__PURE__*/_export_sfc(_sfc_main$N, [['render'
7512
7535
 
7513
7536
  const _sfc_main$M = { };
7514
7537
 
7515
- const _hoisted_1$t = {
7538
+ const _hoisted_1$s = {
7516
7539
  xmlns: "http://www.w3.org/2000/svg",
7517
7540
  viewBox: "0 0 1024 1024"
7518
7541
  };
7519
7542
 
7520
7543
  function _sfc_render$4(_ctx, _cache) {
7521
- return (openBlock(), createElementBlock("svg", _hoisted_1$t, [...(_cache[0] || (_cache[0] = [
7544
+ return (openBlock(), createElementBlock("svg", _hoisted_1$s, [...(_cache[0] || (_cache[0] = [
7522
7545
  createElementVNode("path", { d: "M480 1024V0h64v1024h-64z m128-64V64h320v896H608zM96 960V64h320v896H96z" }, null, -1 /* CACHED */)
7523
7546
  ]))]))
7524
7547
  }
@@ -7526,13 +7549,13 @@ const JustifyContentCenter = /*#__PURE__*/_export_sfc(_sfc_main$M, [['render',_s
7526
7549
 
7527
7550
  const _sfc_main$L = { };
7528
7551
 
7529
- const _hoisted_1$s = {
7552
+ const _hoisted_1$r = {
7530
7553
  xmlns: "http://www.w3.org/2000/svg",
7531
7554
  viewBox: "0 0 1024 1024"
7532
7555
  };
7533
7556
 
7534
7557
  function _sfc_render$3(_ctx, _cache) {
7535
- return (openBlock(), createElementBlock("svg", _hoisted_1$s, [...(_cache[0] || (_cache[0] = [
7558
+ return (openBlock(), createElementBlock("svg", _hoisted_1$r, [...(_cache[0] || (_cache[0] = [
7536
7559
  createElementVNode("path", { d: "M416 160H96v704h320V160z m384 0H480v704h320V160z m128-160h-64v1024h64V0z" }, null, -1 /* CACHED */)
7537
7560
  ]))]))
7538
7561
  }
@@ -7540,13 +7563,13 @@ const JustifyContentFlexEnd = /*#__PURE__*/_export_sfc(_sfc_main$L, [['render',_
7540
7563
 
7541
7564
  const _sfc_main$K = { };
7542
7565
 
7543
- const _hoisted_1$r = {
7566
+ const _hoisted_1$q = {
7544
7567
  xmlns: "http://www.w3.org/2000/svg",
7545
7568
  viewBox: "0 0 1024 1024"
7546
7569
  };
7547
7570
 
7548
7571
  function _sfc_render$2(_ctx, _cache) {
7549
- return (openBlock(), createElementBlock("svg", _hoisted_1$r, [...(_cache[0] || (_cache[0] = [
7572
+ return (openBlock(), createElementBlock("svg", _hoisted_1$q, [...(_cache[0] || (_cache[0] = [
7550
7573
  createElementVNode("path", { d: "M608 160h320v704H608V160zM224 160h320v704H224V160zM96 0h64v1024H96V0z" }, null, -1 /* CACHED */)
7551
7574
  ]))]))
7552
7575
  }
@@ -7554,13 +7577,13 @@ const JustifyContentFlexStart = /*#__PURE__*/_export_sfc(_sfc_main$K, [['render'
7554
7577
 
7555
7578
  const _sfc_main$J = { };
7556
7579
 
7557
- const _hoisted_1$q = {
7580
+ const _hoisted_1$p = {
7558
7581
  xmlns: "http://www.w3.org/2000/svg",
7559
7582
  viewBox: "0 0 1024 1024"
7560
7583
  };
7561
7584
 
7562
7585
  function _sfc_render$1(_ctx, _cache) {
7563
- return (openBlock(), createElementBlock("svg", _hoisted_1$q, [...(_cache[0] || (_cache[0] = [
7586
+ return (openBlock(), createElementBlock("svg", _hoisted_1$p, [...(_cache[0] || (_cache[0] = [
7564
7587
  createElementVNode("path", { d: "M320 864H192v160H128v-160H0V160h128V0h64v160h128v704z m704 0h-128v160h-64v-160h-128V160h128V0h64v160h128v704z" }, null, -1 /* CACHED */)
7565
7588
  ]))]))
7566
7589
  }
@@ -7568,13 +7591,13 @@ const JustifyContentSpaceAround = /*#__PURE__*/_export_sfc(_sfc_main$J, [['rende
7568
7591
 
7569
7592
  const _sfc_main$I = { };
7570
7593
 
7571
- const _hoisted_1$p = {
7594
+ const _hoisted_1$o = {
7572
7595
  xmlns: "http://www.w3.org/2000/svg",
7573
7596
  viewBox: "0 0 1024 1024"
7574
7597
  };
7575
7598
 
7576
7599
  function _sfc_render(_ctx, _cache) {
7577
- return (openBlock(), createElementBlock("svg", _hoisted_1$p, [...(_cache[0] || (_cache[0] = [
7600
+ return (openBlock(), createElementBlock("svg", _hoisted_1$o, [...(_cache[0] || (_cache[0] = [
7578
7601
  createElementVNode("path", { d: "M64 1024H0V0h64v1024z m384-160H128V160h320v704z m448 0H576V160h320v704z m128 160h-64V0h64v1024z" }, null, -1 /* CACHED */)
7579
7602
  ]))]))
7580
7603
  }
@@ -7583,7 +7606,9 @@ const JustifyContentSpaceBetween = /*#__PURE__*/_export_sfc(_sfc_main$I, [['rend
7583
7606
  const _sfc_main$H = /* @__PURE__ */ defineComponent({
7584
7607
  __name: "Layout",
7585
7608
  props: {
7586
- values: {}
7609
+ values: {},
7610
+ disabled: { type: Boolean },
7611
+ size: {}
7587
7612
  },
7588
7613
  emits: ["change"],
7589
7614
  setup(__props, { emit: __emit }) {
@@ -7737,14 +7762,18 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
7737
7762
  [
7738
7763
  createVNode(unref(MContainer), {
7739
7764
  config,
7740
- model: _ctx.values,
7765
+ model: __props.values,
7766
+ size: __props.size,
7767
+ disabled: __props.disabled,
7741
7768
  onChange: change
7742
- }, null, 8, ["model"]),
7769
+ }, null, 8, ["model", "size", "disabled"]),
7743
7770
  withDirectives(createVNode(_sfc_main$W, {
7744
- model: _ctx.values,
7771
+ model: __props.values,
7772
+ size: __props.size,
7773
+ disabled: __props.disabled,
7745
7774
  onChange: change
7746
- }, null, 8, ["model"]), [
7747
- [vShow, !["fixed", "absolute"].includes(_ctx.values.position)]
7775
+ }, null, 8, ["model", "size", "disabled"]), [
7776
+ [vShow, !["fixed", "absolute"].includes(__props.values.position)]
7748
7777
  ])
7749
7778
  ],
7750
7779
  64
@@ -7757,7 +7786,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
7757
7786
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
7758
7787
  __name: "Position",
7759
7788
  props: {
7760
- values: {}
7789
+ values: {},
7790
+ disabled: { type: Boolean },
7791
+ size: {}
7761
7792
  },
7762
7793
  emits: ["change"],
7763
7794
  setup(__props, { emit: __emit }) {
@@ -7848,23 +7879,27 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
7848
7879
  return (_ctx, _cache) => {
7849
7880
  return openBlock(), createBlock(unref(MContainer), {
7850
7881
  config,
7851
- model: _ctx.values,
7882
+ model: __props.values,
7883
+ size: __props.size,
7884
+ disabled: __props.disabled,
7852
7885
  onChange: change
7853
- }, null, 8, ["model"]);
7886
+ }, null, 8, ["model", "size", "disabled"]);
7854
7887
  };
7855
7888
  }
7856
7889
  });
7857
7890
 
7858
- const _hoisted_1$o = { class: "border-box-container" };
7859
- const _hoisted_2$a = { class: "border-icon-container" };
7860
- const _hoisted_3$3 = { class: "border-icon-container-row" };
7891
+ const _hoisted_1$n = { class: "border-box-container" };
7892
+ const _hoisted_2$b = { class: "border-icon-container" };
7893
+ const _hoisted_3$4 = { class: "border-icon-container-row" };
7861
7894
  const _hoisted_4$3 = { class: "border-icon-container-row" };
7862
7895
  const _hoisted_5$1 = { class: "border-icon-container-row" };
7863
7896
  const _hoisted_6$1 = { class: "border-value-container" };
7864
7897
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
7865
7898
  __name: "Border",
7866
7899
  props: {
7867
- model: {}
7900
+ model: {},
7901
+ disabled: { type: Boolean },
7902
+ size: {}
7868
7903
  },
7869
7904
  emits: ["change"],
7870
7905
  setup(__props, { emit: __emit }) {
@@ -7914,9 +7949,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
7914
7949
  });
7915
7950
  };
7916
7951
  return (_ctx, _cache) => {
7917
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
7918
- createElementVNode("div", _hoisted_2$a, [
7919
- createElementVNode("div", _hoisted_3$3, [
7952
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
7953
+ createElementVNode("div", _hoisted_2$b, [
7954
+ createElementVNode("div", _hoisted_3$4, [
7920
7955
  createElementVNode(
7921
7956
  "div",
7922
7957
  {
@@ -7976,9 +8011,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
7976
8011
  createElementVNode("div", _hoisted_6$1, [
7977
8012
  createVNode(unref(MContainer), {
7978
8013
  config: config.value,
7979
- model: _ctx.model,
8014
+ model: __props.model,
8015
+ size: __props.size,
8016
+ disabled: __props.disabled,
7980
8017
  onChange: change
7981
- }, null, 8, ["config", "model"])
8018
+ }, null, 8, ["config", "model", "size", "disabled"])
7982
8019
  ])
7983
8020
  ]);
7984
8021
  };
@@ -7988,7 +8025,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
7988
8025
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
7989
8026
  __name: "Border",
7990
8027
  props: {
7991
- values: {}
8028
+ values: {},
8029
+ disabled: { type: Boolean },
8030
+ size: {}
7992
8031
  },
7993
8032
  emits: ["change"],
7994
8033
  setup(__props, { emit: __emit }) {
@@ -8016,13 +8055,17 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
8016
8055
  [
8017
8056
  createVNode(unref(MContainer), {
8018
8057
  config,
8019
- model: _ctx.values,
8058
+ model: __props.values,
8059
+ size: __props.size,
8060
+ disabled: __props.disabled,
8020
8061
  onChange: change
8021
- }, null, 8, ["model"]),
8062
+ }, null, 8, ["model", "size", "disabled"]),
8022
8063
  createVNode(_sfc_main$F, {
8023
- model: _ctx.values,
8064
+ model: __props.values,
8065
+ size: __props.size,
8066
+ disabled: __props.disabled,
8024
8067
  onChange: change
8025
- }, null, 8, ["model"])
8068
+ }, null, 8, ["model", "size", "disabled"])
8026
8069
  ],
8027
8070
  64
8028
8071
  /* STABLE_FRAGMENT */
@@ -8031,7 +8074,6 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
8031
8074
  }
8032
8075
  });
8033
8076
 
8034
- const _hoisted_1$n = { class: "m-fields-style-setter" };
8035
8077
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
8036
8078
  ...{
8037
8079
  name: "MFieldsStyleSetter"
@@ -8085,44 +8127,47 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
8085
8127
  emit("change", v, eventData);
8086
8128
  };
8087
8129
  return (_ctx, _cache) => {
8088
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
8089
- createVNode(unref(TMagicCollapse), { "model-value": collapseValue.value }, {
8090
- default: withCtx(() => [
8091
- (openBlock(), createElementBlock(
8092
- Fragment,
8093
- null,
8094
- renderList(list, (item, index) => {
8095
- return createVNode(unref(TMagicCollapseItem), {
8096
- key: index,
8097
- name: `${index}`
8098
- }, {
8099
- title: withCtx(() => [
8100
- createVNode(_sfc_main$1r, { icon: unref(Grid) }, null, 8, ["icon"]),
8101
- createTextVNode(
8102
- toDisplayString(item.title),
8103
- 1
8104
- /* TEXT */
8105
- )
8106
- ]),
8107
- default: withCtx(() => [
8108
- item.component ? (openBlock(), createBlock(resolveDynamicComponent(item.component), {
8109
- key: 0,
8110
- values: _ctx.model[_ctx.name],
8111
- onChange: change
8112
- }, null, 40, ["values"])) : createCommentVNode("v-if", true)
8113
- ]),
8114
- _: 2
8115
- /* DYNAMIC */
8116
- }, 1032, ["name"]);
8117
- }),
8118
- 64
8119
- /* STABLE_FRAGMENT */
8120
- ))
8121
- ]),
8122
- _: 1
8123
- /* STABLE */
8124
- }, 8, ["model-value"])
8125
- ]);
8130
+ return openBlock(), createBlock(unref(TMagicCollapse), {
8131
+ class: "m-fields-style-setter",
8132
+ "model-value": collapseValue.value
8133
+ }, {
8134
+ default: withCtx(() => [
8135
+ (openBlock(), createElementBlock(
8136
+ Fragment,
8137
+ null,
8138
+ renderList(list, (item, index) => {
8139
+ return createVNode(unref(TMagicCollapseItem), {
8140
+ key: index,
8141
+ name: `${index}`
8142
+ }, {
8143
+ title: withCtx(() => [
8144
+ createVNode(_sfc_main$1r, { icon: unref(Grid) }, null, 8, ["icon"]),
8145
+ createTextVNode(
8146
+ toDisplayString(item.title),
8147
+ 1
8148
+ /* TEXT */
8149
+ )
8150
+ ]),
8151
+ default: withCtx(() => [
8152
+ item.component ? (openBlock(), createBlock(resolveDynamicComponent(item.component), {
8153
+ key: 0,
8154
+ values: __props.model[__props.name],
8155
+ size: __props.size,
8156
+ disabled: __props.disabled,
8157
+ onChange: change
8158
+ }, null, 40, ["values", "size", "disabled"])) : createCommentVNode("v-if", true)
8159
+ ]),
8160
+ _: 2
8161
+ /* DYNAMIC */
8162
+ }, 1032, ["name"]);
8163
+ }),
8164
+ 64
8165
+ /* STABLE_FRAGMENT */
8166
+ ))
8167
+ ]),
8168
+ _: 1
8169
+ /* STABLE */
8170
+ }, 8, ["model-value"]);
8126
8171
  };
8127
8172
  }
8128
8173
  });
@@ -8215,8 +8260,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
8215
8260
  createVNode(unref(TMagicButton), {
8216
8261
  type: "danger",
8217
8262
  icon: unref(Delete),
8218
- disabled: _ctx.disabled,
8219
- size: _ctx.size,
8263
+ disabled: __props.disabled,
8264
+ size: __props.size,
8220
8265
  link: "",
8221
8266
  style: { "padding": "0" }
8222
8267
  }, {
@@ -8244,8 +8289,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
8244
8289
  style: { "padding": "0" },
8245
8290
  type: "danger",
8246
8291
  icon: unref(Close),
8247
- disabled: _ctx.disabled,
8248
- size: _ctx.size,
8292
+ disabled: __props.disabled,
8293
+ size: __props.size,
8249
8294
  link: "",
8250
8295
  onClick: withModifiers(deleteHandler, ["stop"])
8251
8296
  }, null, 8, ["icon", "disabled", "size"])
@@ -8261,8 +8306,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
8261
8306
  createVNode(unref(TMagicButton), {
8262
8307
  link: "",
8263
8308
  style: { "padding": "0", "margin": "0" },
8264
- disabled: _ctx.disabled,
8265
- size: _ctx.size,
8309
+ disabled: __props.disabled,
8310
+ size: __props.size,
8266
8311
  onClick: _cache[0] || (_cache[0] = ($event) => selectNode(val.value)),
8267
8312
  onMouseenter: _cache[1] || (_cache[1] = ($event) => unref(highlight)(val.value)),
8268
8313
  onMouseleave: unhighlight
@@ -8293,8 +8338,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
8293
8338
  createVNode(unref(TMagicButton), {
8294
8339
  link: "",
8295
8340
  style: { "padding": "0", "margin": "0" },
8296
- disabled: _ctx.disabled,
8297
- size: _ctx.size,
8341
+ disabled: __props.disabled,
8342
+ size: __props.size,
8298
8343
  onClick: startSelect
8299
8344
  }, {
8300
8345
  default: withCtx(() => [..._cache[3] || (_cache[3] = [
@@ -8488,8 +8533,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
8488
8533
  createElementVNode(
8489
8534
  "div",
8490
8535
  {
8491
- class: normalizeClass(["m-editor-layout-left", _ctx.leftClass]),
8492
- style: normalizeStyle(`width: ${_ctx.left}px`)
8536
+ class: normalizeClass(["m-editor-layout-left", __props.leftClass]),
8537
+ style: normalizeStyle(`width: ${__props.left}px`)
8493
8538
  },
8494
8539
  [
8495
8540
  renderSlot(_ctx.$slots, "left")
@@ -8505,7 +8550,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
8505
8550
  createElementVNode(
8506
8551
  "div",
8507
8552
  {
8508
- class: normalizeClass(["m-editor-layout-center", _ctx.centerClass]),
8553
+ class: normalizeClass(["m-editor-layout-center", __props.centerClass]),
8509
8554
  style: normalizeStyle(`width: ${center.value}px`)
8510
8555
  },
8511
8556
  [
@@ -8522,8 +8567,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
8522
8567
  createElementVNode(
8523
8568
  "div",
8524
8569
  {
8525
- class: normalizeClass(["m-editor-layout-right", _ctx.rightClass]),
8526
- style: normalizeStyle(`width: ${_ctx.right}px`)
8570
+ class: normalizeClass(["m-editor-layout-right", __props.rightClass]),
8571
+ style: normalizeStyle(`width: ${__props.right}px`)
8527
8572
  },
8528
8573
  [
8529
8574
  renderSlot(_ctx.$slots, "right")
@@ -8547,7 +8592,7 @@ const _hoisted_1$l = {
8547
8592
  key: 1,
8548
8593
  class: "menu-item-text"
8549
8594
  };
8550
- const _hoisted_2$9 = { class: "el-dropdown-link menubar-menu-button" };
8595
+ const _hoisted_2$a = { class: "el-dropdown-link menubar-menu-button" };
8551
8596
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
8552
8597
  ...{
8553
8598
  name: "MEditorToolButton"
@@ -8613,30 +8658,30 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
8613
8658
  "div",
8614
8659
  {
8615
8660
  key: 0,
8616
- class: normalizeClass(["menu-item", `${_ctx.data.type} ${_ctx.data.className || ""}`]),
8617
- onClick: _cache[0] || (_cache[0] = ($event) => clickHandler(_ctx.data, $event)),
8618
- onMousedown: _cache[1] || (_cache[1] = ($event) => mousedownHandler(_ctx.data, $event)),
8619
- onMouseup: _cache[2] || (_cache[2] = ($event) => mouseupHandler(_ctx.data, $event))
8661
+ class: normalizeClass(["menu-item", `${__props.data.type} ${__props.data.className || ""}`]),
8662
+ onClick: _cache[0] || (_cache[0] = ($event) => clickHandler(__props.data, $event)),
8663
+ onMousedown: _cache[1] || (_cache[1] = ($event) => mousedownHandler(__props.data, $event)),
8664
+ onMouseup: _cache[2] || (_cache[2] = ($event) => mouseupHandler(__props.data, $event))
8620
8665
  },
8621
8666
  [
8622
- _ctx.data.type === "divider" ? (openBlock(), createBlock(unref(TMagicDivider), {
8667
+ __props.data.type === "divider" ? (openBlock(), createBlock(unref(TMagicDivider), {
8623
8668
  key: 0,
8624
- direction: _ctx.data.direction || "vertical"
8625
- }, null, 8, ["direction"])) : _ctx.data.type === "text" ? (openBlock(), createElementBlock(
8669
+ direction: __props.data.direction || "vertical"
8670
+ }, null, 8, ["direction"])) : __props.data.type === "text" ? (openBlock(), createElementBlock(
8626
8671
  "div",
8627
8672
  _hoisted_1$l,
8628
- toDisplayString(_ctx.data.text),
8673
+ toDisplayString(__props.data.text),
8629
8674
  1
8630
8675
  /* TEXT */
8631
- )) : _ctx.data.type === "button" ? (openBlock(), createElementBlock(
8676
+ )) : __props.data.type === "button" ? (openBlock(), createElementBlock(
8632
8677
  Fragment,
8633
8678
  { key: 2 },
8634
8679
  [
8635
- _ctx.data.tooltip ? (openBlock(), createBlock(unref(TMagicTooltip), {
8680
+ __props.data.tooltip ? (openBlock(), createBlock(unref(TMagicTooltip), {
8636
8681
  key: 0,
8637
8682
  effect: "dark",
8638
8683
  placement: "bottom-start",
8639
- content: _ctx.data.tooltip
8684
+ content: __props.data.tooltip
8640
8685
  }, {
8641
8686
  default: withCtx(() => [
8642
8687
  createVNode(unref(TMagicButton), {
@@ -8645,14 +8690,14 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
8645
8690
  disabled: disabled.value
8646
8691
  }, {
8647
8692
  default: withCtx(() => [
8648
- _ctx.data.icon ? (openBlock(), createBlock(_sfc_main$1r, {
8693
+ __props.data.icon ? (openBlock(), createBlock(_sfc_main$1r, {
8649
8694
  key: 0,
8650
- icon: _ctx.data.icon
8695
+ icon: __props.data.icon
8651
8696
  }, null, 8, ["icon"])) : createCommentVNode("v-if", true),
8652
8697
  createElementVNode(
8653
8698
  "span",
8654
8699
  null,
8655
- toDisplayString(_ctx.data.text),
8700
+ toDisplayString(__props.data.text),
8656
8701
  1
8657
8702
  /* TEXT */
8658
8703
  )
@@ -8668,17 +8713,17 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
8668
8713
  size: "small",
8669
8714
  link: "",
8670
8715
  disabled: disabled.value,
8671
- title: _ctx.data.text
8716
+ title: __props.data.text
8672
8717
  }, {
8673
8718
  default: withCtx(() => [
8674
- _ctx.data.icon ? (openBlock(), createBlock(_sfc_main$1r, {
8719
+ __props.data.icon ? (openBlock(), createBlock(_sfc_main$1r, {
8675
8720
  key: 0,
8676
- icon: _ctx.data.icon
8721
+ icon: __props.data.icon
8677
8722
  }, null, 8, ["icon"])) : createCommentVNode("v-if", true),
8678
8723
  createElementVNode(
8679
8724
  "span",
8680
8725
  null,
8681
- toDisplayString(_ctx.data.text),
8726
+ toDisplayString(__props.data.text),
8682
8727
  1
8683
8728
  /* TEXT */
8684
8729
  )
@@ -8689,22 +8734,22 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
8689
8734
  ],
8690
8735
  64
8691
8736
  /* STABLE_FRAGMENT */
8692
- )) : _ctx.data.type === "dropdown" ? (openBlock(), createBlock(unref(TMagicDropdown), {
8737
+ )) : __props.data.type === "dropdown" ? (openBlock(), createBlock(unref(TMagicDropdown), {
8693
8738
  key: 3,
8694
8739
  trigger: "click",
8695
8740
  disabled: disabled.value,
8696
8741
  onCommand: dropdownHandler
8697
8742
  }, {
8698
8743
  dropdown: withCtx(() => [
8699
- _ctx.data.items && _ctx.data.items.length ? (openBlock(), createBlock(unref(TMagicDropdownMenu), { key: 0 }, {
8744
+ __props.data.items && __props.data.items.length ? (openBlock(), createBlock(unref(TMagicDropdownMenu), { key: 0 }, {
8700
8745
  default: withCtx(() => [
8701
8746
  (openBlock(true), createElementBlock(
8702
8747
  Fragment,
8703
8748
  null,
8704
- renderList(_ctx.data.items, (subItem, index) => {
8749
+ renderList(__props.data.items, (subItem, index) => {
8705
8750
  return openBlock(), createBlock(unref(TMagicDropdownItem), {
8706
8751
  key: index,
8707
- command: { data: _ctx.data, subItem }
8752
+ command: { data: __props.data, subItem }
8708
8753
  }, {
8709
8754
  default: withCtx(() => [
8710
8755
  createTextVNode(
@@ -8726,9 +8771,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
8726
8771
  })) : createCommentVNode("v-if", true)
8727
8772
  ]),
8728
8773
  default: withCtx(() => [
8729
- createElementVNode("span", _hoisted_2$9, [
8774
+ createElementVNode("span", _hoisted_2$a, [
8730
8775
  createTextVNode(
8731
- toDisplayString(_ctx.data.text),
8776
+ toDisplayString(__props.data.text),
8732
8777
  1
8733
8778
  /* TEXT */
8734
8779
  ),
@@ -8743,9 +8788,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
8743
8788
  ]),
8744
8789
  _: 1
8745
8790
  /* STABLE */
8746
- }, 8, ["disabled"])) : _ctx.data.type === "component" ? (openBlock(), createBlock(
8747
- resolveDynamicComponent(_ctx.data.component),
8748
- mergeProps({ key: 4 }, _ctx.data.props || {}, toHandlers(_ctx.data.listeners || {})),
8791
+ }, 8, ["disabled"])) : __props.data.type === "component" ? (openBlock(), createBlock(
8792
+ resolveDynamicComponent(__props.data.component),
8793
+ mergeProps({ key: 4 }, __props.data.props || {}, toHandlers(__props.data.listeners || {})),
8749
8794
  null,
8750
8795
  16
8751
8796
  /* FULL_PROPS */
@@ -8763,7 +8808,7 @@ const _hoisted_1$k = {
8763
8808
  id: "m-editor-page-bar-add-icon",
8764
8809
  class: "m-editor-page-bar-item m-editor-page-bar-item-icon"
8765
8810
  };
8766
- const _hoisted_2$8 = {
8811
+ const _hoisted_2$9 = {
8767
8812
  key: 1,
8768
8813
  style: { "width": "21px" }
8769
8814
  };
@@ -8814,7 +8859,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
8814
8859
  _: 1
8815
8860
  /* STABLE */
8816
8861
  })
8817
- ])) : (openBlock(), createElementBlock("div", _hoisted_2$8));
8862
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$9));
8818
8863
  };
8819
8864
  }
8820
8865
  });
@@ -8823,7 +8868,7 @@ const _hoisted_1$j = {
8823
8868
  class: "m-editor-page-bar",
8824
8869
  ref: "pageBar"
8825
8870
  };
8826
- const _hoisted_2$7 = {
8871
+ const _hoisted_2$8 = {
8827
8872
  key: 0,
8828
8873
  class: "m-editor-page-bar-items",
8829
8874
  ref: "itemsContainer"
@@ -8952,9 +8997,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
8952
8997
  _hoisted_1$j,
8953
8998
  [
8954
8999
  renderSlot(_ctx.$slots, "prepend"),
8955
- _ctx.length ? (openBlock(), createElementBlock(
9000
+ __props.length ? (openBlock(), createElementBlock(
8956
9001
  "div",
8957
- _hoisted_2$7,
9002
+ _hoisted_2$8,
8958
9003
  [
8959
9004
  renderSlot(_ctx.$slots, "default")
8960
9005
  ],
@@ -8988,6 +9033,8 @@ const _hoisted_1$i = {
8988
9033
  id: "m-editor-page-bar-list-icon",
8989
9034
  class: "m-editor-page-bar-item m-editor-page-bar-item-icon"
8990
9035
  };
9036
+ const _hoisted_2$7 = { class: "page-bar-popover-wrapper" };
9037
+ const _hoisted_3$3 = { class: "page-bar-popover-inner" };
8991
9038
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
8992
9039
  ...{
8993
9040
  name: "MEditorPageList"
@@ -9022,25 +9069,27 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
9022
9069
  })
9023
9070
  ]),
9024
9071
  default: withCtx(() => [
9025
- createElementVNode("div", null, [
9026
- renderSlot(_ctx.$slots, "page-list-popover", { list: _ctx.list }, () => [
9027
- (openBlock(true), createElementBlock(
9028
- Fragment,
9029
- null,
9030
- renderList(_ctx.list, (item, index) => {
9031
- return openBlock(), createBlock(_sfc_main$z, {
9032
- data: {
9033
- type: "button",
9034
- text: item.devconfig?.tabName || item.name || item.id,
9035
- className: item.id === page.value?.id ? "active" : "",
9036
- handler: () => switchPage(item.id)
9037
- },
9038
- key: index
9039
- }, null, 8, ["data"]);
9040
- }),
9041
- 128
9042
- /* KEYED_FRAGMENT */
9043
- ))
9072
+ createElementVNode("div", _hoisted_2$7, [
9073
+ createElementVNode("div", _hoisted_3$3, [
9074
+ renderSlot(_ctx.$slots, "page-list-popover", { list: __props.list }, () => [
9075
+ (openBlock(true), createElementBlock(
9076
+ Fragment,
9077
+ null,
9078
+ renderList(__props.list, (item, index) => {
9079
+ return openBlock(), createBlock(_sfc_main$z, {
9080
+ data: {
9081
+ type: "button",
9082
+ text: item.devconfig?.tabName || item.name || item.id,
9083
+ className: item.id === page.value?.id ? "active" : "",
9084
+ handler: () => switchPage(item.id)
9085
+ },
9086
+ key: index
9087
+ }, null, 8, ["data"]);
9088
+ }),
9089
+ 128
9090
+ /* KEYED_FRAGMENT */
9091
+ ))
9092
+ ])
9044
9093
  ])
9045
9094
  ])
9046
9095
  ]),
@@ -9198,7 +9247,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
9198
9247
  return openBlock(), createElementBlock("div", _hoisted_1$g, [
9199
9248
  createVNode(_sfc_main$x, {
9200
9249
  ref: "pageBarScrollContainer",
9201
- "page-bar-sort-options": _ctx.pageBarSortOptions,
9250
+ "page-bar-sort-options": __props.pageBarSortOptions,
9202
9251
  length: list.value.length
9203
9252
  }, {
9204
9253
  prepend: withCtx(() => [
@@ -9337,7 +9386,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
9337
9386
  /* CACHED */
9338
9387
  ))
9339
9388
  ]),
9340
- !_ctx.disabledPageFragment ? (openBlock(), createElementBlock("div", {
9389
+ !__props.disabledPageFragment ? (openBlock(), createElementBlock("div", {
9341
9390
  key: 0,
9342
9391
  class: "m-editor-empty-button",
9343
9392
  onClick: _cache[1] || (_cache[1] = ($event) => clickHandler(unref(NodeType).PAGE_FRAGMENT))
@@ -9462,13 +9511,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
9462
9511
  ]),
9463
9512
  center: withCtx(() => [
9464
9513
  page.value ? renderSlot(_ctx.$slots, "workspace", { key: 0 }) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
9465
- createVNode(_sfc_main$t, { "disabled-page-fragment": _ctx.disabledPageFragment }, null, 8, ["disabled-page-fragment"])
9514
+ createVNode(_sfc_main$t, { "disabled-page-fragment": __props.disabledPageFragment }, null, 8, ["disabled-page-fragment"])
9466
9515
  ]),
9467
9516
  renderSlot(_ctx.$slots, "page-bar", {}, () => [
9468
9517
  createVNode(_sfc_main$u, {
9469
- "disabled-page-fragment": _ctx.disabledPageFragment,
9470
- "page-bar-sort-options": _ctx.pageBarSortOptions,
9471
- "filter-function": _ctx.pageFilterFunction
9518
+ "disabled-page-fragment": __props.disabledPageFragment,
9519
+ "page-bar-sort-options": __props.pageBarSortOptions,
9520
+ "filter-function": __props.pageFilterFunction
9472
9521
  }, {
9473
9522
  "page-bar-add-button": withCtx(() => [
9474
9523
  renderSlot(_ctx.$slots, "page-bar-add-button")
@@ -9680,7 +9729,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
9680
9729
  "div",
9681
9730
  {
9682
9731
  class: "m-editor-nav-menu",
9683
- style: normalizeStyle({ height: `${_ctx.height}px` }),
9732
+ style: normalizeStyle({ height: `${__props.height}px` }),
9684
9733
  ref: "navMenu"
9685
9734
  },
9686
9735
  [
@@ -9788,12 +9837,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
9788
9837
  ref: "configForm",
9789
9838
  class: normalizeClass(propsPanelSize.value),
9790
9839
  "popper-class": `m-editor-props-panel-popper ${propsPanelSize.value}`,
9791
- "label-width": _ctx.labelWidth,
9792
- "label-position": _ctx.labelPosition,
9840
+ "label-width": __props.labelWidth,
9841
+ "label-position": __props.labelPosition,
9793
9842
  size: propsPanelSize.value,
9794
- "init-values": _ctx.values,
9795
- config: _ctx.config,
9796
- "extend-state": _ctx.extendState,
9843
+ "init-values": __props.values,
9844
+ config: __props.config,
9845
+ "extend-state": __props.extendState,
9797
9846
  onChange: submit,
9798
9847
  onError: errorHandler
9799
9848
  }, null, 8, ["class", "popper-class", "label-width", "label-position", "size", "init-values", "config", "extend-state"])
@@ -9801,7 +9850,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
9801
9850
  _: 1
9802
9851
  /* STABLE */
9803
9852
  }),
9804
- !_ctx.disabledShowSrc ? (openBlock(), createBlock(unref(TMagicButton), {
9853
+ !__props.disabledShowSrc ? (openBlock(), createBlock(unref(TMagicButton), {
9805
9854
  key: 0,
9806
9855
  class: "m-editor-props-panel-src-icon",
9807
9856
  circle: "",
@@ -9819,7 +9868,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
9819
9868
  key: 1,
9820
9869
  class: "m-editor-props-panel-src-code",
9821
9870
  height: `${unref(editorContentHeight)}px`,
9822
- "init-values": _ctx.codeValueKey ? _ctx.values[_ctx.codeValueKey] : _ctx.values,
9871
+ "init-values": __props.codeValueKey ? __props.values[__props.codeValueKey] : __props.values,
9823
9872
  options: unref(codeOptions),
9824
9873
  parse: true,
9825
9874
  onSave: saveCode
@@ -10003,8 +10052,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
10003
10052
  class: normalizeClass(["m-editor-props-property-panel", { "show-style-panel": unref(showStylePanel) }]),
10004
10053
  config: curFormConfig.value,
10005
10054
  values: values.value,
10006
- disabledShowSrc: _ctx.disabledShowSrc,
10007
- extendState: _ctx.extendState,
10055
+ disabledShowSrc: __props.disabledShowSrc,
10056
+ extendState: __props.extendState,
10008
10057
  onSubmit: submit,
10009
10058
  onSubmitError: errorHandler,
10010
10059
  onFormError: errorHandler,
@@ -10022,8 +10071,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
10022
10071
  "code-value-key": "style",
10023
10072
  config: styleFormConfig,
10024
10073
  values: values.value,
10025
- disabledShowSrc: _ctx.disabledShowSrc,
10026
- extendState: _ctx.extendState,
10074
+ disabledShowSrc: __props.disabledShowSrc,
10075
+ extendState: __props.extendState,
10027
10076
  onSubmit: submit,
10028
10077
  onSubmitError: errorHandler,
10029
10078
  onFormError: errorHandler
@@ -10216,12 +10265,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
10216
10265
  (openBlock(true), createElementBlock(
10217
10266
  Fragment,
10218
10267
  null,
10219
- renderList(_ctx.menuData, (item, index) => {
10268
+ renderList(__props.menuData, (item, index) => {
10220
10269
  return openBlock(), createBlock(_sfc_main$z, {
10221
10270
  "event-type": "mouseup",
10222
10271
  ref_for: true,
10223
10272
  ref: "buttons",
10224
- class: normalizeClass({ active: _ctx.active && item.id === _ctx.active }),
10273
+ class: normalizeClass({ active: __props.active && item.id === __props.active }),
10225
10274
  data: item,
10226
10275
  key: index,
10227
10276
  onMouseup: clickHandler,
@@ -10237,7 +10286,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
10237
10286
  key: 0,
10238
10287
  class: "sub-menu",
10239
10288
  ref: "subMenu",
10240
- active: _ctx.active,
10289
+ active: __props.active,
10241
10290
  "menu-data": subMenuData.value,
10242
10291
  "is-sub-menu": true,
10243
10292
  onHide: hide
@@ -10367,10 +10416,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
10367
10416
  return withDirectives((openBlock(), createElementBlock("div", {
10368
10417
  class: "m-editor-tree-node",
10369
10418
  draggable: draggable.value,
10370
- "data-node-id": _ctx.data.id,
10371
- "data-parent-id": _ctx.parent?.id,
10372
- "data-parents-id": _ctx.parentsId,
10373
- "data-is-container": Array.isArray(_ctx.data.items),
10419
+ "data-node-id": __props.data.id,
10420
+ "data-parent-id": __props.parent?.id,
10421
+ "data-parents-id": __props.parentsId,
10422
+ "data-is-container": Array.isArray(__props.data.items),
10374
10423
  onDragstart: handleDragStart,
10375
10424
  onDragleave: handleDragLeave,
10376
10425
  onDragend: handleDragEnd
@@ -10379,7 +10428,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
10379
10428
  "div",
10380
10429
  {
10381
10430
  class: normalizeClass(["tree-node", { selected: selected.value, expanded: expanded.value }]),
10382
- style: normalizeStyle(`padding-left: ${_ctx.indent}px`),
10431
+ style: normalizeStyle(`padding-left: ${__props.indent}px`),
10383
10432
  onContextmenu: nodeContextmenuHandler,
10384
10433
  onMouseenter: mouseenterHandler
10385
10434
  },
@@ -10394,18 +10443,18 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
10394
10443
  class: "tree-node-content",
10395
10444
  onClick: nodeClickHandler
10396
10445
  }, [
10397
- renderSlot(_ctx.$slots, "tree-node-content", { data: _ctx.data }, () => [
10446
+ renderSlot(_ctx.$slots, "tree-node-content", { data: __props.data }, () => [
10398
10447
  createElementVNode("div", _hoisted_2$3, [
10399
- renderSlot(_ctx.$slots, "tree-node-label", { data: _ctx.data }, () => [
10448
+ renderSlot(_ctx.$slots, "tree-node-label", { data: __props.data }, () => [
10400
10449
  createTextVNode(
10401
- toDisplayString(`${_ctx.data.name} (${_ctx.data.id})`),
10450
+ toDisplayString(`${__props.data.name} (${__props.data.id})`),
10402
10451
  1
10403
10452
  /* TEXT */
10404
10453
  )
10405
10454
  ])
10406
10455
  ]),
10407
10456
  createElementVNode("div", _hoisted_3$1, [
10408
- renderSlot(_ctx.$slots, "tree-node-tool", { data: _ctx.data })
10457
+ renderSlot(_ctx.$slots, "tree-node-tool", { data: __props.data })
10409
10458
  ])
10410
10459
  ])
10411
10460
  ])
@@ -10417,14 +10466,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
10417
10466
  (openBlock(true), createElementBlock(
10418
10467
  Fragment,
10419
10468
  null,
10420
- renderList(_ctx.data.items, (item) => {
10469
+ renderList(__props.data.items, (item) => {
10421
10470
  return openBlock(), createBlock(_component_TreeNode, {
10422
10471
  key: item.id,
10423
10472
  data: item,
10424
- parent: _ctx.data,
10425
- parentsId: [..._ctx.parentsId, _ctx.data.id],
10426
- "node-status-map": _ctx.nodeStatusMap,
10427
- indent: _ctx.indent + _ctx.nextLevelIndentIncrement
10473
+ parent: __props.data,
10474
+ parentsId: [...__props.parentsId, __props.data.id],
10475
+ "node-status-map": __props.nodeStatusMap,
10476
+ indent: __props.indent + __props.nextLevelIndentIncrement
10428
10477
  }, {
10429
10478
  "tree-node-content": withCtx(({ data: nodeData }) => [
10430
10479
  renderSlot(_ctx.$slots, "tree-node-content", { data: nodeData })
@@ -10435,9 +10484,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
10435
10484
  "tree-node-tool": withCtx(({ data: nodeData }) => [
10436
10485
  renderSlot(_ctx.$slots, "tree-node-tool", { data: nodeData })
10437
10486
  ]),
10438
- _: 2
10439
- /* DYNAMIC */
10440
- }, 1032, ["data", "parent", "parentsId", "node-status-map", "indent"]);
10487
+ _: 3
10488
+ /* FORWARDED */
10489
+ }, 8, ["data", "parent", "parentsId", "node-status-map", "indent"]);
10441
10490
  }),
10442
10491
  128
10443
10492
  /* KEYED_FRAGMENT */
@@ -10481,16 +10530,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
10481
10530
  onDragover: handleDragOver
10482
10531
  },
10483
10532
  [
10484
- _ctx.data?.length ? (openBlock(true), createElementBlock(
10533
+ __props.data?.length ? (openBlock(true), createElementBlock(
10485
10534
  Fragment,
10486
10535
  { key: 0 },
10487
- renderList(_ctx.data, (item) => {
10536
+ renderList(__props.data, (item) => {
10488
10537
  return openBlock(), createBlock(_sfc_main$m, {
10489
10538
  key: item.id,
10490
10539
  data: item,
10491
- indent: _ctx.indent,
10492
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
10493
- "node-status-map": _ctx.nodeStatusMap
10540
+ indent: __props.indent,
10541
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
10542
+ "node-status-map": __props.nodeStatusMap
10494
10543
  }, {
10495
10544
  "tree-node-content": withCtx(({ data: nodeData }) => [
10496
10545
  renderSlot(_ctx.$slots, "tree-node-content", { data: nodeData })
@@ -10501,9 +10550,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
10501
10550
  "tree-node-tool": withCtx(({ data: nodeData }) => [
10502
10551
  renderSlot(_ctx.$slots, "tree-node-tool", { data: nodeData })
10503
10552
  ]),
10504
- _: 2
10505
- /* DYNAMIC */
10506
- }, 1032, ["data", "indent", "next-level-indent-increment", "node-status-map"]);
10553
+ _: 3
10554
+ /* FORWARDED */
10555
+ }, 8, ["data", "indent", "next-level-indent-increment", "node-status-map"]);
10507
10556
  }),
10508
10557
  128
10509
10558
  /* KEYED_FRAGMENT */
@@ -10511,7 +10560,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
10511
10560
  createElementVNode(
10512
10561
  "p",
10513
10562
  null,
10514
- toDisplayString(_ctx.emptyText),
10563
+ toDisplayString(__props.emptyText),
10515
10564
  1
10516
10565
  /* TEXT */
10517
10566
  )
@@ -10633,8 +10682,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
10633
10682
  return openBlock(), createBlock(_sfc_main$l, {
10634
10683
  data: codeList.value,
10635
10684
  "node-status-map": unref(nodeStatusMap),
10636
- indent: _ctx.indent,
10637
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
10685
+ indent: __props.indent,
10686
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
10638
10687
  onNodeClick: clickHandler,
10639
10688
  onNodeContextmenu: nodeContentMenuHandler
10640
10689
  }, {
@@ -10850,9 +10899,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
10850
10899
  createCommentVNode(" 代码块列表 "),
10851
10900
  createVNode(_sfc_main$k, {
10852
10901
  ref: "codeBlockList",
10853
- "custom-error": _ctx.customError,
10854
- indent: _ctx.indent,
10855
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
10902
+ "custom-error": __props.customError,
10903
+ indent: __props.indent,
10904
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
10856
10905
  onEdit: unref(editCode),
10857
10906
  onRemove: unref(deleteCode),
10858
10907
  onNodeContextmenu: unref(nodeContentMenuHandler)
@@ -10990,16 +11039,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
10990
11039
  "onUpdate:width": _cache[1] || (_cache[1] = ($event) => width.value = $event),
10991
11040
  height: unref(editorHeight),
10992
11041
  "onUpdate:height": _cache[2] || (_cache[2] = ($event) => isRef(editorHeight) ? editorHeight.value = $event : null),
10993
- title: _ctx.title,
11042
+ title: __props.title,
10994
11043
  position: unref(boxPosition)
10995
11044
  }, {
10996
11045
  body: withCtx(() => [
10997
11046
  createVNode(unref(MFormBox), {
10998
11047
  "label-width": "80px",
10999
- title: _ctx.title,
11048
+ title: __props.title,
11000
11049
  config: dataSourceConfig.value,
11001
11050
  values: initValues.value,
11002
- disabled: _ctx.disabled,
11051
+ disabled: __props.disabled,
11003
11052
  style: { "height": "100%" },
11004
11053
  onSubmit: submitHandler,
11005
11054
  onError: errorHandler
@@ -11115,8 +11164,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11115
11164
  return openBlock(), createBlock(_sfc_main$l, {
11116
11165
  data: list.value,
11117
11166
  "node-status-map": unref(nodeStatusMap),
11118
- indent: _ctx.indent,
11119
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
11167
+ indent: __props.indent,
11168
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
11120
11169
  onNodeClick: clickHandler,
11121
11170
  onNodeContextmenu: nodeContentMenuHandler
11122
11171
  }, {
@@ -11381,8 +11430,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
11381
11430
  createCommentVNode(" 数据源列表 "),
11382
11431
  createVNode(_sfc_main$h, {
11383
11432
  ref: "dataSourceList",
11384
- indent: _ctx.indent,
11385
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
11433
+ indent: __props.indent,
11434
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
11386
11435
  onEdit: unref(editHandler),
11387
11436
  onRemove: removeHandler,
11388
11437
  onNodeContextmenu: unref(nodeContentMenuHandler)
@@ -11648,11 +11697,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
11648
11697
  });
11649
11698
  };
11650
11699
  return (_ctx, _cache) => {
11651
- return _ctx.data.type !== "page" ? (openBlock(), createElementBlock(
11700
+ return __props.data.type !== "page" ? (openBlock(), createElementBlock(
11652
11701
  Fragment,
11653
11702
  { key: 0 },
11654
11703
  [
11655
- _ctx.data.visible === false ? (openBlock(), createBlock(_sfc_main$1r, {
11704
+ __props.data.visible === false ? (openBlock(), createBlock(_sfc_main$1r, {
11656
11705
  key: 0,
11657
11706
  icon: unref(Hide),
11658
11707
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => setNodeVisible(true), ["stop"])),
@@ -12195,8 +12244,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
12195
12244
  ref: "tree",
12196
12245
  data: nodeData.value,
12197
12246
  "node-status-map": unref(nodeStatusMap),
12198
- indent: _ctx.indent,
12199
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
12247
+ indent: __props.indent,
12248
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
12200
12249
  onNodeDragover: unref(handleDragOver),
12201
12250
  onNodeDragstart: unref(handleDragStart),
12202
12251
  onNodeDragleave: unref(handleDragLeave),
@@ -12222,8 +12271,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
12222
12271
  (openBlock(), createBlock(Teleport, { to: "body" }, [
12223
12272
  createVNode(_sfc_main$e, {
12224
12273
  ref: "menu",
12225
- "layer-content-menu": _ctx.layerContentMenu,
12226
- "custom-content-menu": _ctx.customContentMenu,
12274
+ "layer-content-menu": __props.layerContentMenu,
12275
+ "custom-content-menu": __props.customContentMenu,
12227
12276
  onCollapseAll: collapseAllHandler
12228
12277
  }, null, 8, ["layer-content-menu", "custom-content-menu"])
12229
12278
  ]))
@@ -12569,7 +12618,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
12569
12618
  Fragment,
12570
12619
  null,
12571
12620
  [
12572
- _ctx.data.type === "tabs" && _ctx.data.items.length ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
12621
+ __props.data.type === "tabs" && __props.data.items.length ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
12573
12622
  createElementVNode("div", _hoisted_2$1, [
12574
12623
  (openBlock(true), createElementBlock(
12575
12624
  Fragment,
@@ -12901,7 +12950,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
12901
12950
  "div",
12902
12951
  {
12903
12952
  ref: "bar",
12904
- class: normalizeClass(["m-editor-scroll-bar", _ctx.isHorizontal ? "horizontal" : "vertical"])
12953
+ class: normalizeClass(["m-editor-scroll-bar", __props.isHorizontal ? "horizontal" : "vertical"])
12905
12954
  },
12906
12955
  [
12907
12956
  createElementVNode(
@@ -13017,19 +13066,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
13017
13066
  /* STYLE */
13018
13067
  ),
13019
13068
  renderSlot(_ctx.$slots, "content"),
13020
- scrollHeight.value > _ctx.wrapHeight ? (openBlock(), createBlock(_sfc_main$9, {
13069
+ scrollHeight.value > __props.wrapHeight ? (openBlock(), createBlock(_sfc_main$9, {
13021
13070
  key: 0,
13022
13071
  "scroll-size": scrollHeight.value,
13023
13072
  pos: vOffset.value,
13024
- size: _ctx.wrapHeight,
13073
+ size: __props.wrapHeight,
13025
13074
  onScroll: vScrollHandler
13026
13075
  }, null, 8, ["scroll-size", "pos", "size"])) : createCommentVNode("v-if", true),
13027
- scrollWidth.value > _ctx.wrapWidth ? (openBlock(), createBlock(_sfc_main$9, {
13076
+ scrollWidth.value > __props.wrapWidth ? (openBlock(), createBlock(_sfc_main$9, {
13028
13077
  key: 1,
13029
13078
  "is-horizontal": true,
13030
13079
  "scroll-size": scrollWidth.value,
13031
13080
  pos: hOffset.value,
13032
- size: _ctx.wrapWidth,
13081
+ size: __props.wrapWidth,
13033
13082
  onScroll: hScrollHandler
13034
13083
  }, null, 8, ["scroll-size", "pos", "size"])) : createCommentVNode("v-if", true)
13035
13084
  ],
@@ -13616,13 +13665,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
13616
13665
  onClick: _cache[0] || (_cache[0] = ($event) => stageWrapRef.value?.container?.focus())
13617
13666
  }, {
13618
13667
  content: withCtx(() => [
13619
- !_ctx.disabledStageOverlay ? (openBlock(), createBlock(_sfc_main$6, { key: 0 })) : createCommentVNode("v-if", true),
13668
+ !__props.disabledStageOverlay ? (openBlock(), createBlock(_sfc_main$6, { key: 0 })) : createCommentVNode("v-if", true),
13620
13669
  (openBlock(), createBlock(Teleport, { to: "body" }, [
13621
13670
  createVNode(_sfc_main$4, {
13622
13671
  ref: "menu",
13623
13672
  "is-multi-select": isMultiSelect.value,
13624
- "stage-content-menu": _ctx.stageContentMenu,
13625
- "custom-content-menu": _ctx.customContentMenu
13673
+ "stage-content-menu": __props.stageContentMenu,
13674
+ "custom-content-menu": __props.customContentMenu
13626
13675
  }, null, 8, ["is-multi-select", "stage-content-menu", "custom-content-menu"])
13627
13676
  ]))
13628
13677
  ]),
@@ -13735,9 +13784,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
13735
13784
  page.value && (unref(stageOptions)?.render || unref(stageOptions)?.runtimeUrl) ? (openBlock(), createBlock(_sfc_main$3, {
13736
13785
  key: 0,
13737
13786
  "stage-options": unref(stageOptions),
13738
- "disabled-stage-overlay": _ctx.disabledStageOverlay,
13739
- "stage-content-menu": _ctx.stageContentMenu,
13740
- "custom-content-menu": _ctx.customContentMenu
13787
+ "disabled-stage-overlay": __props.disabledStageOverlay,
13788
+ "stage-content-menu": __props.stageContentMenu,
13789
+ "custom-content-menu": __props.customContentMenu
13741
13790
  }, null, 8, ["stage-options", "disabled-stage-overlay", "stage-content-menu", "custom-content-menu"])) : createCommentVNode("v-if", true)
13742
13791
  ]),
13743
13792
  renderSlot(_ctx.$slots, "workspace-content")
@@ -16552,16 +16601,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16552
16601
  __expose(services);
16553
16602
  return (_ctx, _cache) => {
16554
16603
  return openBlock(), createBlock(_sfc_main$s, {
16555
- "disabled-page-fragment": _ctx.disabledPageFragment,
16556
- "page-bar-sort-options": _ctx.pageBarSortOptions,
16557
- "page-filter-function": _ctx.pageFilterFunction
16604
+ "disabled-page-fragment": __props.disabledPageFragment,
16605
+ "page-bar-sort-options": __props.pageBarSortOptions,
16606
+ "page-filter-function": __props.pageFilterFunction
16558
16607
  }, {
16559
16608
  header: withCtx(() => [
16560
16609
  renderSlot(_ctx.$slots, "header")
16561
16610
  ]),
16562
16611
  nav: withCtx(() => [
16563
16612
  renderSlot(_ctx.$slots, "nav", { editorService: unref(editorService) }, () => [
16564
- createVNode(_sfc_main$r, { data: _ctx.menu }, null, 8, ["data"])
16613
+ createVNode(_sfc_main$r, { data: __props.menu }, null, 8, ["data"])
16565
16614
  ])
16566
16615
  ]),
16567
16616
  "content-before": withCtx(() => [
@@ -16573,11 +16622,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16573
16622
  sidebar: withCtx(() => [
16574
16623
  renderSlot(_ctx.$slots, "sidebar", { editorService: unref(editorService) }, () => [
16575
16624
  createVNode(_sfc_main$a, {
16576
- data: _ctx.sidebar,
16577
- "layer-content-menu": _ctx.layerContentMenu,
16578
- "custom-content-menu": _ctx.customContentMenu,
16579
- indent: _ctx.treeIndent,
16580
- "next-level-indent-increment": _ctx.treeNextLevelIndentIncrement
16625
+ data: __props.sidebar,
16626
+ "layer-content-menu": __props.layerContentMenu,
16627
+ "custom-content-menu": __props.customContentMenu,
16628
+ indent: __props.treeIndent,
16629
+ "next-level-indent-increment": __props.treeNextLevelIndentIncrement
16581
16630
  }, {
16582
16631
  "layer-panel-header": withCtx(() => [
16583
16632
  renderSlot(_ctx.$slots, "layer-panel-header")
@@ -16626,9 +16675,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16626
16675
  workspace: withCtx(() => [
16627
16676
  renderSlot(_ctx.$slots, "workspace", { editorService: unref(editorService) }, () => [
16628
16677
  createVNode(_sfc_main$1, {
16629
- "disabled-stage-overlay": _ctx.disabledStageOverlay,
16630
- "stage-content-menu": _ctx.stageContentMenu,
16631
- "custom-content-menu": _ctx.customContentMenu
16678
+ "disabled-stage-overlay": __props.disabledStageOverlay,
16679
+ "stage-content-menu": __props.stageContentMenu,
16680
+ "custom-content-menu": __props.customContentMenu
16632
16681
  }, {
16633
16682
  stage: withCtx(() => [
16634
16683
  renderSlot(_ctx.$slots, "stage")
@@ -16644,8 +16693,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16644
16693
  "props-panel": withCtx(() => [
16645
16694
  renderSlot(_ctx.$slots, "props-panel", {}, () => [
16646
16695
  createVNode(_sfc_main$p, {
16647
- "extend-state": _ctx.extendFormState,
16648
- "disabled-show-src": _ctx.disabledShowSrc,
16696
+ "extend-state": __props.extendFormState,
16697
+ "disabled-show-src": __props.disabledShowSrc,
16649
16698
  onMounted: propsPanelMountedHandler,
16650
16699
  onUnmounted: propsPanelUnmountedHandler,
16651
16700
  onFormError: propsPanelFormErrorHandler,