@tmagic/editor 1.6.0 → 1.7.0-beta.0

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.
@@ -7,13 +7,13 @@ export { default as formPlugin } from '@tmagic/form';
7
7
  import tablePlugin__default, { MagicTable } from '@tmagic/table';
8
8
  export * from '@tmagic/table';
9
9
  export { default as tablePlugin } from '@tmagic/table';
10
- import { defineComponent, createBlock, createElementBlock, openBlock, unref, withCtx, createVNode, createElementVNode, normalizeClass, resolveDynamicComponent, toRaw, ref, useTemplateRef, watch, onMounted, onBeforeUnmount, onUnmounted, Teleport, normalizeStyle, createCommentVNode, nextTick, computed, reactive, resolveComponent, inject, Fragment, renderList, mergeProps, mergeModels, useModel, provide, renderSlot, toDisplayString, shallowReactive, createTextVNode, isRef, createStaticVNode, watchEffect, markRaw, withDirectives, vModelText, vShow, shallowRef, withModifiers, toHandlers, createSlots, getCurrentInstance, Transition, resolveDirective, mergeDefaults } from 'vue';
10
+ import { defineComponent, createBlock, createElementBlock, openBlock, unref, withCtx, createVNode, createElementVNode, normalizeClass, resolveDynamicComponent, toRaw, ref, useTemplateRef, watch, onMounted, onBeforeUnmount, onUnmounted, Teleport, normalizeStyle, createCommentVNode, nextTick, computed, reactive, resolveComponent, inject, Fragment, renderList, mergeProps, mergeModels, useModel, provide, renderSlot, toDisplayString, shallowReactive, createTextVNode, isRef, createStaticVNode, watchEffect, markRaw, withDirectives, vShow, shallowRef, withModifiers, createSlots, toHandlers, getCurrentInstance, Transition, resolveDirective, mergeDefaults } from 'vue';
11
11
  import { Edit, FullScreen, View, Close, Coin, Delete, Plus, Grid, ArrowDown, ArrowLeftBold, ArrowRightBold, Files, Search, DocumentCopy, CaretBottom, Memo, ScaleToOriginal, ZoomOut, ZoomIn, Right, Back, Document, Sugar, ArrowRight, CopyDocument, Hide, EditPen, List, Goods, CloseBold, Top, Bottom } from '@element-plus/icons-vue';
12
12
  import { throttle, isEmpty, isObject, cloneDeep, mergeWith, uniq, get, map, has, pick, keys } from 'lodash-es';
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,
@@ -2150,6 +2161,7 @@ class Editor extends BaseService {
2150
2161
  }
2151
2162
  /**
2152
2163
  * 更新节点
2164
+ * update后会触发依赖收集,收集完后会掉stage.update方法
2153
2165
  * @param config 新的节点配置,配置中需要有id信息
2154
2166
  * @returns 更新后的节点配置
2155
2167
  */
@@ -3240,9 +3252,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
3240
3252
  return openBlock(), createBlock(unref(MForm), {
3241
3253
  ref: "form",
3242
3254
  config: codeParamsConfig.value,
3243
- "init-values": _ctx.model,
3244
- disabled: _ctx.disabled,
3245
- size: _ctx.size,
3255
+ "init-values": __props.model,
3256
+ disabled: __props.disabled,
3257
+ size: __props.size,
3246
3258
  "watch-props": false,
3247
3259
  onChange: onParamsChangeHandler
3248
3260
  }, null, 8, ["config", "init-values", "disabled", "size"]);
@@ -3250,8 +3262,8 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
3250
3262
  }
3251
3263
  });
3252
3264
 
3253
- const _hoisted_1$_ = { class: "m-fields-code-select-col" };
3254
- const _hoisted_2$m = { class: "code-select-container" };
3265
+ const _hoisted_1$Z = { class: "m-fields-code-select-col" };
3266
+ const _hoisted_2$n = { class: "code-select-container" };
3255
3267
  const _sfc_main$1l = /* @__PURE__ */ defineComponent({
3256
3268
  ...{
3257
3269
  name: "MFieldsCodeSelectCol"
@@ -3351,22 +3363,22 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
3351
3363
  eventBus?.emit("edit-code", id);
3352
3364
  };
3353
3365
  return (_ctx, _cache) => {
3354
- return openBlock(), createElementBlock("div", _hoisted_1$_, [
3355
- createElementVNode("div", _hoisted_2$m, [
3366
+ return openBlock(), createElementBlock("div", _hoisted_1$Z, [
3367
+ createElementVNode("div", _hoisted_2$n, [
3356
3368
  createCommentVNode(" 代码块下拉框 "),
3357
3369
  createVNode(unref(MContainer), {
3358
3370
  class: "select",
3359
3371
  config: selectConfig,
3360
- model: _ctx.model,
3361
- size: _ctx.size,
3372
+ model: __props.model,
3373
+ size: __props.size,
3362
3374
  onChange: onCodeIdChangeHandler
3363
3375
  }, null, 8, ["model", "size"]),
3364
3376
  createCommentVNode(" 查看/编辑按钮 "),
3365
- _ctx.model[_ctx.name] && hasCodeBlockSidePanel.value ? (openBlock(), createBlock(unref(TMagicButton), {
3377
+ __props.model[__props.name] && hasCodeBlockSidePanel.value ? (openBlock(), createBlock(unref(TMagicButton), {
3366
3378
  key: 0,
3367
3379
  class: "m-fields-select-action-button",
3368
- size: _ctx.size,
3369
- onClick: _cache[0] || (_cache[0] = ($event) => editCode(_ctx.model[_ctx.name]))
3380
+ size: __props.size,
3381
+ onClick: _cache[0] || (_cache[0] = ($event) => editCode(__props.model[__props.name]))
3370
3382
  }, {
3371
3383
  default: withCtx(() => [
3372
3384
  createVNode(_sfc_main$1r, {
@@ -3380,9 +3392,9 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
3380
3392
  createCommentVNode(" 参数填写框 "),
3381
3393
  paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$1m, {
3382
3394
  name: "params",
3383
- key: _ctx.model[_ctx.name],
3384
- model: _ctx.model,
3385
- size: _ctx.size,
3395
+ key: __props.model[__props.name],
3396
+ model: __props.model,
3397
+ size: __props.size,
3386
3398
  "params-config": paramsConfig.value,
3387
3399
  onChange: onParamsChangeHandler
3388
3400
  }, null, 8, ["model", "size", "params-config"])) : createCommentVNode("v-if", true)
@@ -3445,12 +3457,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
3445
3457
  };
3446
3458
  return (_ctx, _cache) => {
3447
3459
  return openBlock(), createBlock(unref(TMagicSelect), {
3448
- modelValue: _ctx.model[_ctx.name],
3449
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
3460
+ modelValue: __props.model[__props.name],
3461
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
3450
3462
  clearable: "",
3451
3463
  filterable: "",
3452
- size: _ctx.size,
3453
- disabled: _ctx.disabled,
3464
+ size: __props.size,
3465
+ disabled: __props.disabled,
3454
3466
  onChange: fieldChangeHandler
3455
3467
  }, {
3456
3468
  default: withCtx(() => [
@@ -3490,7 +3502,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
3490
3502
  }
3491
3503
  });
3492
3504
 
3493
- const _hoisted_1$Z = {
3505
+ const _hoisted_1$Y = {
3494
3506
  ref: "title",
3495
3507
  class: "m-editor-float-box-title"
3496
3508
  };
@@ -3638,13 +3650,13 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
3638
3650
  [
3639
3651
  createElementVNode(
3640
3652
  "div",
3641
- _hoisted_1$Z,
3653
+ _hoisted_1$Y,
3642
3654
  [
3643
3655
  renderSlot(_ctx.$slots, "title", {}, () => [
3644
3656
  createElementVNode(
3645
3657
  "span",
3646
3658
  null,
3647
- toDisplayString(_ctx.title),
3659
+ toDisplayString(__props.title),
3648
3660
  1
3649
3661
  /* TEXT */
3650
3662
  )
@@ -4187,8 +4199,8 @@ const useNodeStatus$1 = (nodeData) => {
4187
4199
  };
4188
4200
  };
4189
4201
 
4190
- const _hoisted_1$Y = { class: "m-editor-data-source-fields" };
4191
- const _hoisted_2$l = { class: "m-editor-data-source-fields-footer" };
4202
+ const _hoisted_1$X = { class: "m-editor-data-source-fields" };
4203
+ const _hoisted_2$m = { class: "m-editor-data-source-fields-footer" };
4192
4204
  const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4193
4205
  ...{
4194
4206
  name: "MFieldsDataSourceFields"
@@ -4454,16 +4466,16 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4454
4466
  const parentFloating = inject("parentFloating", ref(null));
4455
4467
  const { boxPosition, calcBoxPosition } = useNextFloatBoxPosition(uiService, parentFloating);
4456
4468
  return (_ctx, _cache) => {
4457
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
4469
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
4458
4470
  createVNode(unref(MagicTable), {
4459
- data: _ctx.model[_ctx.name],
4471
+ data: __props.model[__props.name],
4460
4472
  columns: fieldColumns,
4461
4473
  border: true
4462
4474
  }, null, 8, ["data"]),
4463
- createElementVNode("div", _hoisted_2$l, [
4475
+ createElementVNode("div", _hoisted_2$m, [
4464
4476
  createVNode(unref(TMagicButton), {
4465
4477
  size: "small",
4466
- disabled: _ctx.disabled,
4478
+ disabled: __props.disabled,
4467
4479
  plain: "",
4468
4480
  onClick: _cache[0] || (_cache[0] = ($event) => newFromJsonHandler())
4469
4481
  }, {
@@ -4480,7 +4492,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4480
4492
  createVNode(unref(TMagicButton), {
4481
4493
  size: "small",
4482
4494
  type: "primary",
4483
- disabled: _ctx.disabled,
4495
+ disabled: __props.disabled,
4484
4496
  plain: "",
4485
4497
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
4486
4498
  }, {
@@ -4511,8 +4523,8 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4511
4523
  title: fieldTitle.value,
4512
4524
  config: dataSourceFieldsConfig,
4513
4525
  values: fieldValues.value,
4514
- parentValues: _ctx.model[_ctx.name],
4515
- disabled: _ctx.disabled,
4526
+ parentValues: __props.model[__props.name],
4527
+ disabled: __props.disabled,
4516
4528
  onSubmit: fieldChange
4517
4529
  }, null, 8, ["title", "values", "parentValues", "disabled"])
4518
4530
  ]),
@@ -4533,7 +4545,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4533
4545
  createVNode(unref(MFormBox), {
4534
4546
  config: jsonFromConfig,
4535
4547
  values: jsonFromValues.value,
4536
- disabled: _ctx.disabled,
4548
+ disabled: __props.disabled,
4537
4549
  onSubmit: addFromJsonFromChange
4538
4550
  }, null, 8, ["values", "disabled"])
4539
4551
  ]),
@@ -4545,7 +4557,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
4545
4557
  }
4546
4558
  });
4547
4559
 
4548
- const _hoisted_1$X = { class: "m-editor-data-source-field-select" };
4560
+ const _hoisted_1$W = { class: "m-editor-data-source-field-select" };
4549
4561
  const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4550
4562
  __name: "FieldSelect",
4551
4563
  props: /* @__PURE__ */ mergeModels({
@@ -4627,8 +4639,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4627
4639
  eventBus?.emit("edit-data-source", removeDataSourceFieldPrefix(id));
4628
4640
  };
4629
4641
  return (_ctx, _cache) => {
4630
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
4631
- _ctx.checkStrictly ? (openBlock(), createElementBlock(
4642
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
4643
+ __props.checkStrictly ? (openBlock(), createElementBlock(
4632
4644
  Fragment,
4633
4645
  { key: 0 },
4634
4646
  [
@@ -4636,8 +4648,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4636
4648
  "model-value": selectDataSourceId.value,
4637
4649
  clearable: "",
4638
4650
  filterable: "",
4639
- size: _ctx.size,
4640
- disabled: _ctx.disabled,
4651
+ size: __props.size,
4652
+ disabled: __props.disabled,
4641
4653
  onChange: dsChangeHandler
4642
4654
  }, {
4643
4655
  default: withCtx(() => [
@@ -4679,11 +4691,11 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4679
4691
  "model-value": selectFieldsId.value,
4680
4692
  clearable: "",
4681
4693
  filterable: "",
4682
- size: _ctx.size,
4683
- disabled: _ctx.disabled,
4694
+ size: __props.size,
4695
+ disabled: __props.disabled,
4684
4696
  options: fieldsOptions.value,
4685
4697
  props: {
4686
- checkStrictly: _ctx.checkStrictly
4698
+ checkStrictly: __props.checkStrictly
4687
4699
  },
4688
4700
  onChange: fieldChangeHandler
4689
4701
  }, null, 8, ["model-value", "size", "disabled", "options", "props"])
@@ -4695,11 +4707,11 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4695
4707
  clearable: "",
4696
4708
  filterable: "",
4697
4709
  "model-value": modelValue.value,
4698
- disabled: _ctx.disabled,
4699
- size: _ctx.size,
4710
+ disabled: __props.disabled,
4711
+ size: __props.size,
4700
4712
  options: cascaderOptions.value,
4701
4713
  props: {
4702
- checkStrictly: _ctx.checkStrictly
4714
+ checkStrictly: __props.checkStrictly
4703
4715
  },
4704
4716
  onChange: onChangeHandler
4705
4717
  }, null, 8, ["model-value", "disabled", "size", "options", "props"])),
@@ -4710,7 +4722,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4710
4722
  default: withCtx(() => [
4711
4723
  createVNode(unref(TMagicButton), {
4712
4724
  class: "m-fields-select-action-button",
4713
- size: _ctx.size,
4725
+ size: __props.size,
4714
4726
  onClick: _cache[0] || (_cache[0] = ($event) => editHandler(selectDataSourceId.value))
4715
4727
  }, {
4716
4728
  default: withCtx(() => [
@@ -4730,7 +4742,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
4730
4742
  }
4731
4743
  });
4732
4744
 
4733
- const _hoisted_1$W = { class: "m-fields-data-source-field-select" };
4745
+ const _hoisted_1$V = { class: "m-fields-data-source-field-select" };
4734
4746
  const _sfc_main$1g = /* @__PURE__ */ defineComponent({
4735
4747
  ...{
4736
4748
  name: "MFieldsDataSourceFieldSelect"
@@ -4833,39 +4845,38 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
4833
4845
  }
4834
4846
  };
4835
4847
  return (_ctx, _cache) => {
4836
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
4837
- !disabledDataSource.value && (showDataSourceFieldSelect.value || !_ctx.config.fieldConfig) ? (openBlock(), createBlock(_sfc_main$1h, {
4848
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
4849
+ !disabledDataSource.value && (showDataSourceFieldSelect.value || !__props.config.fieldConfig) ? (openBlock(), createBlock(_sfc_main$1h, {
4838
4850
  key: 0,
4839
- "model-value": _ctx.model[_ctx.name],
4840
- disabled: _ctx.disabled,
4841
- size: _ctx.size,
4842
- value: _ctx.config.value,
4851
+ "model-value": __props.model[__props.name],
4852
+ disabled: __props.disabled,
4853
+ size: __props.size,
4854
+ value: __props.config.value,
4843
4855
  checkStrictly: checkStrictly.value,
4844
- dataSourceFieldType: _ctx.config.dataSourceFieldType,
4856
+ dataSourceFieldType: __props.config.dataSourceFieldType,
4845
4857
  onChange: onChangeHandler
4846
4858
  }, null, 8, ["model-value", "disabled", "size", "value", "checkStrictly", "dataSourceFieldType"])) : (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
4847
4859
  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,
4860
+ config: __props.config.fieldConfig,
4861
+ model: __props.model,
4862
+ name: __props.name,
4863
+ disabled: __props.disabled,
4864
+ size: __props.size,
4865
+ "last-values": __props.lastValues,
4866
+ "init-values": __props.initValues,
4867
+ values: __props.values,
4868
+ prop: __props.prop,
4857
4869
  onChange: onChangeHandler
4858
4870
  }, null, 40, ["config", "model", "name", "disabled", "size", "last-values", "init-values", "values", "prop"])),
4859
- _ctx.config.fieldConfig && !disabledDataSource.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
4871
+ __props.config.fieldConfig && !disabledDataSource.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
4860
4872
  key: 2,
4861
4873
  disabled: showDataSourceFieldSelect.value,
4862
4874
  content: "选择数据源"
4863
4875
  }, {
4864
4876
  default: withCtx(() => [
4865
4877
  createVNode(unref(TMagicButton), {
4866
- style: { "margin-left": "5px" },
4867
4878
  type: showDataSourceFieldSelect.value ? "primary" : "default",
4868
- size: _ctx.size,
4879
+ size: __props.size,
4869
4880
  onClick: _cache[0] || (_cache[0] = ($event) => showDataSourceFieldSelect.value = !showDataSourceFieldSelect.value)
4870
4881
  }, {
4871
4882
  default: withCtx(() => [
@@ -4883,9 +4894,9 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
4883
4894
  }
4884
4895
  });
4885
4896
 
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" };
4897
+ const _hoisted_1$U = { style: { "display": "flex", "flex-direction": "column", "line-height": "1.2em" } };
4898
+ const _hoisted_2$l = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
4899
+ const _hoisted_3$8 = { class: "el-input__inner t-input__inner" };
4889
4900
  const _sfc_main$1f = /* @__PURE__ */ defineComponent({
4890
4901
  ...{
4891
4902
  name: "MFieldsDataSourceInput"
@@ -5067,11 +5078,11 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5067
5078
  key: 0,
5068
5079
  modelValue: state.value,
5069
5080
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.value = $event),
5070
- disabled: _ctx.disabled,
5071
- size: _ctx.size,
5081
+ disabled: __props.disabled,
5082
+ size: __props.size,
5072
5083
  clearable: true,
5073
5084
  onChange: changeHandler
5074
- }, null, 8, ["modelValue", "disabled", "size"])) : _ctx.disabled || isFocused.value ? (openBlock(), createBlock(resolveDynamicComponent(unref(getDesignConfig)("components")?.autocomplete.component || "el-autocomplete"), mergeProps(
5085
+ }, null, 8, ["modelValue", "disabled", "size"])) : __props.disabled || isFocused.value ? (openBlock(), createBlock(resolveDynamicComponent(unref(getDesignConfig)("components")?.autocomplete.component || "el-autocomplete"), mergeProps(
5075
5086
  {
5076
5087
  key: 1,
5077
5088
  class: "tmagic-design-auto-complete",
@@ -5080,8 +5091,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5080
5091
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.value = $event)
5081
5092
  },
5082
5093
  unref(getDesignConfig)("components")?.autocomplete.props({
5083
- disabled: _ctx.disabled,
5084
- size: _ctx.size,
5094
+ disabled: __props.disabled,
5095
+ size: __props.size,
5085
5096
  fetchSuggestions: querySearch,
5086
5097
  triggerOnFocus: false,
5087
5098
  clearable: true
@@ -5097,7 +5108,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5097
5108
  createVNode(_sfc_main$1r, { icon: unref(Coin) }, null, 8, ["icon"])
5098
5109
  ]),
5099
5110
  default: withCtx(({ item }) => [
5100
- createElementVNode("div", _hoisted_1$V, [
5111
+ createElementVNode("div", _hoisted_1$U, [
5101
5112
  createElementVNode(
5102
5113
  "div",
5103
5114
  null,
@@ -5107,7 +5118,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5107
5118
  ),
5108
5119
  createElementVNode(
5109
5120
  "span",
5110
- _hoisted_2$k,
5121
+ _hoisted_2$l,
5111
5122
  toDisplayString(item.value),
5112
5123
  1
5113
5124
  /* TEXT */
@@ -5120,7 +5131,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5120
5131
  "div",
5121
5132
  {
5122
5133
  key: 2,
5123
- class: normalizeClass(`tmagic-data-source-input-text el-input t-input t-size-${_ctx.size?.[0]} el-input--${_ctx.size}`),
5134
+ class: normalizeClass(`tmagic-data-source-input-text el-input t-input t-size-${__props.size?.[0]} el-input--${__props.size}`),
5124
5135
  onMouseup: mouseupHandler
5125
5136
  },
5126
5137
  [
@@ -5130,7 +5141,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5130
5141
  class: normalizeClass(`tmagic-data-source-input-text-wrapper el-input__wrapper ${isFocused.value ? " is-focus" : ""}`)
5131
5142
  },
5132
5143
  [
5133
- createElementVNode("div", _hoisted_3$7, [
5144
+ createElementVNode("div", _hoisted_3$8, [
5134
5145
  (openBlock(true), createElementBlock(
5135
5146
  Fragment,
5136
5147
  null,
@@ -5151,7 +5162,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5151
5162
  )) : createCommentVNode("v-if", true),
5152
5163
  item.type === "var" ? (openBlock(), createBlock(unref(TMagicTag), {
5153
5164
  key: index,
5154
- size: _ctx.size
5165
+ size: __props.size
5155
5166
  }, {
5156
5167
  default: withCtx(() => [
5157
5168
  createTextVNode(
@@ -5188,9 +5199,9 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
5188
5199
  }
5189
5200
  });
5190
5201
 
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" } };
5202
+ const _hoisted_1$T = { style: { "display": "flex", "margin-bottom": "10px" } };
5203
+ const _hoisted_2$k = { style: { "flex": "1" } };
5204
+ const _hoisted_3$7 = { style: { "flex": "1" } };
5194
5205
  const _hoisted_4$5 = { class: "dialog-footer" };
5195
5206
  const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5196
5207
  ...{
@@ -5385,7 +5396,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5385
5396
  "onUpdate:width": _cache[2] || (_cache[2] = ($event) => width.value = $event),
5386
5397
  height: unref(codeBlockEditorHeight),
5387
5398
  "onUpdate:height": _cache[3] || (_cache[3] = ($event) => isRef(codeBlockEditorHeight) ? codeBlockEditorHeight.value = $event : null),
5388
- title: _ctx.content.name ? `${_ctx.disabled ? "查看" : "编辑"}${_ctx.content.name}` : "新增代码",
5399
+ title: __props.content.name ? `${__props.disabled ? "查看" : "编辑"}${__props.content.name}` : "新增代码",
5389
5400
  position: unref(boxPosition),
5390
5401
  "before-close": beforeClose
5391
5402
  }, {
@@ -5396,10 +5407,10 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5396
5407
  ref: formBox,
5397
5408
  "label-width": "80px",
5398
5409
  "close-on-press-escape": false,
5399
- title: _ctx.content.name,
5410
+ title: __props.content.name,
5400
5411
  config: functionConfig.value,
5401
- values: _ctx.content,
5402
- disabled: _ctx.disabled,
5412
+ values: __props.content,
5413
+ disabled: __props.disabled,
5403
5414
  style: { "height": "100%" },
5404
5415
  onChange: changeHandler,
5405
5416
  onSubmit: submitForm,
@@ -5407,7 +5418,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5407
5418
  onClosed: closedHandler
5408
5419
  }, {
5409
5420
  left: withCtx(() => [
5410
- !_ctx.disabled ? (openBlock(), createBlock(unref(TMagicButton), {
5421
+ !__props.disabled ? (openBlock(), createBlock(unref(TMagicButton), {
5411
5422
  key: 0,
5412
5423
  type: "primary",
5413
5424
  link: "",
@@ -5473,8 +5484,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5473
5484
  ])
5474
5485
  ]),
5475
5486
  default: withCtx(() => [
5476
- createElementVNode("div", _hoisted_1$U, [
5477
- createElementVNode("div", _hoisted_2$j, [
5487
+ createElementVNode("div", _hoisted_1$T, [
5488
+ createElementVNode("div", _hoisted_2$k, [
5478
5489
  createVNode(unref(TMagicTag), {
5479
5490
  size: "small",
5480
5491
  type: "info"
@@ -5490,7 +5501,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5490
5501
  /* STABLE */
5491
5502
  })
5492
5503
  ]),
5493
- createElementVNode("div", _hoisted_3$6, [
5504
+ createElementVNode("div", _hoisted_3$7, [
5494
5505
  createVNode(unref(TMagicTag), {
5495
5506
  size: "small",
5496
5507
  type: "success"
@@ -5512,7 +5523,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5512
5523
  type: "diff",
5513
5524
  language: "json",
5514
5525
  "disabled-full-screen": true,
5515
- initValues: _ctx.content.content,
5526
+ initValues: __props.content.content,
5516
5527
  modifiedValues: formBox.value?.form?.values.content,
5517
5528
  height: `${unref(windowRect).height - 150}px`
5518
5529
  }, null, 8, ["initValues", "modifiedValues", "height"])
@@ -5529,8 +5540,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5529
5540
  }
5530
5541
  });
5531
5542
 
5532
- const _hoisted_1$T = { class: "m-editor-data-source-methods" };
5533
- const _hoisted_2$i = { class: "m-editor-data-source-methods-footer" };
5543
+ const _hoisted_1$S = { class: "m-editor-data-source-methods" };
5544
+ const _hoisted_2$j = { class: "m-editor-data-source-methods-footer" };
5534
5545
  const _sfc_main$1d = /* @__PURE__ */ defineComponent({
5535
5546
  ...{
5536
5547
  name: "MFieldsDataSourceMethods"
@@ -5648,17 +5659,17 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
5648
5659
  codeBlockEditorRef.value?.hide();
5649
5660
  };
5650
5661
  return (_ctx, _cache) => {
5651
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
5662
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
5652
5663
  createVNode(unref(MagicTable), {
5653
- data: _ctx.model[_ctx.name],
5664
+ data: __props.model[__props.name],
5654
5665
  columns: methodColumns,
5655
5666
  border: true
5656
5667
  }, null, 8, ["data"]),
5657
- createElementVNode("div", _hoisted_2$i, [
5668
+ createElementVNode("div", _hoisted_2$j, [
5658
5669
  createVNode(unref(TMagicButton), {
5659
5670
  size: "small",
5660
5671
  type: "primary",
5661
- disabled: _ctx.disabled,
5672
+ disabled: __props.disabled,
5662
5673
  plain: "",
5663
5674
  onClick: createCodeHandler
5664
5675
  }, {
@@ -5676,10 +5687,10 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
5676
5687
  codeConfig.value ? (openBlock(), createBlock(_sfc_main$1e, {
5677
5688
  key: 0,
5678
5689
  ref: "codeBlockEditor",
5679
- disabled: _ctx.disabled,
5690
+ disabled: __props.disabled,
5680
5691
  content: codeConfig.value,
5681
5692
  "is-data-source": true,
5682
- "data-source-type": _ctx.model.type,
5693
+ "data-source-type": __props.model.type,
5683
5694
  onSubmit: submitCodeHandler
5684
5695
  }, null, 8, ["disabled", "content", "data-source-type"])) : createCommentVNode("v-if", true)
5685
5696
  ]);
@@ -5687,8 +5698,8 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
5687
5698
  }
5688
5699
  });
5689
5700
 
5690
- const _hoisted_1$S = { class: "m-fields-data-source-method-select" };
5691
- const _hoisted_2$h = { class: "data-source-method-select-container" };
5701
+ const _hoisted_1$R = { class: "m-fields-data-source-method-select" };
5702
+ const _hoisted_2$i = { class: "data-source-method-select-container" };
5692
5703
  const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5693
5704
  ...{
5694
5705
  name: "MFieldsDataSourceMethodSelect"
@@ -5774,23 +5785,23 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5774
5785
  eventBus?.emit("edit-data-source", id);
5775
5786
  };
5776
5787
  return (_ctx, _cache) => {
5777
- return openBlock(), createElementBlock("div", _hoisted_1$S, [
5778
- createElementVNode("div", _hoisted_2$h, [
5788
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
5789
+ createElementVNode("div", _hoisted_2$i, [
5779
5790
  createVNode(unref(MContainer), {
5780
5791
  class: "select",
5781
5792
  config: cascaderConfig.value,
5782
- model: _ctx.model,
5783
- size: _ctx.size,
5793
+ model: __props.model,
5794
+ size: __props.size,
5784
5795
  onChange: onChangeHandler
5785
5796
  }, null, 8, ["config", "model", "size"]),
5786
- _ctx.model[_ctx.name] && isCustomMethod.value && hasDataSourceSidePanel.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
5797
+ __props.model[__props.name] && isCustomMethod.value && hasDataSourceSidePanel.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
5787
5798
  key: 0,
5788
5799
  content: notEditable.value ? "查看" : "编辑"
5789
5800
  }, {
5790
5801
  default: withCtx(() => [
5791
5802
  createVNode(unref(TMagicButton), {
5792
5803
  class: "m-fields-select-action-button",
5793
- size: _ctx.size,
5804
+ size: __props.size,
5794
5805
  onClick: editCodeHandler
5795
5806
  }, {
5796
5807
  default: withCtx(() => [
@@ -5809,9 +5820,9 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5809
5820
  paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$1m, {
5810
5821
  key: 0,
5811
5822
  name: "params",
5812
- model: _ctx.model,
5813
- size: _ctx.size,
5814
- disabled: _ctx.disabled,
5823
+ model: __props.model,
5824
+ size: __props.size,
5825
+ disabled: __props.disabled,
5815
5826
  "params-config": paramsConfig.value,
5816
5827
  onChange: onChangeHandler
5817
5828
  }, null, 8, ["model", "size", "disabled", "params-config"])) : createCommentVNode("v-if", true)
@@ -5820,8 +5831,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5820
5831
  }
5821
5832
  });
5822
5833
 
5823
- const _hoisted_1$R = { class: "m-editor-data-source-fields" };
5824
- const _hoisted_2$g = { class: "m-editor-data-source-fields-footer" };
5834
+ const _hoisted_1$Q = { class: "m-editor-data-source-fields" };
5835
+ const _hoisted_2$h = { class: "m-editor-data-source-fields-footer" };
5825
5836
  const _sfc_main$1b = /* @__PURE__ */ defineComponent({
5826
5837
  ...{
5827
5838
  name: "MFieldsDataSourceMocks"
@@ -6026,16 +6037,16 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
6026
6037
  const parentFloating = inject("parentFloating", ref(null));
6027
6038
  const { boxPosition, calcBoxPosition } = useNextFloatBoxPosition(uiService, parentFloating);
6028
6039
  return (_ctx, _cache) => {
6029
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
6040
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
6030
6041
  createVNode(unref(MagicTable), {
6031
- data: _ctx.model[_ctx.name],
6042
+ data: __props.model[__props.name],
6032
6043
  columns
6033
6044
  }, null, 8, ["data"]),
6034
- createElementVNode("div", _hoisted_2$g, [
6045
+ createElementVNode("div", _hoisted_2$h, [
6035
6046
  createVNode(unref(TMagicButton), {
6036
6047
  size: "small",
6037
6048
  type: "primary",
6038
- disabled: _ctx.disabled,
6049
+ disabled: __props.disabled,
6039
6050
  plain: "",
6040
6051
  onClick: _cache[0] || (_cache[0] = ($event) => newHandler())
6041
6052
  }, {
@@ -6065,8 +6076,8 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
6065
6076
  "label-width": "120px",
6066
6077
  config: formConfig,
6067
6078
  values: formValues.value,
6068
- parentValues: _ctx.model[_ctx.name],
6069
- disabled: _ctx.disabled,
6079
+ parentValues: __props.model[__props.name],
6080
+ disabled: __props.disabled,
6070
6081
  onSubmit: formChangeHandler
6071
6082
  }, null, 8, ["values", "parentValues", "disabled"])
6072
6083
  ]),
@@ -6078,7 +6089,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
6078
6089
  }
6079
6090
  });
6080
6091
 
6081
- const _hoisted_1$Q = { class: "m-fields-data-source-select" };
6092
+ const _hoisted_1$P = { class: "m-fields-data-source-select" };
6082
6093
  const _sfc_main$1a = /* @__PURE__ */ defineComponent({
6083
6094
  ...{
6084
6095
  name: "MFieldsDataSourceSelect"
@@ -6136,25 +6147,25 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
6136
6147
  eventBus?.emit("edit-data-source", id);
6137
6148
  };
6138
6149
  return (_ctx, _cache) => {
6139
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
6150
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
6140
6151
  createVNode(unref(MSelect), {
6141
- model: _ctx.model,
6142
- name: _ctx.name,
6143
- size: _ctx.size,
6144
- prop: _ctx.prop,
6145
- disabled: _ctx.disabled,
6152
+ model: __props.model,
6153
+ name: __props.name,
6154
+ size: __props.size,
6155
+ prop: __props.prop,
6156
+ disabled: __props.disabled,
6146
6157
  config: selectConfig.value,
6147
- "last-values": _ctx.lastValues,
6158
+ "last-values": __props.lastValues,
6148
6159
  onChange: changeHandler
6149
6160
  }, null, 8, ["model", "name", "size", "prop", "disabled", "config", "last-values"]),
6150
- _ctx.model[_ctx.name] && hasDataSourceSidePanel.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
6161
+ __props.model[__props.name] && hasDataSourceSidePanel.value ? (openBlock(), createBlock(unref(TMagicTooltip), {
6151
6162
  key: 0,
6152
6163
  content: notEditable.value ? "查看" : "编辑"
6153
6164
  }, {
6154
6165
  default: withCtx(() => [
6155
6166
  createVNode(unref(TMagicButton), {
6156
6167
  class: "m-fields-select-action-button",
6157
- size: _ctx.size,
6168
+ size: __props.size,
6158
6169
  onClick: editHandler
6159
6170
  }, {
6160
6171
  default: withCtx(() => [
@@ -6206,7 +6217,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6206
6217
  {
6207
6218
  type: "table",
6208
6219
  name: "cond",
6209
- operateColWidth: 100,
6220
+ operateColWidth: 80,
6210
6221
  enableToggleMode: false,
6211
6222
  items: [
6212
6223
  parentFields.value.length ? {
@@ -6240,7 +6251,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6240
6251
  type: "cond-op-select",
6241
6252
  parentFields: parentFields.value,
6242
6253
  label: "条件",
6243
- width: 160,
6254
+ width: 140,
6244
6255
  name: "op"
6245
6256
  },
6246
6257
  {
@@ -6294,20 +6305,20 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6294
6305
  return openBlock(), createBlock(unref(MGroupList), {
6295
6306
  style: { "width": "100%" },
6296
6307
  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,
6308
+ name: __props.name,
6309
+ disabled: __props.disabled,
6310
+ model: __props.model,
6311
+ "last-values": __props.lastValues,
6312
+ prop: __props.prop,
6313
+ size: __props.size,
6303
6314
  onChange: changeHandler
6304
6315
  }, null, 8, ["config", "name", "disabled", "model", "last-values", "prop", "size"]);
6305
6316
  };
6306
6317
  }
6307
6318
  });
6308
6319
 
6309
- const _hoisted_1$P = { class: "m-fields-event-select" };
6310
- const _hoisted_2$f = {
6320
+ const _hoisted_1$O = { class: "m-fields-event-select" };
6321
+ const _hoisted_2$g = {
6311
6322
  key: 1,
6312
6323
  class: "fullWidth"
6313
6324
  };
@@ -6588,21 +6599,21 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6588
6599
  const onChangeHandler = (v, eventData) => emit("change", props.model[props.name], eventData);
6589
6600
  return (_ctx, _cache) => {
6590
6601
  const _component_m_form_table = resolveComponent("m-form-table");
6591
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
6602
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
6592
6603
  isOldVersion.value ? (openBlock(), createBlock(_component_m_form_table, {
6593
6604
  key: 0,
6594
6605
  name: "events",
6595
- size: _ctx.size,
6596
- disabled: _ctx.disabled,
6597
- model: _ctx.model,
6606
+ size: __props.size,
6607
+ disabled: __props.disabled,
6608
+ model: __props.model,
6598
6609
  config: tableConfig.value,
6599
6610
  onChange: onChangeHandler
6600
- }, null, 8, ["size", "disabled", "model", "config"])) : (openBlock(), createElementBlock("div", _hoisted_2$f, [
6611
+ }, null, 8, ["size", "disabled", "model", "config"])) : (openBlock(), createElementBlock("div", _hoisted_2$g, [
6601
6612
  createVNode(unref(TMagicButton), {
6602
6613
  class: "create-button",
6603
6614
  type: "primary",
6604
- size: _ctx.size,
6605
- disabled: _ctx.disabled,
6615
+ size: __props.size,
6616
+ disabled: __props.disabled,
6606
6617
  onClick: _cache[0] || (_cache[0] = ($event) => addEvent())
6607
6618
  }, {
6608
6619
  default: withCtx(() => [..._cache[1] || (_cache[1] = [
@@ -6618,15 +6629,15 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6618
6629
  (openBlock(true), createElementBlock(
6619
6630
  Fragment,
6620
6631
  null,
6621
- renderList(_ctx.model[_ctx.name], (cardItem, index) => {
6632
+ renderList(__props.model[__props.name], (cardItem, index) => {
6622
6633
  return openBlock(), createBlock(unref(MPanel), {
6623
6634
  key: index,
6624
- disabled: _ctx.disabled,
6625
- size: _ctx.size,
6626
- prop: `${_ctx.prop}.${index}`,
6635
+ disabled: __props.disabled,
6636
+ size: __props.size,
6637
+ prop: `${__props.prop}.${index}`,
6627
6638
  config: actionsConfig.value,
6628
6639
  model: cardItem,
6629
- "label-width": _ctx.config.labelWidth || "100px",
6640
+ "label-width": __props.config.labelWidth || "100px",
6630
6641
  onChange: onChangeHandler
6631
6642
  }, {
6632
6643
  header: withCtx(() => [
@@ -6634,17 +6645,17 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6634
6645
  class: "fullWidth",
6635
6646
  config: eventNameConfig.value,
6636
6647
  model: cardItem,
6637
- disabled: _ctx.disabled,
6638
- size: _ctx.size,
6639
- prop: `${_ctx.prop}.${index}`,
6648
+ disabled: __props.disabled,
6649
+ size: __props.size,
6650
+ prop: `${__props.prop}.${index}`,
6640
6651
  onChange: eventNameChangeHandler
6641
6652
  }, null, 8, ["config", "model", "disabled", "size", "prop"]),
6642
6653
  createVNode(unref(TMagicButton), {
6643
6654
  style: { "color": "#f56c6c" },
6644
6655
  link: "",
6645
6656
  icon: unref(Delete),
6646
- disabled: _ctx.disabled,
6647
- size: _ctx.size,
6657
+ disabled: __props.disabled,
6658
+ size: __props.size,
6648
6659
  onClick: ($event) => removeEvent(index)
6649
6660
  }, null, 8, ["icon", "disabled", "size", "onClick"])
6650
6661
  ]),
@@ -6661,7 +6672,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6661
6672
  }
6662
6673
  });
6663
6674
 
6664
- const _hoisted_1$O = {
6675
+ const _hoisted_1$N = {
6665
6676
  viewBox: "0 0 32 32",
6666
6677
  version: "1.1",
6667
6678
  xmlns: "http://www.w3.org/2000/svg",
@@ -6674,15 +6685,15 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
6674
6685
  __name: "CodeIcon",
6675
6686
  setup(__props) {
6676
6687
  return (_ctx, _cache) => {
6677
- return openBlock(), createElementBlock("svg", _hoisted_1$O, [..._cache[0] || (_cache[0] = [
6688
+ return openBlock(), createElementBlock("svg", _hoisted_1$N, [..._cache[0] || (_cache[0] = [
6678
6689
  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
6690
  ])]);
6680
6691
  };
6681
6692
  }
6682
6693
  });
6683
6694
 
6684
- const _hoisted_1$N = { class: "m-fields-key-value" };
6685
- const _hoisted_2$e = { key: 0 };
6695
+ const _hoisted_1$M = { class: "m-fields-key-value" };
6696
+ const _hoisted_2$f = { key: 0 };
6686
6697
  const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6687
6698
  ...{
6688
6699
  name: "MFieldsKeyValue"
@@ -6745,8 +6756,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6745
6756
  emit("change", v);
6746
6757
  };
6747
6758
  return (_ctx, _cache) => {
6748
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
6749
- !showCode.value ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
6759
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
6760
+ !showCode.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
6750
6761
  (openBlock(true), createElementBlock(
6751
6762
  Fragment,
6752
6763
  null,
@@ -6759,8 +6770,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6759
6770
  placeholder: "key",
6760
6771
  modelValue: records.value[index][0],
6761
6772
  "onUpdate:modelValue": ($event) => records.value[index][0] = $event,
6762
- disabled: _ctx.disabled,
6763
- size: _ctx.size,
6773
+ disabled: __props.disabled,
6774
+ size: __props.size,
6764
6775
  onChange: keyChangeHandler
6765
6776
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
6766
6777
  _cache[1] || (_cache[1] = createElementVNode(
@@ -6774,15 +6785,15 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6774
6785
  placeholder: "value",
6775
6786
  modelValue: records.value[index][1],
6776
6787
  "onUpdate:modelValue": ($event) => records.value[index][1] = $event,
6777
- disabled: _ctx.disabled,
6778
- size: _ctx.size,
6788
+ disabled: __props.disabled,
6789
+ size: __props.size,
6779
6790
  onChange: valueChangeHandler
6780
6791
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
6781
6792
  createVNode(unref(TMagicButton), {
6782
6793
  class: "m-fields-key-value-delete",
6783
6794
  type: "danger",
6784
- size: _ctx.size,
6785
- disabled: _ctx.disabled,
6795
+ size: __props.size,
6796
+ disabled: __props.disabled,
6786
6797
  circle: "",
6787
6798
  plain: "",
6788
6799
  icon: unref(Delete),
@@ -6795,8 +6806,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6795
6806
  )),
6796
6807
  createVNode(unref(TMagicButton), {
6797
6808
  type: "primary",
6798
- size: _ctx.size,
6799
- disabled: _ctx.disabled,
6809
+ size: __props.size,
6810
+ disabled: __props.disabled,
6800
6811
  plain: "",
6801
6812
  icon: unref(Plus),
6802
6813
  onClick: addHandler
@@ -6812,21 +6823,21 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6812
6823
  /* STABLE */
6813
6824
  }, 8, ["size", "disabled", "icon"])
6814
6825
  ])) : createCommentVNode("v-if", true),
6815
- _ctx.config.advanced && showCode.value ? (openBlock(), createBlock(_sfc_main$1q, {
6826
+ __props.config.advanced && showCode.value ? (openBlock(), createBlock(_sfc_main$1q, {
6816
6827
  key: 1,
6817
6828
  height: "200px",
6818
- "init-values": _ctx.model[_ctx.name],
6829
+ "init-values": __props.model[__props.name],
6819
6830
  language: "javascript",
6820
6831
  options: {
6821
- readOnly: _ctx.disabled
6832
+ readOnly: __props.disabled
6822
6833
  },
6823
6834
  parse: true,
6824
6835
  onSave: save
6825
6836
  }, null, 8, ["init-values", "options"])) : createCommentVNode("v-if", true),
6826
- _ctx.config.advanced ? (openBlock(), createBlock(unref(TMagicButton), {
6837
+ __props.config.advanced ? (openBlock(), createBlock(unref(TMagicButton), {
6827
6838
  key: 2,
6828
6839
  size: "default",
6829
- disabled: _ctx.disabled,
6840
+ disabled: __props.disabled,
6830
6841
  link: "",
6831
6842
  icon: _sfc_main$17,
6832
6843
  onClick: _cache[0] || (_cache[0] = ($event) => showCode.value = !showCode.value)
@@ -6836,8 +6847,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6836
6847
  }
6837
6848
  });
6838
6849
 
6839
- const _hoisted_1$M = { class: "m-fields-page-fragment-select" };
6840
- const _hoisted_2$d = { class: "page-fragment-select-container" };
6850
+ const _hoisted_1$L = { class: "m-fields-page-fragment-select" };
6851
+ const _hoisted_2$e = { class: "page-fragment-select-container" };
6841
6852
  const _sfc_main$15 = /* @__PURE__ */ defineComponent({
6842
6853
  ...{
6843
6854
  name: "MFieldsPageFragmentSelect"
@@ -6884,22 +6895,22 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
6884
6895
  };
6885
6896
  return (_ctx, _cache) => {
6886
6897
  const _component_m_form_container = resolveComponent("m-form-container");
6887
- return openBlock(), createElementBlock("div", _hoisted_1$M, [
6888
- createElementVNode("div", _hoisted_2$d, [
6898
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
6899
+ createElementVNode("div", _hoisted_2$e, [
6889
6900
  createCommentVNode(" 页面片下拉框 "),
6890
6901
  createVNode(_component_m_form_container, {
6891
6902
  class: "select",
6892
6903
  config: selectConfig,
6893
- model: _ctx.model,
6894
- size: _ctx.size,
6904
+ model: __props.model,
6905
+ size: __props.size,
6895
6906
  onChange: changeHandler
6896
6907
  }, null, 8, ["model", "size"]),
6897
6908
  createCommentVNode(" 编辑按钮 "),
6898
- _ctx.model[_ctx.name] ? (openBlock(), createBlock(_sfc_main$1r, {
6909
+ __props.model[__props.name] ? (openBlock(), createBlock(_sfc_main$1r, {
6899
6910
  key: 0,
6900
6911
  class: "icon",
6901
6912
  icon: unref(Edit),
6902
- onClick: _cache[0] || (_cache[0] = ($event) => editPageFragment(_ctx.model[_ctx.name]))
6913
+ onClick: _cache[0] || (_cache[0] = ($event) => editPageFragment(__props.model[__props.name]))
6903
6914
  }, null, 8, ["icon"])) : createCommentVNode("v-if", true)
6904
6915
  ])
6905
6916
  ]);
@@ -6907,9 +6918,9 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
6907
6918
  }
6908
6919
  });
6909
6920
 
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" };
6921
+ const _hoisted_1$K = { class: "background-position-container" };
6922
+ const _hoisted_2$d = { class: "presets-value-list" };
6923
+ const _hoisted_3$6 = { class: "custom-value" };
6913
6924
  const _sfc_main$14 = /* @__PURE__ */ defineComponent({
6914
6925
  __name: "BackgroundPosition",
6915
6926
  props: {
@@ -6965,8 +6976,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
6965
6976
  emit("change", v);
6966
6977
  };
6967
6978
  return (_ctx, _cache) => {
6968
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
6969
- createElementVNode("div", _hoisted_2$c, [
6979
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
6980
+ createElementVNode("div", _hoisted_2$d, [
6970
6981
  (openBlock(true), createElementBlock(
6971
6982
  Fragment,
6972
6983
  null,
@@ -6974,14 +6985,15 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
6974
6985
  return openBlock(), createBlock(unref(TMagicButton), {
6975
6986
  key: index,
6976
6987
  link: "",
6977
- class: normalizeClass(_ctx.model[_ctx.name] === item.value && "btn-active"),
6988
+ class: normalizeClass(__props.model[__props.name] === item.value && "btn-active"),
6989
+ disabled: __props.disabled,
6978
6990
  onClick: ($event) => changeHandler(item.value)
6979
6991
  }, {
6980
6992
  default: withCtx(() => [
6981
6993
  createElementVNode(
6982
6994
  "div",
6983
6995
  {
6984
- class: normalizeClass(["position-icon", item.class, _ctx.model[_ctx.name] === item.value && "active"])
6996
+ class: normalizeClass(["position-icon", item.class, __props.model[__props.name] === item.value && "active"])
6985
6997
  },
6986
6998
  null,
6987
6999
  2
@@ -6990,21 +7002,22 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
6990
7002
  ]),
6991
7003
  _: 2
6992
7004
  /* DYNAMIC */
6993
- }, 1032, ["class", "onClick"]);
7005
+ }, 1032, ["class", "disabled", "onClick"]);
6994
7006
  }),
6995
7007
  128
6996
7008
  /* KEYED_FRAGMENT */
6997
7009
  ))
6998
7010
  ]),
6999
- createElementVNode("div", _hoisted_3$5, [
7011
+ createElementVNode("div", _hoisted_3$6, [
7000
7012
  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",
7013
+ modelValue: __props.model[__props.name],
7014
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
7004
7015
  placeholder: "自定义背景位置",
7005
7016
  clearable: "",
7017
+ size: __props.size,
7018
+ disabled: __props.disabled,
7006
7019
  onChange: changeHandler
7007
- }, null, 8, ["modelValue"])
7020
+ }, null, 8, ["modelValue", "size", "disabled"])
7008
7021
  ])
7009
7022
  ]);
7010
7023
  };
@@ -7021,13 +7034,13 @@ const _export_sfc = (sfc, props) => {
7021
7034
 
7022
7035
  const _sfc_main$13 = { };
7023
7036
 
7024
- const _hoisted_1$K = {
7037
+ const _hoisted_1$J = {
7025
7038
  xmlns: "http://www.w3.org/2000/svg",
7026
7039
  viewBox: "0 0 1024 1024"
7027
7040
  };
7028
7041
 
7029
7042
  function _sfc_render$k(_ctx, _cache) {
7030
- return (openBlock(), createElementBlock("svg", _hoisted_1$K, [...(_cache[0] || (_cache[0] = [
7043
+ return (openBlock(), createElementBlock("svg", _hoisted_1$J, [...(_cache[0] || (_cache[0] = [
7031
7044
  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
7045
  ]))]))
7033
7046
  }
@@ -7035,13 +7048,13 @@ const BackgroundRepeat = /*#__PURE__*/_export_sfc(_sfc_main$13, [['render',_sfc_
7035
7048
 
7036
7049
  const _sfc_main$12 = { };
7037
7050
 
7038
- const _hoisted_1$J = {
7051
+ const _hoisted_1$I = {
7039
7052
  xmlns: "http://www.w3.org/2000/svg",
7040
7053
  viewBox: "0 0 1024 1024"
7041
7054
  };
7042
7055
 
7043
7056
  function _sfc_render$j(_ctx, _cache) {
7044
- return (openBlock(), createElementBlock("svg", _hoisted_1$J, [...(_cache[0] || (_cache[0] = [
7057
+ return (openBlock(), createElementBlock("svg", _hoisted_1$I, [...(_cache[0] || (_cache[0] = [
7045
7058
  createElementVNode("path", {
7046
7059
  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
7060
  fill: "#333333"
@@ -7052,13 +7065,13 @@ const BackgroundRepeatX = /*#__PURE__*/_export_sfc(_sfc_main$12, [['render',_sfc
7052
7065
 
7053
7066
  const _sfc_main$11 = { };
7054
7067
 
7055
- const _hoisted_1$I = {
7068
+ const _hoisted_1$H = {
7056
7069
  xmlns: "http://www.w3.org/2000/svg",
7057
7070
  viewBox: "0 0 1024 1024"
7058
7071
  };
7059
7072
 
7060
7073
  function _sfc_render$i(_ctx, _cache) {
7061
- return (openBlock(), createElementBlock("svg", _hoisted_1$I, [...(_cache[0] || (_cache[0] = [
7074
+ return (openBlock(), createElementBlock("svg", _hoisted_1$H, [...(_cache[0] || (_cache[0] = [
7062
7075
  createElementVNode("path", {
7063
7076
  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
7077
  fill: "#333333"
@@ -7069,13 +7082,13 @@ const BackgroundRepeatY = /*#__PURE__*/_export_sfc(_sfc_main$11, [['render',_sfc
7069
7082
 
7070
7083
  const _sfc_main$10 = { };
7071
7084
 
7072
- const _hoisted_1$H = {
7085
+ const _hoisted_1$G = {
7073
7086
  xmlns: "http://www.w3.org/2000/svg",
7074
7087
  viewBox: "0 0 1024 1024"
7075
7088
  };
7076
7089
 
7077
7090
  function _sfc_render$h(_ctx, _cache) {
7078
- return (openBlock(), createElementBlock("svg", _hoisted_1$H, [...(_cache[0] || (_cache[0] = [
7091
+ return (openBlock(), createElementBlock("svg", _hoisted_1$G, [...(_cache[0] || (_cache[0] = [
7079
7092
  createElementVNode("path", {
7080
7093
  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
7094
  fill: "#5D5D5D"
@@ -7087,7 +7100,9 @@ const BackgroundNoRepeat = /*#__PURE__*/_export_sfc(_sfc_main$10, [['render',_sf
7087
7100
  const _sfc_main$$ = /* @__PURE__ */ defineComponent({
7088
7101
  __name: "Background",
7089
7102
  props: {
7090
- values: {}
7103
+ values: {},
7104
+ disabled: { type: Boolean },
7105
+ size: {}
7091
7106
  },
7092
7107
  emits: ["change"],
7093
7108
  setup(__props, { emit: __emit }) {
@@ -7152,22 +7167,24 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
7152
7167
  return (_ctx, _cache) => {
7153
7168
  return openBlock(), createBlock(unref(MContainer), {
7154
7169
  config,
7155
- model: _ctx.values,
7170
+ model: __props.values,
7171
+ size: __props.size,
7172
+ disabled: __props.disabled,
7156
7173
  onChange: change
7157
- }, null, 8, ["model"]);
7174
+ }, null, 8, ["model", "size", "disabled"]);
7158
7175
  };
7159
7176
  }
7160
7177
  });
7161
7178
 
7162
7179
  const _sfc_main$_ = { };
7163
7180
 
7164
- const _hoisted_1$G = {
7181
+ const _hoisted_1$F = {
7165
7182
  xmlns: "http://www.w3.org/2000/svg",
7166
7183
  viewBox: "0 0 1024 1024"
7167
7184
  };
7168
7185
 
7169
7186
  function _sfc_render$g(_ctx, _cache) {
7170
- return (openBlock(), createElementBlock("svg", _hoisted_1$G, [...(_cache[0] || (_cache[0] = [
7187
+ return (openBlock(), createElementBlock("svg", _hoisted_1$F, [...(_cache[0] || (_cache[0] = [
7171
7188
  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
7189
  ]))]))
7173
7190
  }
@@ -7175,13 +7192,13 @@ const AlignLeft = /*#__PURE__*/_export_sfc(_sfc_main$_, [['render',_sfc_render$g
7175
7192
 
7176
7193
  const _sfc_main$Z = { };
7177
7194
 
7178
- const _hoisted_1$F = {
7195
+ const _hoisted_1$E = {
7179
7196
  xmlns: "http://www.w3.org/2000/svg",
7180
7197
  viewBox: "0 0 1024 1024"
7181
7198
  };
7182
7199
 
7183
7200
  function _sfc_render$f(_ctx, _cache) {
7184
- return (openBlock(), createElementBlock("svg", _hoisted_1$F, [...(_cache[0] || (_cache[0] = [
7201
+ return (openBlock(), createElementBlock("svg", _hoisted_1$E, [...(_cache[0] || (_cache[0] = [
7185
7202
  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
7203
  ]))]))
7187
7204
  }
@@ -7189,13 +7206,13 @@ const AlignCenter = /*#__PURE__*/_export_sfc(_sfc_main$Z, [['render',_sfc_render
7189
7206
 
7190
7207
  const _sfc_main$Y = { };
7191
7208
 
7192
- const _hoisted_1$E = {
7209
+ const _hoisted_1$D = {
7193
7210
  xmlns: "http://www.w3.org/2000/svg",
7194
7211
  viewBox: "0 0 1024 1024"
7195
7212
  };
7196
7213
 
7197
7214
  function _sfc_render$e(_ctx, _cache) {
7198
- return (openBlock(), createElementBlock("svg", _hoisted_1$E, [...(_cache[0] || (_cache[0] = [
7215
+ return (openBlock(), createElementBlock("svg", _hoisted_1$D, [...(_cache[0] || (_cache[0] = [
7199
7216
  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
7217
  ]))]))
7201
7218
  }
@@ -7204,7 +7221,9 @@ const AlignRight = /*#__PURE__*/_export_sfc(_sfc_main$Y, [['render',_sfc_render$
7204
7221
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
7205
7222
  __name: "Font",
7206
7223
  props: {
7207
- values: {}
7224
+ values: {},
7225
+ disabled: { type: Boolean },
7226
+ size: {}
7208
7227
  },
7209
7228
  emits: ["change"],
7210
7229
  setup(__props, { emit: __emit }) {
@@ -7278,23 +7297,27 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
7278
7297
  return (_ctx, _cache) => {
7279
7298
  return openBlock(), createBlock(unref(MContainer), {
7280
7299
  config,
7281
- model: _ctx.values,
7300
+ model: __props.values,
7301
+ size: __props.size,
7302
+ disabled: __props.disabled,
7282
7303
  onChange: change
7283
- }, null, 8, ["model"]);
7304
+ }, null, 8, ["model", "size", "disabled"]);
7284
7305
  };
7285
7306
  }
7286
7307
  });
7287
7308
 
7288
- const _hoisted_1$D = { class: "layout-box-container" };
7289
- const _hoisted_2$b = {
7309
+ const _hoisted_1$C = { class: "layout-box-container" };
7310
+ const _hoisted_2$c = {
7290
7311
  key: 0,
7291
7312
  class: "help-txt"
7292
7313
  };
7293
- const _hoisted_3$4 = { class: "next-input" };
7294
- const _hoisted_4$4 = ["onUpdate:modelValue", "title", "onChange"];
7314
+ const _hoisted_3$5 = { class: "next-input" };
7315
+ const _hoisted_4$4 = ["model-value", "title", "disabled", "onChange"];
7295
7316
  const _sfc_main$W = /* @__PURE__ */ defineComponent({
7296
7317
  __name: "Box",
7297
7318
  props: {
7319
+ disabled: { type: Boolean },
7320
+ size: {},
7298
7321
  model: {}
7299
7322
  },
7300
7323
  emits: ["change"],
@@ -7342,7 +7365,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
7342
7365
  });
7343
7366
  };
7344
7367
  return (_ctx, _cache) => {
7345
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
7368
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
7346
7369
  (openBlock(), createElementBlock(
7347
7370
  Fragment,
7348
7371
  null,
@@ -7356,20 +7379,19 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
7356
7379
  [
7357
7380
  item.text ? (openBlock(), createElementBlock(
7358
7381
  "span",
7359
- _hoisted_2$b,
7382
+ _hoisted_2$c,
7360
7383
  toDisplayString(item.text),
7361
7384
  1
7362
7385
  /* TEXT */
7363
7386
  )) : createCommentVNode("v-if", true),
7364
- createElementVNode("span", _hoisted_3$4, [
7365
- 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"
7370
- }, null, 40, _hoisted_4$4), [
7371
- [vModelText, _ctx.model[item.name]]
7372
- ])
7387
+ createElementVNode("span", _hoisted_3$5, [
7388
+ createElementVNode("input", {
7389
+ "model-value": __props.model[item.name],
7390
+ placeholder: "0",
7391
+ title: __props.model[item.name],
7392
+ disabled: __props.disabled,
7393
+ onChange: ($event) => change($event, item.name)
7394
+ }, null, 40, _hoisted_4$4)
7373
7395
  ])
7374
7396
  ],
7375
7397
  2
@@ -7386,13 +7408,13 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
7386
7408
 
7387
7409
  const _sfc_main$V = { };
7388
7410
 
7389
- const _hoisted_1$C = {
7411
+ const _hoisted_1$B = {
7390
7412
  xmlns: "http://www.w3.org/2000/svg",
7391
7413
  viewBox: "0 0 1024 1024"
7392
7414
  };
7393
7415
 
7394
7416
  function _sfc_render$d(_ctx, _cache) {
7395
- return (openBlock(), createElementBlock("svg", _hoisted_1$C, [...(_cache[0] || (_cache[0] = [
7417
+ return (openBlock(), createElementBlock("svg", _hoisted_1$B, [...(_cache[0] || (_cache[0] = [
7396
7418
  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
7419
  ]))]))
7398
7420
  }
@@ -7400,13 +7422,13 @@ const DisplayBlock = /*#__PURE__*/_export_sfc(_sfc_main$V, [['render',_sfc_rende
7400
7422
 
7401
7423
  const _sfc_main$U = { };
7402
7424
 
7403
- const _hoisted_1$B = {
7425
+ const _hoisted_1$A = {
7404
7426
  xmlns: "http://www.w3.org/2000/svg",
7405
7427
  viewBox: "0 0 1024 1024"
7406
7428
  };
7407
7429
 
7408
7430
  function _sfc_render$c(_ctx, _cache) {
7409
- return (openBlock(), createElementBlock("svg", _hoisted_1$B, [...(_cache[0] || (_cache[0] = [
7431
+ return (openBlock(), createElementBlock("svg", _hoisted_1$A, [...(_cache[0] || (_cache[0] = [
7410
7432
  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
7433
  ]))]))
7412
7434
  }
@@ -7414,13 +7436,13 @@ const DisplayFlex = /*#__PURE__*/_export_sfc(_sfc_main$U, [['render',_sfc_render
7414
7436
 
7415
7437
  const _sfc_main$T = { };
7416
7438
 
7417
- const _hoisted_1$A = {
7439
+ const _hoisted_1$z = {
7418
7440
  xmlns: "http://www.w3.org/2000/svg",
7419
7441
  viewBox: "0 0 1024 1024"
7420
7442
  };
7421
7443
 
7422
7444
  function _sfc_render$b(_ctx, _cache) {
7423
- return (openBlock(), createElementBlock("svg", _hoisted_1$A, [...(_cache[0] || (_cache[0] = [
7445
+ return (openBlock(), createElementBlock("svg", _hoisted_1$z, [...(_cache[0] || (_cache[0] = [
7424
7446
  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
7447
  ]))]))
7426
7448
  }
@@ -7428,13 +7450,13 @@ const DisplayInline = /*#__PURE__*/_export_sfc(_sfc_main$T, [['render',_sfc_rend
7428
7450
 
7429
7451
  const _sfc_main$S = { };
7430
7452
 
7431
- const _hoisted_1$z = {
7453
+ const _hoisted_1$y = {
7432
7454
  xmlns: "http://www.w3.org/2000/svg",
7433
7455
  viewBox: "0 0 1024 1024"
7434
7456
  };
7435
7457
 
7436
7458
  function _sfc_render$a(_ctx, _cache) {
7437
- return (openBlock(), createElementBlock("svg", _hoisted_1$z, [...(_cache[0] || (_cache[0] = [
7459
+ return (openBlock(), createElementBlock("svg", _hoisted_1$y, [...(_cache[0] || (_cache[0] = [
7438
7460
  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
7461
  ]))]))
7440
7462
  }
@@ -7442,13 +7464,13 @@ const DisplayInlineBlock = /*#__PURE__*/_export_sfc(_sfc_main$S, [['render',_sfc
7442
7464
 
7443
7465
  const _sfc_main$R = { };
7444
7466
 
7445
- const _hoisted_1$y = {
7467
+ const _hoisted_1$x = {
7446
7468
  xmlns: "http://www.w3.org/2000/svg",
7447
7469
  viewBox: "0 0 1024 1024"
7448
7470
  };
7449
7471
 
7450
7472
  function _sfc_render$9(_ctx, _cache) {
7451
- return (openBlock(), createElementBlock("svg", _hoisted_1$y, [...(_cache[0] || (_cache[0] = [
7473
+ return (openBlock(), createElementBlock("svg", _hoisted_1$x, [...(_cache[0] || (_cache[0] = [
7452
7474
  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
7475
  ]))]))
7454
7476
  }
@@ -7456,13 +7478,13 @@ const DisplayNone = /*#__PURE__*/_export_sfc(_sfc_main$R, [['render',_sfc_render
7456
7478
 
7457
7479
  const _sfc_main$Q = { };
7458
7480
 
7459
- const _hoisted_1$x = {
7481
+ const _hoisted_1$w = {
7460
7482
  xmlns: "http://www.w3.org/2000/svg",
7461
7483
  viewBox: "0 0 1024 1024"
7462
7484
  };
7463
7485
 
7464
7486
  function _sfc_render$8(_ctx, _cache) {
7465
- return (openBlock(), createElementBlock("svg", _hoisted_1$x, [...(_cache[0] || (_cache[0] = [
7487
+ return (openBlock(), createElementBlock("svg", _hoisted_1$w, [...(_cache[0] || (_cache[0] = [
7466
7488
  createElementVNode("path", { d: "M896 320H128V0h768v320z m0 320H128v-256h768v256z m-128 192l-256 192-256-192 192-0.032V704h128v128h192z" }, null, -1 /* CACHED */)
7467
7489
  ]))]))
7468
7490
  }
@@ -7470,13 +7492,13 @@ const FlexDirectionColumn = /*#__PURE__*/_export_sfc(_sfc_main$Q, [['render',_sf
7470
7492
 
7471
7493
  const _sfc_main$P = { };
7472
7494
 
7473
- const _hoisted_1$w = {
7495
+ const _hoisted_1$v = {
7474
7496
  xmlns: "http://www.w3.org/2000/svg",
7475
7497
  viewBox: "0 0 1024 1024"
7476
7498
  };
7477
7499
 
7478
7500
  function _sfc_render$7(_ctx, _cache) {
7479
- return (openBlock(), createElementBlock("svg", _hoisted_1$w, [...(_cache[0] || (_cache[0] = [
7501
+ return (openBlock(), createElementBlock("svg", _hoisted_1$v, [...(_cache[0] || (_cache[0] = [
7480
7502
  createElementVNode("path", { d: "M896 704H128v320h768V704z m0-320H128v256h768v-256z m-128-192l-256-192-256 192 192 0.032V320h128V192h192z" }, null, -1 /* CACHED */)
7481
7503
  ]))]))
7482
7504
  }
@@ -7484,13 +7506,13 @@ const FlexDirectionColumnReverse = /*#__PURE__*/_export_sfc(_sfc_main$P, [['rend
7484
7506
 
7485
7507
  const _sfc_main$O = { };
7486
7508
 
7487
- const _hoisted_1$v = {
7509
+ const _hoisted_1$u = {
7488
7510
  xmlns: "http://www.w3.org/2000/svg",
7489
7511
  viewBox: "0 0 1024 1024"
7490
7512
  };
7491
7513
 
7492
7514
  function _sfc_render$6(_ctx, _cache) {
7493
- return (openBlock(), createElementBlock("svg", _hoisted_1$v, [...(_cache[0] || (_cache[0] = [
7515
+ return (openBlock(), createElementBlock("svg", _hoisted_1$u, [...(_cache[0] || (_cache[0] = [
7494
7516
  createElementVNode("path", { d: "M320 128v768H0V128h320z m320 0v768h-256V128h256z m192 128l192 256-192 256-0.032-192H704v-128h128V256z" }, null, -1 /* CACHED */)
7495
7517
  ]))]))
7496
7518
  }
@@ -7498,13 +7520,13 @@ const FlexDirectionRow = /*#__PURE__*/_export_sfc(_sfc_main$O, [['render',_sfc_r
7498
7520
 
7499
7521
  const _sfc_main$N = { };
7500
7522
 
7501
- const _hoisted_1$u = {
7523
+ const _hoisted_1$t = {
7502
7524
  xmlns: "http://www.w3.org/2000/svg",
7503
7525
  viewBox: "0 0 1024 1024"
7504
7526
  };
7505
7527
 
7506
7528
  function _sfc_render$5(_ctx, _cache) {
7507
- return (openBlock(), createElementBlock("svg", _hoisted_1$u, [...(_cache[0] || (_cache[0] = [
7529
+ return (openBlock(), createElementBlock("svg", _hoisted_1$t, [...(_cache[0] || (_cache[0] = [
7508
7530
  createElementVNode("path", { d: "M704 128v768h320V128H704zM384 128v768h256V128h-256zM192 256l-192 256 192 256 0.032-192H320v-128H192V256z" }, null, -1 /* CACHED */)
7509
7531
  ]))]))
7510
7532
  }
@@ -7512,13 +7534,13 @@ const FlexDirectionRowReverse = /*#__PURE__*/_export_sfc(_sfc_main$N, [['render'
7512
7534
 
7513
7535
  const _sfc_main$M = { };
7514
7536
 
7515
- const _hoisted_1$t = {
7537
+ const _hoisted_1$s = {
7516
7538
  xmlns: "http://www.w3.org/2000/svg",
7517
7539
  viewBox: "0 0 1024 1024"
7518
7540
  };
7519
7541
 
7520
7542
  function _sfc_render$4(_ctx, _cache) {
7521
- return (openBlock(), createElementBlock("svg", _hoisted_1$t, [...(_cache[0] || (_cache[0] = [
7543
+ return (openBlock(), createElementBlock("svg", _hoisted_1$s, [...(_cache[0] || (_cache[0] = [
7522
7544
  createElementVNode("path", { d: "M480 1024V0h64v1024h-64z m128-64V64h320v896H608zM96 960V64h320v896H96z" }, null, -1 /* CACHED */)
7523
7545
  ]))]))
7524
7546
  }
@@ -7526,13 +7548,13 @@ const JustifyContentCenter = /*#__PURE__*/_export_sfc(_sfc_main$M, [['render',_s
7526
7548
 
7527
7549
  const _sfc_main$L = { };
7528
7550
 
7529
- const _hoisted_1$s = {
7551
+ const _hoisted_1$r = {
7530
7552
  xmlns: "http://www.w3.org/2000/svg",
7531
7553
  viewBox: "0 0 1024 1024"
7532
7554
  };
7533
7555
 
7534
7556
  function _sfc_render$3(_ctx, _cache) {
7535
- return (openBlock(), createElementBlock("svg", _hoisted_1$s, [...(_cache[0] || (_cache[0] = [
7557
+ return (openBlock(), createElementBlock("svg", _hoisted_1$r, [...(_cache[0] || (_cache[0] = [
7536
7558
  createElementVNode("path", { d: "M416 160H96v704h320V160z m384 0H480v704h320V160z m128-160h-64v1024h64V0z" }, null, -1 /* CACHED */)
7537
7559
  ]))]))
7538
7560
  }
@@ -7540,13 +7562,13 @@ const JustifyContentFlexEnd = /*#__PURE__*/_export_sfc(_sfc_main$L, [['render',_
7540
7562
 
7541
7563
  const _sfc_main$K = { };
7542
7564
 
7543
- const _hoisted_1$r = {
7565
+ const _hoisted_1$q = {
7544
7566
  xmlns: "http://www.w3.org/2000/svg",
7545
7567
  viewBox: "0 0 1024 1024"
7546
7568
  };
7547
7569
 
7548
7570
  function _sfc_render$2(_ctx, _cache) {
7549
- return (openBlock(), createElementBlock("svg", _hoisted_1$r, [...(_cache[0] || (_cache[0] = [
7571
+ return (openBlock(), createElementBlock("svg", _hoisted_1$q, [...(_cache[0] || (_cache[0] = [
7550
7572
  createElementVNode("path", { d: "M608 160h320v704H608V160zM224 160h320v704H224V160zM96 0h64v1024H96V0z" }, null, -1 /* CACHED */)
7551
7573
  ]))]))
7552
7574
  }
@@ -7554,13 +7576,13 @@ const JustifyContentFlexStart = /*#__PURE__*/_export_sfc(_sfc_main$K, [['render'
7554
7576
 
7555
7577
  const _sfc_main$J = { };
7556
7578
 
7557
- const _hoisted_1$q = {
7579
+ const _hoisted_1$p = {
7558
7580
  xmlns: "http://www.w3.org/2000/svg",
7559
7581
  viewBox: "0 0 1024 1024"
7560
7582
  };
7561
7583
 
7562
7584
  function _sfc_render$1(_ctx, _cache) {
7563
- return (openBlock(), createElementBlock("svg", _hoisted_1$q, [...(_cache[0] || (_cache[0] = [
7585
+ return (openBlock(), createElementBlock("svg", _hoisted_1$p, [...(_cache[0] || (_cache[0] = [
7564
7586
  createElementVNode("path", { d: "M320 864H192v160H128v-160H0V160h128V0h64v160h128v704z m704 0h-128v160h-64v-160h-128V160h128V0h64v160h128v704z" }, null, -1 /* CACHED */)
7565
7587
  ]))]))
7566
7588
  }
@@ -7568,13 +7590,13 @@ const JustifyContentSpaceAround = /*#__PURE__*/_export_sfc(_sfc_main$J, [['rende
7568
7590
 
7569
7591
  const _sfc_main$I = { };
7570
7592
 
7571
- const _hoisted_1$p = {
7593
+ const _hoisted_1$o = {
7572
7594
  xmlns: "http://www.w3.org/2000/svg",
7573
7595
  viewBox: "0 0 1024 1024"
7574
7596
  };
7575
7597
 
7576
7598
  function _sfc_render(_ctx, _cache) {
7577
- return (openBlock(), createElementBlock("svg", _hoisted_1$p, [...(_cache[0] || (_cache[0] = [
7599
+ return (openBlock(), createElementBlock("svg", _hoisted_1$o, [...(_cache[0] || (_cache[0] = [
7578
7600
  createElementVNode("path", { d: "M64 1024H0V0h64v1024z m384-160H128V160h320v704z m448 0H576V160h320v704z m128 160h-64V0h64v1024z" }, null, -1 /* CACHED */)
7579
7601
  ]))]))
7580
7602
  }
@@ -7583,7 +7605,9 @@ const JustifyContentSpaceBetween = /*#__PURE__*/_export_sfc(_sfc_main$I, [['rend
7583
7605
  const _sfc_main$H = /* @__PURE__ */ defineComponent({
7584
7606
  __name: "Layout",
7585
7607
  props: {
7586
- values: {}
7608
+ values: {},
7609
+ disabled: { type: Boolean },
7610
+ size: {}
7587
7611
  },
7588
7612
  emits: ["change"],
7589
7613
  setup(__props, { emit: __emit }) {
@@ -7737,14 +7761,18 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
7737
7761
  [
7738
7762
  createVNode(unref(MContainer), {
7739
7763
  config,
7740
- model: _ctx.values,
7764
+ model: __props.values,
7765
+ size: __props.size,
7766
+ disabled: __props.disabled,
7741
7767
  onChange: change
7742
- }, null, 8, ["model"]),
7768
+ }, null, 8, ["model", "size", "disabled"]),
7743
7769
  withDirectives(createVNode(_sfc_main$W, {
7744
- model: _ctx.values,
7770
+ model: __props.values,
7771
+ size: __props.size,
7772
+ disabled: __props.disabled,
7745
7773
  onChange: change
7746
- }, null, 8, ["model"]), [
7747
- [vShow, !["fixed", "absolute"].includes(_ctx.values.position)]
7774
+ }, null, 8, ["model", "size", "disabled"]), [
7775
+ [vShow, !["fixed", "absolute"].includes(__props.values.position)]
7748
7776
  ])
7749
7777
  ],
7750
7778
  64
@@ -7757,7 +7785,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
7757
7785
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
7758
7786
  __name: "Position",
7759
7787
  props: {
7760
- values: {}
7788
+ values: {},
7789
+ disabled: { type: Boolean },
7790
+ size: {}
7761
7791
  },
7762
7792
  emits: ["change"],
7763
7793
  setup(__props, { emit: __emit }) {
@@ -7848,23 +7878,27 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
7848
7878
  return (_ctx, _cache) => {
7849
7879
  return openBlock(), createBlock(unref(MContainer), {
7850
7880
  config,
7851
- model: _ctx.values,
7881
+ model: __props.values,
7882
+ size: __props.size,
7883
+ disabled: __props.disabled,
7852
7884
  onChange: change
7853
- }, null, 8, ["model"]);
7885
+ }, null, 8, ["model", "size", "disabled"]);
7854
7886
  };
7855
7887
  }
7856
7888
  });
7857
7889
 
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" };
7890
+ const _hoisted_1$n = { class: "border-box-container" };
7891
+ const _hoisted_2$b = { class: "border-icon-container" };
7892
+ const _hoisted_3$4 = { class: "border-icon-container-row" };
7861
7893
  const _hoisted_4$3 = { class: "border-icon-container-row" };
7862
7894
  const _hoisted_5$1 = { class: "border-icon-container-row" };
7863
7895
  const _hoisted_6$1 = { class: "border-value-container" };
7864
7896
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
7865
7897
  __name: "Border",
7866
7898
  props: {
7867
- model: {}
7899
+ model: {},
7900
+ disabled: { type: Boolean },
7901
+ size: {}
7868
7902
  },
7869
7903
  emits: ["change"],
7870
7904
  setup(__props, { emit: __emit }) {
@@ -7914,9 +7948,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
7914
7948
  });
7915
7949
  };
7916
7950
  return (_ctx, _cache) => {
7917
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
7918
- createElementVNode("div", _hoisted_2$a, [
7919
- createElementVNode("div", _hoisted_3$3, [
7951
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
7952
+ createElementVNode("div", _hoisted_2$b, [
7953
+ createElementVNode("div", _hoisted_3$4, [
7920
7954
  createElementVNode(
7921
7955
  "div",
7922
7956
  {
@@ -7976,9 +8010,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
7976
8010
  createElementVNode("div", _hoisted_6$1, [
7977
8011
  createVNode(unref(MContainer), {
7978
8012
  config: config.value,
7979
- model: _ctx.model,
8013
+ model: __props.model,
8014
+ size: __props.size,
8015
+ disabled: __props.disabled,
7980
8016
  onChange: change
7981
- }, null, 8, ["config", "model"])
8017
+ }, null, 8, ["config", "model", "size", "disabled"])
7982
8018
  ])
7983
8019
  ]);
7984
8020
  };
@@ -7988,7 +8024,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
7988
8024
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
7989
8025
  __name: "Border",
7990
8026
  props: {
7991
- values: {}
8027
+ values: {},
8028
+ disabled: { type: Boolean },
8029
+ size: {}
7992
8030
  },
7993
8031
  emits: ["change"],
7994
8032
  setup(__props, { emit: __emit }) {
@@ -8016,13 +8054,17 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
8016
8054
  [
8017
8055
  createVNode(unref(MContainer), {
8018
8056
  config,
8019
- model: _ctx.values,
8057
+ model: __props.values,
8058
+ size: __props.size,
8059
+ disabled: __props.disabled,
8020
8060
  onChange: change
8021
- }, null, 8, ["model"]),
8061
+ }, null, 8, ["model", "size", "disabled"]),
8022
8062
  createVNode(_sfc_main$F, {
8023
- model: _ctx.values,
8063
+ model: __props.values,
8064
+ size: __props.size,
8065
+ disabled: __props.disabled,
8024
8066
  onChange: change
8025
- }, null, 8, ["model"])
8067
+ }, null, 8, ["model", "size", "disabled"])
8026
8068
  ],
8027
8069
  64
8028
8070
  /* STABLE_FRAGMENT */
@@ -8031,7 +8073,6 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
8031
8073
  }
8032
8074
  });
8033
8075
 
8034
- const _hoisted_1$n = { class: "m-fields-style-setter" };
8035
8076
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
8036
8077
  ...{
8037
8078
  name: "MFieldsStyleSetter"
@@ -8085,44 +8126,48 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
8085
8126
  emit("change", v, eventData);
8086
8127
  };
8087
8128
  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
- ]);
8129
+ return openBlock(), createBlock(unref(TMagicCollapse), {
8130
+ class: "m-fields-style-setter",
8131
+ modelValue: collapseValue.value,
8132
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => collapseValue.value = $event)
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, ["modelValue"]);
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,53 +8658,61 @@ 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), {
8643
8688
  size: "small",
8644
8689
  link: "",
8645
8690
  disabled: disabled.value
8646
- }, {
8647
- default: withCtx(() => [
8648
- _ctx.data.icon ? (openBlock(), createBlock(_sfc_main$1r, {
8649
- key: 0,
8650
- icon: _ctx.data.icon
8651
- }, null, 8, ["icon"])) : createCommentVNode("v-if", true),
8652
- createElementVNode(
8653
- "span",
8654
- null,
8655
- toDisplayString(_ctx.data.text),
8656
- 1
8657
- /* TEXT */
8658
- )
8659
- ]),
8660
- _: 1
8661
- /* STABLE */
8662
- }, 8, ["disabled"])
8691
+ }, createSlots({
8692
+ _: 2
8693
+ /* DYNAMIC */
8694
+ }, [
8695
+ __props.data.icon ? {
8696
+ name: "icon",
8697
+ fn: withCtx(() => [
8698
+ createVNode(_sfc_main$1r, {
8699
+ icon: __props.data.icon
8700
+ }, null, 8, ["icon"])
8701
+ ]),
8702
+ key: "0"
8703
+ } : void 0,
8704
+ __props.data.text ? {
8705
+ name: "default",
8706
+ fn: withCtx(() => [
8707
+ createTextVNode(
8708
+ toDisplayString(__props.data.text),
8709
+ 1
8710
+ /* TEXT */
8711
+ )
8712
+ ]),
8713
+ key: "1"
8714
+ } : void 0
8715
+ ]), 1032, ["disabled"])
8663
8716
  ]),
8664
8717
  _: 1
8665
8718
  /* STABLE */
@@ -8668,43 +8721,51 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
8668
8721
  size: "small",
8669
8722
  link: "",
8670
8723
  disabled: disabled.value,
8671
- title: _ctx.data.text
8672
- }, {
8673
- default: withCtx(() => [
8674
- _ctx.data.icon ? (openBlock(), createBlock(_sfc_main$1r, {
8675
- key: 0,
8676
- icon: _ctx.data.icon
8677
- }, null, 8, ["icon"])) : createCommentVNode("v-if", true),
8678
- createElementVNode(
8679
- "span",
8680
- null,
8681
- toDisplayString(_ctx.data.text),
8682
- 1
8683
- /* TEXT */
8684
- )
8685
- ]),
8686
- _: 1
8687
- /* STABLE */
8688
- }, 8, ["disabled", "title"]))
8724
+ title: __props.data.text
8725
+ }, createSlots({
8726
+ _: 2
8727
+ /* DYNAMIC */
8728
+ }, [
8729
+ __props.data.icon ? {
8730
+ name: "icon",
8731
+ fn: withCtx(() => [
8732
+ createVNode(_sfc_main$1r, {
8733
+ icon: __props.data.icon
8734
+ }, null, 8, ["icon"])
8735
+ ]),
8736
+ key: "0"
8737
+ } : void 0,
8738
+ __props.data.text ? {
8739
+ name: "default",
8740
+ fn: withCtx(() => [
8741
+ createTextVNode(
8742
+ toDisplayString(__props.data.text),
8743
+ 1
8744
+ /* TEXT */
8745
+ )
8746
+ ]),
8747
+ key: "1"
8748
+ } : void 0
8749
+ ]), 1032, ["disabled", "title"]))
8689
8750
  ],
8690
8751
  64
8691
8752
  /* STABLE_FRAGMENT */
8692
- )) : _ctx.data.type === "dropdown" ? (openBlock(), createBlock(unref(TMagicDropdown), {
8753
+ )) : __props.data.type === "dropdown" ? (openBlock(), createBlock(unref(TMagicDropdown), {
8693
8754
  key: 3,
8694
8755
  trigger: "click",
8695
8756
  disabled: disabled.value,
8696
8757
  onCommand: dropdownHandler
8697
8758
  }, {
8698
8759
  dropdown: withCtx(() => [
8699
- _ctx.data.items && _ctx.data.items.length ? (openBlock(), createBlock(unref(TMagicDropdownMenu), { key: 0 }, {
8760
+ __props.data.items && __props.data.items.length ? (openBlock(), createBlock(unref(TMagicDropdownMenu), { key: 0 }, {
8700
8761
  default: withCtx(() => [
8701
8762
  (openBlock(true), createElementBlock(
8702
8763
  Fragment,
8703
8764
  null,
8704
- renderList(_ctx.data.items, (subItem, index) => {
8765
+ renderList(__props.data.items, (subItem, index) => {
8705
8766
  return openBlock(), createBlock(unref(TMagicDropdownItem), {
8706
8767
  key: index,
8707
- command: { data: _ctx.data, subItem }
8768
+ command: { data: __props.data, subItem }
8708
8769
  }, {
8709
8770
  default: withCtx(() => [
8710
8771
  createTextVNode(
@@ -8726,9 +8787,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
8726
8787
  })) : createCommentVNode("v-if", true)
8727
8788
  ]),
8728
8789
  default: withCtx(() => [
8729
- createElementVNode("span", _hoisted_2$9, [
8790
+ createElementVNode("span", _hoisted_2$a, [
8730
8791
  createTextVNode(
8731
- toDisplayString(_ctx.data.text),
8792
+ toDisplayString(__props.data.text),
8732
8793
  1
8733
8794
  /* TEXT */
8734
8795
  ),
@@ -8743,9 +8804,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
8743
8804
  ]),
8744
8805
  _: 1
8745
8806
  /* 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 || {})),
8807
+ }, 8, ["disabled"])) : __props.data.type === "component" ? (openBlock(), createBlock(
8808
+ resolveDynamicComponent(__props.data.component),
8809
+ mergeProps({ key: 4 }, __props.data.props || {}, toHandlers(__props.data.listeners || {})),
8749
8810
  null,
8750
8811
  16
8751
8812
  /* FULL_PROPS */
@@ -8763,7 +8824,7 @@ const _hoisted_1$k = {
8763
8824
  id: "m-editor-page-bar-add-icon",
8764
8825
  class: "m-editor-page-bar-item m-editor-page-bar-item-icon"
8765
8826
  };
8766
- const _hoisted_2$8 = {
8827
+ const _hoisted_2$9 = {
8767
8828
  key: 1,
8768
8829
  style: { "width": "21px" }
8769
8830
  };
@@ -8814,7 +8875,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
8814
8875
  _: 1
8815
8876
  /* STABLE */
8816
8877
  })
8817
- ])) : (openBlock(), createElementBlock("div", _hoisted_2$8));
8878
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$9));
8818
8879
  };
8819
8880
  }
8820
8881
  });
@@ -8823,7 +8884,7 @@ const _hoisted_1$j = {
8823
8884
  class: "m-editor-page-bar",
8824
8885
  ref: "pageBar"
8825
8886
  };
8826
- const _hoisted_2$7 = {
8887
+ const _hoisted_2$8 = {
8827
8888
  key: 0,
8828
8889
  class: "m-editor-page-bar-items",
8829
8890
  ref: "itemsContainer"
@@ -8952,9 +9013,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
8952
9013
  _hoisted_1$j,
8953
9014
  [
8954
9015
  renderSlot(_ctx.$slots, "prepend"),
8955
- _ctx.length ? (openBlock(), createElementBlock(
9016
+ __props.length ? (openBlock(), createElementBlock(
8956
9017
  "div",
8957
- _hoisted_2$7,
9018
+ _hoisted_2$8,
8958
9019
  [
8959
9020
  renderSlot(_ctx.$slots, "default")
8960
9021
  ],
@@ -8988,6 +9049,8 @@ const _hoisted_1$i = {
8988
9049
  id: "m-editor-page-bar-list-icon",
8989
9050
  class: "m-editor-page-bar-item m-editor-page-bar-item-icon"
8990
9051
  };
9052
+ const _hoisted_2$7 = { class: "page-bar-popover-wrapper" };
9053
+ const _hoisted_3$3 = { class: "page-bar-popover-inner" };
8991
9054
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
8992
9055
  ...{
8993
9056
  name: "MEditorPageList"
@@ -9022,25 +9085,27 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
9022
9085
  })
9023
9086
  ]),
9024
9087
  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
- ))
9088
+ createElementVNode("div", _hoisted_2$7, [
9089
+ createElementVNode("div", _hoisted_3$3, [
9090
+ renderSlot(_ctx.$slots, "page-list-popover", { list: __props.list }, () => [
9091
+ (openBlock(true), createElementBlock(
9092
+ Fragment,
9093
+ null,
9094
+ renderList(__props.list, (item, index) => {
9095
+ return openBlock(), createBlock(_sfc_main$z, {
9096
+ data: {
9097
+ type: "button",
9098
+ text: item.devconfig?.tabName || item.name || item.id,
9099
+ className: item.id === page.value?.id ? "active" : "",
9100
+ handler: () => switchPage(item.id)
9101
+ },
9102
+ key: index
9103
+ }, null, 8, ["data"]);
9104
+ }),
9105
+ 128
9106
+ /* KEYED_FRAGMENT */
9107
+ ))
9108
+ ])
9044
9109
  ])
9045
9110
  ])
9046
9111
  ]),
@@ -9198,7 +9263,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
9198
9263
  return openBlock(), createElementBlock("div", _hoisted_1$g, [
9199
9264
  createVNode(_sfc_main$x, {
9200
9265
  ref: "pageBarScrollContainer",
9201
- "page-bar-sort-options": _ctx.pageBarSortOptions,
9266
+ "page-bar-sort-options": __props.pageBarSortOptions,
9202
9267
  length: list.value.length
9203
9268
  }, {
9204
9269
  prepend: withCtx(() => [
@@ -9337,7 +9402,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
9337
9402
  /* CACHED */
9338
9403
  ))
9339
9404
  ]),
9340
- !_ctx.disabledPageFragment ? (openBlock(), createElementBlock("div", {
9405
+ !__props.disabledPageFragment ? (openBlock(), createElementBlock("div", {
9341
9406
  key: 0,
9342
9407
  class: "m-editor-empty-button",
9343
9408
  onClick: _cache[1] || (_cache[1] = ($event) => clickHandler(unref(NodeType).PAGE_FRAGMENT))
@@ -9462,13 +9527,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
9462
9527
  ]),
9463
9528
  center: withCtx(() => [
9464
9529
  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"])
9530
+ createVNode(_sfc_main$t, { "disabled-page-fragment": __props.disabledPageFragment }, null, 8, ["disabled-page-fragment"])
9466
9531
  ]),
9467
9532
  renderSlot(_ctx.$slots, "page-bar", {}, () => [
9468
9533
  createVNode(_sfc_main$u, {
9469
- "disabled-page-fragment": _ctx.disabledPageFragment,
9470
- "page-bar-sort-options": _ctx.pageBarSortOptions,
9471
- "filter-function": _ctx.pageFilterFunction
9534
+ "disabled-page-fragment": __props.disabledPageFragment,
9535
+ "page-bar-sort-options": __props.pageBarSortOptions,
9536
+ "filter-function": __props.pageFilterFunction
9472
9537
  }, {
9473
9538
  "page-bar-add-button": withCtx(() => [
9474
9539
  renderSlot(_ctx.$slots, "page-bar-add-button")
@@ -9680,7 +9745,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
9680
9745
  "div",
9681
9746
  {
9682
9747
  class: "m-editor-nav-menu",
9683
- style: normalizeStyle({ height: `${_ctx.height}px` }),
9748
+ style: normalizeStyle({ height: `${__props.height}px` }),
9684
9749
  ref: "navMenu"
9685
9750
  },
9686
9751
  [
@@ -9788,12 +9853,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
9788
9853
  ref: "configForm",
9789
9854
  class: normalizeClass(propsPanelSize.value),
9790
9855
  "popper-class": `m-editor-props-panel-popper ${propsPanelSize.value}`,
9791
- "label-width": _ctx.labelWidth,
9792
- "label-position": _ctx.labelPosition,
9856
+ "label-width": __props.labelWidth,
9857
+ "label-position": __props.labelPosition,
9793
9858
  size: propsPanelSize.value,
9794
- "init-values": _ctx.values,
9795
- config: _ctx.config,
9796
- "extend-state": _ctx.extendState,
9859
+ "init-values": __props.values,
9860
+ config: __props.config,
9861
+ "extend-state": __props.extendState,
9797
9862
  onChange: submit,
9798
9863
  onError: errorHandler
9799
9864
  }, null, 8, ["class", "popper-class", "label-width", "label-position", "size", "init-values", "config", "extend-state"])
@@ -9801,7 +9866,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
9801
9866
  _: 1
9802
9867
  /* STABLE */
9803
9868
  }),
9804
- !_ctx.disabledShowSrc ? (openBlock(), createBlock(unref(TMagicButton), {
9869
+ !__props.disabledShowSrc ? (openBlock(), createBlock(unref(TMagicButton), {
9805
9870
  key: 0,
9806
9871
  class: "m-editor-props-panel-src-icon",
9807
9872
  circle: "",
@@ -9819,7 +9884,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
9819
9884
  key: 1,
9820
9885
  class: "m-editor-props-panel-src-code",
9821
9886
  height: `${unref(editorContentHeight)}px`,
9822
- "init-values": _ctx.codeValueKey ? _ctx.values[_ctx.codeValueKey] : _ctx.values,
9887
+ "init-values": __props.codeValueKey ? __props.values[__props.codeValueKey] : __props.values,
9823
9888
  options: unref(codeOptions),
9824
9889
  parse: true,
9825
9890
  onSave: saveCode
@@ -10003,8 +10068,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
10003
10068
  class: normalizeClass(["m-editor-props-property-panel", { "show-style-panel": unref(showStylePanel) }]),
10004
10069
  config: curFormConfig.value,
10005
10070
  values: values.value,
10006
- disabledShowSrc: _ctx.disabledShowSrc,
10007
- extendState: _ctx.extendState,
10071
+ disabledShowSrc: __props.disabledShowSrc,
10072
+ extendState: __props.extendState,
10008
10073
  onSubmit: submit,
10009
10074
  onSubmitError: errorHandler,
10010
10075
  onFormError: errorHandler,
@@ -10022,8 +10087,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
10022
10087
  "code-value-key": "style",
10023
10088
  config: styleFormConfig,
10024
10089
  values: values.value,
10025
- disabledShowSrc: _ctx.disabledShowSrc,
10026
- extendState: _ctx.extendState,
10090
+ disabledShowSrc: __props.disabledShowSrc,
10091
+ extendState: __props.extendState,
10027
10092
  onSubmit: submit,
10028
10093
  onSubmitError: errorHandler,
10029
10094
  onFormError: errorHandler
@@ -10216,12 +10281,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
10216
10281
  (openBlock(true), createElementBlock(
10217
10282
  Fragment,
10218
10283
  null,
10219
- renderList(_ctx.menuData, (item, index) => {
10284
+ renderList(__props.menuData, (item, index) => {
10220
10285
  return openBlock(), createBlock(_sfc_main$z, {
10221
10286
  "event-type": "mouseup",
10222
10287
  ref_for: true,
10223
10288
  ref: "buttons",
10224
- class: normalizeClass({ active: _ctx.active && item.id === _ctx.active }),
10289
+ class: normalizeClass({ active: __props.active && item.id === __props.active }),
10225
10290
  data: item,
10226
10291
  key: index,
10227
10292
  onMouseup: clickHandler,
@@ -10237,7 +10302,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
10237
10302
  key: 0,
10238
10303
  class: "sub-menu",
10239
10304
  ref: "subMenu",
10240
- active: _ctx.active,
10305
+ active: __props.active,
10241
10306
  "menu-data": subMenuData.value,
10242
10307
  "is-sub-menu": true,
10243
10308
  onHide: hide
@@ -10367,10 +10432,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
10367
10432
  return withDirectives((openBlock(), createElementBlock("div", {
10368
10433
  class: "m-editor-tree-node",
10369
10434
  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),
10435
+ "data-node-id": __props.data.id,
10436
+ "data-parent-id": __props.parent?.id,
10437
+ "data-parents-id": __props.parentsId,
10438
+ "data-is-container": Array.isArray(__props.data.items),
10374
10439
  onDragstart: handleDragStart,
10375
10440
  onDragleave: handleDragLeave,
10376
10441
  onDragend: handleDragEnd
@@ -10379,7 +10444,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
10379
10444
  "div",
10380
10445
  {
10381
10446
  class: normalizeClass(["tree-node", { selected: selected.value, expanded: expanded.value }]),
10382
- style: normalizeStyle(`padding-left: ${_ctx.indent}px`),
10447
+ style: normalizeStyle(`padding-left: ${__props.indent}px`),
10383
10448
  onContextmenu: nodeContextmenuHandler,
10384
10449
  onMouseenter: mouseenterHandler
10385
10450
  },
@@ -10394,18 +10459,18 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
10394
10459
  class: "tree-node-content",
10395
10460
  onClick: nodeClickHandler
10396
10461
  }, [
10397
- renderSlot(_ctx.$slots, "tree-node-content", { data: _ctx.data }, () => [
10462
+ renderSlot(_ctx.$slots, "tree-node-content", { data: __props.data }, () => [
10398
10463
  createElementVNode("div", _hoisted_2$3, [
10399
- renderSlot(_ctx.$slots, "tree-node-label", { data: _ctx.data }, () => [
10464
+ renderSlot(_ctx.$slots, "tree-node-label", { data: __props.data }, () => [
10400
10465
  createTextVNode(
10401
- toDisplayString(`${_ctx.data.name} (${_ctx.data.id})`),
10466
+ toDisplayString(`${__props.data.name} (${__props.data.id})`),
10402
10467
  1
10403
10468
  /* TEXT */
10404
10469
  )
10405
10470
  ])
10406
10471
  ]),
10407
10472
  createElementVNode("div", _hoisted_3$1, [
10408
- renderSlot(_ctx.$slots, "tree-node-tool", { data: _ctx.data })
10473
+ renderSlot(_ctx.$slots, "tree-node-tool", { data: __props.data })
10409
10474
  ])
10410
10475
  ])
10411
10476
  ])
@@ -10417,14 +10482,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
10417
10482
  (openBlock(true), createElementBlock(
10418
10483
  Fragment,
10419
10484
  null,
10420
- renderList(_ctx.data.items, (item) => {
10485
+ renderList(__props.data.items, (item) => {
10421
10486
  return openBlock(), createBlock(_component_TreeNode, {
10422
10487
  key: item.id,
10423
10488
  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
10489
+ parent: __props.data,
10490
+ parentsId: [...__props.parentsId, __props.data.id],
10491
+ "node-status-map": __props.nodeStatusMap,
10492
+ indent: __props.indent + __props.nextLevelIndentIncrement
10428
10493
  }, {
10429
10494
  "tree-node-content": withCtx(({ data: nodeData }) => [
10430
10495
  renderSlot(_ctx.$slots, "tree-node-content", { data: nodeData })
@@ -10435,9 +10500,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
10435
10500
  "tree-node-tool": withCtx(({ data: nodeData }) => [
10436
10501
  renderSlot(_ctx.$slots, "tree-node-tool", { data: nodeData })
10437
10502
  ]),
10438
- _: 2
10439
- /* DYNAMIC */
10440
- }, 1032, ["data", "parent", "parentsId", "node-status-map", "indent"]);
10503
+ _: 3
10504
+ /* FORWARDED */
10505
+ }, 8, ["data", "parent", "parentsId", "node-status-map", "indent"]);
10441
10506
  }),
10442
10507
  128
10443
10508
  /* KEYED_FRAGMENT */
@@ -10481,16 +10546,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
10481
10546
  onDragover: handleDragOver
10482
10547
  },
10483
10548
  [
10484
- _ctx.data?.length ? (openBlock(true), createElementBlock(
10549
+ __props.data?.length ? (openBlock(true), createElementBlock(
10485
10550
  Fragment,
10486
10551
  { key: 0 },
10487
- renderList(_ctx.data, (item) => {
10552
+ renderList(__props.data, (item) => {
10488
10553
  return openBlock(), createBlock(_sfc_main$m, {
10489
10554
  key: item.id,
10490
10555
  data: item,
10491
- indent: _ctx.indent,
10492
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
10493
- "node-status-map": _ctx.nodeStatusMap
10556
+ indent: __props.indent,
10557
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
10558
+ "node-status-map": __props.nodeStatusMap
10494
10559
  }, {
10495
10560
  "tree-node-content": withCtx(({ data: nodeData }) => [
10496
10561
  renderSlot(_ctx.$slots, "tree-node-content", { data: nodeData })
@@ -10501,9 +10566,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
10501
10566
  "tree-node-tool": withCtx(({ data: nodeData }) => [
10502
10567
  renderSlot(_ctx.$slots, "tree-node-tool", { data: nodeData })
10503
10568
  ]),
10504
- _: 2
10505
- /* DYNAMIC */
10506
- }, 1032, ["data", "indent", "next-level-indent-increment", "node-status-map"]);
10569
+ _: 3
10570
+ /* FORWARDED */
10571
+ }, 8, ["data", "indent", "next-level-indent-increment", "node-status-map"]);
10507
10572
  }),
10508
10573
  128
10509
10574
  /* KEYED_FRAGMENT */
@@ -10511,7 +10576,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
10511
10576
  createElementVNode(
10512
10577
  "p",
10513
10578
  null,
10514
- toDisplayString(_ctx.emptyText),
10579
+ toDisplayString(__props.emptyText),
10515
10580
  1
10516
10581
  /* TEXT */
10517
10582
  )
@@ -10633,8 +10698,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
10633
10698
  return openBlock(), createBlock(_sfc_main$l, {
10634
10699
  data: codeList.value,
10635
10700
  "node-status-map": unref(nodeStatusMap),
10636
- indent: _ctx.indent,
10637
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
10701
+ indent: __props.indent,
10702
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
10638
10703
  onNodeClick: clickHandler,
10639
10704
  onNodeContextmenu: nodeContentMenuHandler
10640
10705
  }, {
@@ -10850,9 +10915,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
10850
10915
  createCommentVNode(" 代码块列表 "),
10851
10916
  createVNode(_sfc_main$k, {
10852
10917
  ref: "codeBlockList",
10853
- "custom-error": _ctx.customError,
10854
- indent: _ctx.indent,
10855
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
10918
+ "custom-error": __props.customError,
10919
+ indent: __props.indent,
10920
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
10856
10921
  onEdit: unref(editCode),
10857
10922
  onRemove: unref(deleteCode),
10858
10923
  onNodeContextmenu: unref(nodeContentMenuHandler)
@@ -10990,16 +11055,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
10990
11055
  "onUpdate:width": _cache[1] || (_cache[1] = ($event) => width.value = $event),
10991
11056
  height: unref(editorHeight),
10992
11057
  "onUpdate:height": _cache[2] || (_cache[2] = ($event) => isRef(editorHeight) ? editorHeight.value = $event : null),
10993
- title: _ctx.title,
11058
+ title: __props.title,
10994
11059
  position: unref(boxPosition)
10995
11060
  }, {
10996
11061
  body: withCtx(() => [
10997
11062
  createVNode(unref(MFormBox), {
10998
11063
  "label-width": "80px",
10999
- title: _ctx.title,
11064
+ title: __props.title,
11000
11065
  config: dataSourceConfig.value,
11001
11066
  values: initValues.value,
11002
- disabled: _ctx.disabled,
11067
+ disabled: __props.disabled,
11003
11068
  style: { "height": "100%" },
11004
11069
  onSubmit: submitHandler,
11005
11070
  onError: errorHandler
@@ -11115,8 +11180,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11115
11180
  return openBlock(), createBlock(_sfc_main$l, {
11116
11181
  data: list.value,
11117
11182
  "node-status-map": unref(nodeStatusMap),
11118
- indent: _ctx.indent,
11119
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
11183
+ indent: __props.indent,
11184
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
11120
11185
  onNodeClick: clickHandler,
11121
11186
  onNodeContextmenu: nodeContentMenuHandler
11122
11187
  }, {
@@ -11381,8 +11446,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
11381
11446
  createCommentVNode(" 数据源列表 "),
11382
11447
  createVNode(_sfc_main$h, {
11383
11448
  ref: "dataSourceList",
11384
- indent: _ctx.indent,
11385
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
11449
+ indent: __props.indent,
11450
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
11386
11451
  onEdit: unref(editHandler),
11387
11452
  onRemove: removeHandler,
11388
11453
  onNodeContextmenu: unref(nodeContentMenuHandler)
@@ -11648,11 +11713,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
11648
11713
  });
11649
11714
  };
11650
11715
  return (_ctx, _cache) => {
11651
- return _ctx.data.type !== "page" ? (openBlock(), createElementBlock(
11716
+ return __props.data.type !== "page" ? (openBlock(), createElementBlock(
11652
11717
  Fragment,
11653
11718
  { key: 0 },
11654
11719
  [
11655
- _ctx.data.visible === false ? (openBlock(), createBlock(_sfc_main$1r, {
11720
+ __props.data.visible === false ? (openBlock(), createBlock(_sfc_main$1r, {
11656
11721
  key: 0,
11657
11722
  icon: unref(Hide),
11658
11723
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => setNodeVisible(true), ["stop"])),
@@ -12195,8 +12260,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
12195
12260
  ref: "tree",
12196
12261
  data: nodeData.value,
12197
12262
  "node-status-map": unref(nodeStatusMap),
12198
- indent: _ctx.indent,
12199
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
12263
+ indent: __props.indent,
12264
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
12200
12265
  onNodeDragover: unref(handleDragOver),
12201
12266
  onNodeDragstart: unref(handleDragStart),
12202
12267
  onNodeDragleave: unref(handleDragLeave),
@@ -12222,8 +12287,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
12222
12287
  (openBlock(), createBlock(Teleport, { to: "body" }, [
12223
12288
  createVNode(_sfc_main$e, {
12224
12289
  ref: "menu",
12225
- "layer-content-menu": _ctx.layerContentMenu,
12226
- "custom-content-menu": _ctx.customContentMenu,
12290
+ "layer-content-menu": __props.layerContentMenu,
12291
+ "custom-content-menu": __props.customContentMenu,
12227
12292
  onCollapseAll: collapseAllHandler
12228
12293
  }, null, 8, ["layer-content-menu", "custom-content-menu"])
12229
12294
  ]))
@@ -12256,8 +12321,15 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
12256
12321
  items: group.items.filter((item) => item.text.includes(searchText.value))
12257
12322
  }))
12258
12323
  );
12259
- const collapseValue = computed(
12260
- () => Array(list.value?.length).fill(1).map((x, i) => `${i}`)
12324
+ const collapseValue = ref();
12325
+ watch(
12326
+ list,
12327
+ () => {
12328
+ collapseValue.value = Array(list.value?.length).fill(1).map((x, i) => `${i}`);
12329
+ },
12330
+ {
12331
+ immediate: true
12332
+ }
12261
12333
  );
12262
12334
  let timeout;
12263
12335
  let clientX;
@@ -12315,7 +12387,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
12315
12387
  renderSlot(_ctx.$slots, "component-list", { componentGroupList: list.value }, () => [
12316
12388
  createVNode(unref(TMagicCollapse), {
12317
12389
  class: "ui-component-panel",
12318
- "model-value": collapseValue.value
12390
+ modelValue: collapseValue.value,
12391
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => collapseValue.value = $event)
12319
12392
  }, {
12320
12393
  default: withCtx(() => [
12321
12394
  (openBlock(true), createElementBlock(
@@ -12390,7 +12463,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
12390
12463
  ]),
12391
12464
  _: 3
12392
12465
  /* FORWARDED */
12393
- }, 8, ["model-value"])
12466
+ }, 8, ["modelValue"])
12394
12467
  ])
12395
12468
  ]),
12396
12469
  _: 3
@@ -12569,7 +12642,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
12569
12642
  Fragment,
12570
12643
  null,
12571
12644
  [
12572
- _ctx.data.type === "tabs" && _ctx.data.items.length ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
12645
+ __props.data.type === "tabs" && __props.data.items.length ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
12573
12646
  createElementVNode("div", _hoisted_2$1, [
12574
12647
  (openBlock(true), createElementBlock(
12575
12648
  Fragment,
@@ -12901,7 +12974,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
12901
12974
  "div",
12902
12975
  {
12903
12976
  ref: "bar",
12904
- class: normalizeClass(["m-editor-scroll-bar", _ctx.isHorizontal ? "horizontal" : "vertical"])
12977
+ class: normalizeClass(["m-editor-scroll-bar", __props.isHorizontal ? "horizontal" : "vertical"])
12905
12978
  },
12906
12979
  [
12907
12980
  createElementVNode(
@@ -13017,19 +13090,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
13017
13090
  /* STYLE */
13018
13091
  ),
13019
13092
  renderSlot(_ctx.$slots, "content"),
13020
- scrollHeight.value > _ctx.wrapHeight ? (openBlock(), createBlock(_sfc_main$9, {
13093
+ scrollHeight.value > __props.wrapHeight ? (openBlock(), createBlock(_sfc_main$9, {
13021
13094
  key: 0,
13022
13095
  "scroll-size": scrollHeight.value,
13023
13096
  pos: vOffset.value,
13024
- size: _ctx.wrapHeight,
13097
+ size: __props.wrapHeight,
13025
13098
  onScroll: vScrollHandler
13026
13099
  }, null, 8, ["scroll-size", "pos", "size"])) : createCommentVNode("v-if", true),
13027
- scrollWidth.value > _ctx.wrapWidth ? (openBlock(), createBlock(_sfc_main$9, {
13100
+ scrollWidth.value > __props.wrapWidth ? (openBlock(), createBlock(_sfc_main$9, {
13028
13101
  key: 1,
13029
13102
  "is-horizontal": true,
13030
13103
  "scroll-size": scrollWidth.value,
13031
13104
  pos: hOffset.value,
13032
- size: _ctx.wrapWidth,
13105
+ size: __props.wrapWidth,
13033
13106
  onScroll: hScrollHandler
13034
13107
  }, null, 8, ["scroll-size", "pos", "size"])) : createCommentVNode("v-if", true)
13035
13108
  ],
@@ -13616,13 +13689,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
13616
13689
  onClick: _cache[0] || (_cache[0] = ($event) => stageWrapRef.value?.container?.focus())
13617
13690
  }, {
13618
13691
  content: withCtx(() => [
13619
- !_ctx.disabledStageOverlay ? (openBlock(), createBlock(_sfc_main$6, { key: 0 })) : createCommentVNode("v-if", true),
13692
+ !__props.disabledStageOverlay ? (openBlock(), createBlock(_sfc_main$6, { key: 0 })) : createCommentVNode("v-if", true),
13620
13693
  (openBlock(), createBlock(Teleport, { to: "body" }, [
13621
13694
  createVNode(_sfc_main$4, {
13622
13695
  ref: "menu",
13623
13696
  "is-multi-select": isMultiSelect.value,
13624
- "stage-content-menu": _ctx.stageContentMenu,
13625
- "custom-content-menu": _ctx.customContentMenu
13697
+ "stage-content-menu": __props.stageContentMenu,
13698
+ "custom-content-menu": __props.customContentMenu
13626
13699
  }, null, 8, ["is-multi-select", "stage-content-menu", "custom-content-menu"])
13627
13700
  ]))
13628
13701
  ]),
@@ -13735,9 +13808,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
13735
13808
  page.value && (unref(stageOptions)?.render || unref(stageOptions)?.runtimeUrl) ? (openBlock(), createBlock(_sfc_main$3, {
13736
13809
  key: 0,
13737
13810
  "stage-options": unref(stageOptions),
13738
- "disabled-stage-overlay": _ctx.disabledStageOverlay,
13739
- "stage-content-menu": _ctx.stageContentMenu,
13740
- "custom-content-menu": _ctx.customContentMenu
13811
+ "disabled-stage-overlay": __props.disabledStageOverlay,
13812
+ "stage-content-menu": __props.stageContentMenu,
13813
+ "custom-content-menu": __props.customContentMenu
13741
13814
  }, null, 8, ["stage-options", "disabled-stage-overlay", "stage-content-menu", "custom-content-menu"])) : createCommentVNode("v-if", true)
13742
13815
  ]),
13743
13816
  renderSlot(_ctx.$slots, "workspace-content")
@@ -16552,16 +16625,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16552
16625
  __expose(services);
16553
16626
  return (_ctx, _cache) => {
16554
16627
  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
16628
+ "disabled-page-fragment": __props.disabledPageFragment,
16629
+ "page-bar-sort-options": __props.pageBarSortOptions,
16630
+ "page-filter-function": __props.pageFilterFunction
16558
16631
  }, {
16559
16632
  header: withCtx(() => [
16560
16633
  renderSlot(_ctx.$slots, "header")
16561
16634
  ]),
16562
16635
  nav: withCtx(() => [
16563
16636
  renderSlot(_ctx.$slots, "nav", { editorService: unref(editorService) }, () => [
16564
- createVNode(_sfc_main$r, { data: _ctx.menu }, null, 8, ["data"])
16637
+ createVNode(_sfc_main$r, { data: __props.menu }, null, 8, ["data"])
16565
16638
  ])
16566
16639
  ]),
16567
16640
  "content-before": withCtx(() => [
@@ -16573,11 +16646,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16573
16646
  sidebar: withCtx(() => [
16574
16647
  renderSlot(_ctx.$slots, "sidebar", { editorService: unref(editorService) }, () => [
16575
16648
  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
16649
+ data: __props.sidebar,
16650
+ "layer-content-menu": __props.layerContentMenu,
16651
+ "custom-content-menu": __props.customContentMenu,
16652
+ indent: __props.treeIndent,
16653
+ "next-level-indent-increment": __props.treeNextLevelIndentIncrement
16581
16654
  }, {
16582
16655
  "layer-panel-header": withCtx(() => [
16583
16656
  renderSlot(_ctx.$slots, "layer-panel-header")
@@ -16626,9 +16699,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16626
16699
  workspace: withCtx(() => [
16627
16700
  renderSlot(_ctx.$slots, "workspace", { editorService: unref(editorService) }, () => [
16628
16701
  createVNode(_sfc_main$1, {
16629
- "disabled-stage-overlay": _ctx.disabledStageOverlay,
16630
- "stage-content-menu": _ctx.stageContentMenu,
16631
- "custom-content-menu": _ctx.customContentMenu
16702
+ "disabled-stage-overlay": __props.disabledStageOverlay,
16703
+ "stage-content-menu": __props.stageContentMenu,
16704
+ "custom-content-menu": __props.customContentMenu
16632
16705
  }, {
16633
16706
  stage: withCtx(() => [
16634
16707
  renderSlot(_ctx.$slots, "stage")
@@ -16644,8 +16717,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16644
16717
  "props-panel": withCtx(() => [
16645
16718
  renderSlot(_ctx.$slots, "props-panel", {}, () => [
16646
16719
  createVNode(_sfc_main$p, {
16647
- "extend-state": _ctx.extendFormState,
16648
- "disabled-show-src": _ctx.disabledShowSrc,
16720
+ "extend-state": __props.extendFormState,
16721
+ "disabled-show-src": __props.disabledShowSrc,
16649
16722
  onMounted: propsPanelMountedHandler,
16650
16723
  onUnmounted: propsPanelUnmountedHandler,
16651
16724
  onFormError: propsPanelFormErrorHandler,