@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.
@@ -4820,7 +4820,7 @@
4820
4820
  return (array && array.length) ? baseUniq(array) : [];
4821
4821
  }
4822
4822
 
4823
- const _hoisted_1$10 = ["src"];
4823
+ const _hoisted_1$$ = ["src"];
4824
4824
  const _sfc_main$1r = /* @__PURE__ */ vue.defineComponent({
4825
4825
  ...{
4826
4826
  name: "MEditorIcon"
@@ -4832,7 +4832,7 @@
4832
4832
  setup(__props) {
4833
4833
  const isRelativePath = (str) => /^(\.|(\.\.)?\/)/.test(str);
4834
4834
  return (_ctx, _cache) => {
4835
- return !_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicIcon), {
4835
+ return !__props.icon ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicIcon), {
4836
4836
  key: 0,
4837
4837
  class: "magic-editor-icon"
4838
4838
  }, {
@@ -4841,20 +4841,20 @@
4841
4841
  ]),
4842
4842
  _: 1
4843
4843
  /* STABLE */
4844
- })) : typeof _ctx.icon === "string" && (_ctx.icon.startsWith("http") || isRelativePath(_ctx.icon)) ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicIcon), {
4844
+ })) : typeof __props.icon === "string" && (__props.icon.startsWith("http") || isRelativePath(__props.icon)) ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicIcon), {
4845
4845
  key: 1,
4846
4846
  class: "magic-editor-icon"
4847
4847
  }, {
4848
4848
  default: vue.withCtx(() => [
4849
- vue.createElementVNode("img", { src: _ctx.icon }, null, 8, _hoisted_1$10)
4849
+ vue.createElementVNode("img", { src: __props.icon }, null, 8, _hoisted_1$$)
4850
4850
  ]),
4851
4851
  _: 1
4852
4852
  /* STABLE */
4853
- })) : typeof _ctx.icon === "string" ? (vue.openBlock(), vue.createElementBlock(
4853
+ })) : typeof __props.icon === "string" ? (vue.openBlock(), vue.createElementBlock(
4854
4854
  "i",
4855
4855
  {
4856
4856
  key: 2,
4857
- class: vue.normalizeClass(["magic-editor-icon", _ctx.icon])
4857
+ class: vue.normalizeClass(["magic-editor-icon", __props.icon])
4858
4858
  },
4859
4859
  null,
4860
4860
  2
@@ -4864,7 +4864,7 @@
4864
4864
  class: "magic-editor-icon"
4865
4865
  }, {
4866
4866
  default: vue.withCtx(() => [
4867
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.toRaw(_ctx.icon))))
4867
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.toRaw(__props.icon))))
4868
4868
  ]),
4869
4869
  _: 1
4870
4870
  /* STABLE */
@@ -4882,10 +4882,10 @@
4882
4882
  emmetMonacoEs.emmetHTML(monaco__namespace);
4883
4883
  emmetMonacoEs.emmetCSS(monaco__namespace, ["css", "scss"]);
4884
4884
 
4885
- const _hoisted_1$$ = {
4885
+ const _hoisted_1$_ = {
4886
4886
  class: /* @__PURE__ */ vue.normalizeClass(`magic-code-editor`)
4887
4887
  };
4888
- const _hoisted_2$n = {
4888
+ const _hoisted_2$o = {
4889
4889
  ref: "codeEditor",
4890
4890
  class: "magic-code-editor-content"
4891
4891
  };
@@ -5080,7 +5080,7 @@
5080
5080
  }
5081
5081
  });
5082
5082
  return (_ctx, _cache) => {
5083
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$$, [
5083
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_, [
5084
5084
  (vue.openBlock(), vue.createBlock(vue.Teleport, {
5085
5085
  to: "body",
5086
5086
  disabled: !fullScreen.value
@@ -5089,10 +5089,10 @@
5089
5089
  "div",
5090
5090
  {
5091
5091
  class: vue.normalizeClass(`magic-code-editor-wrapper${fullScreen.value ? " full-screen" : ""}`),
5092
- style: vue.normalizeStyle(!fullScreen.value && _ctx.height ? `height: ${_ctx.height}` : "100%")
5092
+ style: vue.normalizeStyle(!fullScreen.value && __props.height ? `height: ${__props.height}` : "100%")
5093
5093
  },
5094
5094
  [
5095
- !_ctx.disabledFullScreen ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicButton), {
5095
+ !__props.disabledFullScreen ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicButton), {
5096
5096
  key: 0,
5097
5097
  class: "magic-code-editor-full-screen-icon",
5098
5098
  circle: "",
@@ -5107,7 +5107,7 @@
5107
5107
  })) : vue.createCommentVNode("v-if", true),
5108
5108
  vue.createElementVNode(
5109
5109
  "div",
5110
- _hoisted_2$n,
5110
+ _hoisted_2$o,
5111
5111
  null,
5112
5112
  512
5113
5113
  /* NEED_PATCH */
@@ -5146,14 +5146,14 @@
5146
5146
  };
5147
5147
  return (_ctx, _cache) => {
5148
5148
  return vue.openBlock(), vue.createBlock(_sfc_main$1q, {
5149
- height: _ctx.config.height,
5150
- "init-values": _ctx.model[_ctx.name],
5151
- language: _ctx.config.language,
5149
+ height: __props.config.height,
5150
+ "init-values": __props.model[__props.name],
5151
+ language: __props.config.language,
5152
5152
  options: {
5153
- ..._ctx.config.options,
5154
- readOnly: _ctx.disabled
5153
+ ...__props.config.options,
5154
+ readOnly: __props.disabled
5155
5155
  },
5156
- parse: _ctx.config.parse,
5156
+ parse: __props.config.parse,
5157
5157
  onSave: save
5158
5158
  }, null, 8, ["height", "init-values", "language", "options", "parse"]);
5159
5159
  };
@@ -5347,18 +5347,18 @@
5347
5347
  return vue.openBlock(), vue.createElementBlock(
5348
5348
  "div",
5349
5349
  {
5350
- class: vue.normalizeClass(["m-fields-code-select", _ctx.config.className])
5350
+ class: vue.normalizeClass(["m-fields-code-select", __props.config.className])
5351
5351
  },
5352
5352
  [
5353
5353
  vue.createVNode(vue.unref(designPlugin.TMagicCard), null, {
5354
5354
  default: vue.withCtx(() => [
5355
5355
  vue.createVNode(vue.unref(formPlugin.MContainer), {
5356
5356
  config: codeConfig.value,
5357
- size: _ctx.size,
5358
- prop: _ctx.prop,
5359
- disabled: _ctx.disabled,
5360
- lastValues: _ctx.lastValues,
5361
- model: _ctx.model[_ctx.name],
5357
+ size: __props.size,
5358
+ prop: __props.prop,
5359
+ disabled: __props.disabled,
5360
+ lastValues: __props.lastValues,
5361
+ model: __props.model[__props.name],
5362
5362
  onChange: changeHandler
5363
5363
  }, null, 8, ["config", "size", "prop", "disabled", "lastValues", "model"])
5364
5364
  ]),
@@ -5509,8 +5509,19 @@
5509
5509
  };
5510
5510
  const displayTabConfig = {
5511
5511
  title: "显示条件",
5512
- display: (_vm, { model }) => model.type !== "page",
5512
+ display: (_state, { model }) => model.type !== "page",
5513
5513
  items: [
5514
+ {
5515
+ name: core.NODE_CONDS_RESULT_KEY,
5516
+ type: "select",
5517
+ text: "条件成立时",
5518
+ defaultValue: false,
5519
+ options: [
5520
+ { text: "显示", value: false },
5521
+ { text: "隐藏", value: true }
5522
+ ],
5523
+ extra: (_state, { model }) => `条件成立时${model[core.NODE_CONDS_RESULT_KEY] ? "隐藏" : "显示"},不成立时${model[core.NODE_CONDS_RESULT_KEY] ? "显示" : "隐藏"};<br />同一条件组内的所有条件配置同时成立时表示该条件组成立,任意一个条件组成立时表示条件成立(条件组内为且的关系,条件组间为或的关系);<br />条件为空时表示成立;`
5524
+ },
5514
5525
  {
5515
5526
  type: "display-conds",
5516
5527
  name: core.NODE_CONDS_KEY,
@@ -6943,6 +6954,7 @@
6943
6954
  }
6944
6955
  /**
6945
6956
  * 更新节点
6957
+ * update后会触发依赖收集,收集完后会掉stage.update方法
6946
6958
  * @param config 新的节点配置,配置中需要有id信息
6947
6959
  * @returns 更新后的节点配置
6948
6960
  */
@@ -8033,9 +8045,9 @@
8033
8045
  return vue.openBlock(), vue.createBlock(vue.unref(formPlugin.MForm), {
8034
8046
  ref: "form",
8035
8047
  config: codeParamsConfig.value,
8036
- "init-values": _ctx.model,
8037
- disabled: _ctx.disabled,
8038
- size: _ctx.size,
8048
+ "init-values": __props.model,
8049
+ disabled: __props.disabled,
8050
+ size: __props.size,
8039
8051
  "watch-props": false,
8040
8052
  onChange: onParamsChangeHandler
8041
8053
  }, null, 8, ["config", "init-values", "disabled", "size"]);
@@ -8043,8 +8055,8 @@
8043
8055
  }
8044
8056
  });
8045
8057
 
8046
- const _hoisted_1$_ = { class: "m-fields-code-select-col" };
8047
- const _hoisted_2$m = { class: "code-select-container" };
8058
+ const _hoisted_1$Z = { class: "m-fields-code-select-col" };
8059
+ const _hoisted_2$n = { class: "code-select-container" };
8048
8060
  const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
8049
8061
  ...{
8050
8062
  name: "MFieldsCodeSelectCol"
@@ -8144,22 +8156,22 @@
8144
8156
  eventBus?.emit("edit-code", id);
8145
8157
  };
8146
8158
  return (_ctx, _cache) => {
8147
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_, [
8148
- vue.createElementVNode("div", _hoisted_2$m, [
8159
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Z, [
8160
+ vue.createElementVNode("div", _hoisted_2$n, [
8149
8161
  vue.createCommentVNode(" 代码块下拉框 "),
8150
8162
  vue.createVNode(vue.unref(formPlugin.MContainer), {
8151
8163
  class: "select",
8152
8164
  config: selectConfig,
8153
- model: _ctx.model,
8154
- size: _ctx.size,
8165
+ model: __props.model,
8166
+ size: __props.size,
8155
8167
  onChange: onCodeIdChangeHandler
8156
8168
  }, null, 8, ["model", "size"]),
8157
8169
  vue.createCommentVNode(" 查看/编辑按钮 "),
8158
- _ctx.model[_ctx.name] && hasCodeBlockSidePanel.value ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicButton), {
8170
+ __props.model[__props.name] && hasCodeBlockSidePanel.value ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicButton), {
8159
8171
  key: 0,
8160
8172
  class: "m-fields-select-action-button",
8161
- size: _ctx.size,
8162
- onClick: _cache[0] || (_cache[0] = ($event) => editCode(_ctx.model[_ctx.name]))
8173
+ size: __props.size,
8174
+ onClick: _cache[0] || (_cache[0] = ($event) => editCode(__props.model[__props.name]))
8163
8175
  }, {
8164
8176
  default: vue.withCtx(() => [
8165
8177
  vue.createVNode(_sfc_main$1r, {
@@ -8173,9 +8185,9 @@
8173
8185
  vue.createCommentVNode(" 参数填写框 "),
8174
8186
  paramsConfig.value.length ? (vue.openBlock(), vue.createBlock(_sfc_main$1m, {
8175
8187
  name: "params",
8176
- key: _ctx.model[_ctx.name],
8177
- model: _ctx.model,
8178
- size: _ctx.size,
8188
+ key: __props.model[__props.name],
8189
+ model: __props.model,
8190
+ size: __props.size,
8179
8191
  "params-config": paramsConfig.value,
8180
8192
  onChange: onParamsChangeHandler
8181
8193
  }, null, 8, ["model", "size", "params-config"])) : vue.createCommentVNode("v-if", true)
@@ -8238,12 +8250,12 @@
8238
8250
  };
8239
8251
  return (_ctx, _cache) => {
8240
8252
  return vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicSelect), {
8241
- modelValue: _ctx.model[_ctx.name],
8242
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
8253
+ modelValue: __props.model[__props.name],
8254
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
8243
8255
  clearable: "",
8244
8256
  filterable: "",
8245
- size: _ctx.size,
8246
- disabled: _ctx.disabled,
8257
+ size: __props.size,
8258
+ disabled: __props.disabled,
8247
8259
  onChange: fieldChangeHandler
8248
8260
  }, {
8249
8261
  default: vue.withCtx(() => [
@@ -8283,7 +8295,7 @@
8283
8295
  }
8284
8296
  });
8285
8297
 
8286
- const _hoisted_1$Z = {
8298
+ const _hoisted_1$Y = {
8287
8299
  ref: "title",
8288
8300
  class: "m-editor-float-box-title"
8289
8301
  };
@@ -8431,13 +8443,13 @@
8431
8443
  [
8432
8444
  vue.createElementVNode(
8433
8445
  "div",
8434
- _hoisted_1$Z,
8446
+ _hoisted_1$Y,
8435
8447
  [
8436
8448
  vue.renderSlot(_ctx.$slots, "title", {}, () => [
8437
8449
  vue.createElementVNode(
8438
8450
  "span",
8439
8451
  null,
8440
- vue.toDisplayString(_ctx.title),
8452
+ vue.toDisplayString(__props.title),
8441
8453
  1
8442
8454
  /* TEXT */
8443
8455
  )
@@ -8980,8 +8992,8 @@
8980
8992
  };
8981
8993
  };
8982
8994
 
8983
- const _hoisted_1$Y = { class: "m-editor-data-source-fields" };
8984
- const _hoisted_2$l = { class: "m-editor-data-source-fields-footer" };
8995
+ const _hoisted_1$X = { class: "m-editor-data-source-fields" };
8996
+ const _hoisted_2$m = { class: "m-editor-data-source-fields-footer" };
8985
8997
  const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
8986
8998
  ...{
8987
8999
  name: "MFieldsDataSourceFields"
@@ -9247,16 +9259,16 @@
9247
9259
  const parentFloating = vue.inject("parentFloating", vue.ref(null));
9248
9260
  const { boxPosition, calcBoxPosition } = useNextFloatBoxPosition(uiService, parentFloating);
9249
9261
  return (_ctx, _cache) => {
9250
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Y, [
9262
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
9251
9263
  vue.createVNode(vue.unref(tablePlugin.MagicTable), {
9252
- data: _ctx.model[_ctx.name],
9264
+ data: __props.model[__props.name],
9253
9265
  columns: fieldColumns,
9254
9266
  border: true
9255
9267
  }, null, 8, ["data"]),
9256
- vue.createElementVNode("div", _hoisted_2$l, [
9268
+ vue.createElementVNode("div", _hoisted_2$m, [
9257
9269
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
9258
9270
  size: "small",
9259
- disabled: _ctx.disabled,
9271
+ disabled: __props.disabled,
9260
9272
  plain: "",
9261
9273
  onClick: _cache[0] || (_cache[0] = ($event) => newFromJsonHandler())
9262
9274
  }, {
@@ -9273,7 +9285,7 @@
9273
9285
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
9274
9286
  size: "small",
9275
9287
  type: "primary",
9276
- disabled: _ctx.disabled,
9288
+ disabled: __props.disabled,
9277
9289
  plain: "",
9278
9290
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
9279
9291
  }, {
@@ -9304,8 +9316,8 @@
9304
9316
  title: fieldTitle.value,
9305
9317
  config: dataSourceFieldsConfig,
9306
9318
  values: fieldValues.value,
9307
- parentValues: _ctx.model[_ctx.name],
9308
- disabled: _ctx.disabled,
9319
+ parentValues: __props.model[__props.name],
9320
+ disabled: __props.disabled,
9309
9321
  onSubmit: fieldChange
9310
9322
  }, null, 8, ["title", "values", "parentValues", "disabled"])
9311
9323
  ]),
@@ -9326,7 +9338,7 @@
9326
9338
  vue.createVNode(vue.unref(formPlugin.MFormBox), {
9327
9339
  config: jsonFromConfig,
9328
9340
  values: jsonFromValues.value,
9329
- disabled: _ctx.disabled,
9341
+ disabled: __props.disabled,
9330
9342
  onSubmit: addFromJsonFromChange
9331
9343
  }, null, 8, ["values", "disabled"])
9332
9344
  ]),
@@ -9338,7 +9350,7 @@
9338
9350
  }
9339
9351
  });
9340
9352
 
9341
- const _hoisted_1$X = { class: "m-editor-data-source-field-select" };
9353
+ const _hoisted_1$W = { class: "m-editor-data-source-field-select" };
9342
9354
  const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
9343
9355
  __name: "FieldSelect",
9344
9356
  props: /* @__PURE__ */ vue.mergeModels({
@@ -9420,8 +9432,8 @@
9420
9432
  eventBus?.emit("edit-data-source", removeDataSourceFieldPrefix(id));
9421
9433
  };
9422
9434
  return (_ctx, _cache) => {
9423
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
9424
- _ctx.checkStrictly ? (vue.openBlock(), vue.createElementBlock(
9435
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
9436
+ __props.checkStrictly ? (vue.openBlock(), vue.createElementBlock(
9425
9437
  vue.Fragment,
9426
9438
  { key: 0 },
9427
9439
  [
@@ -9429,8 +9441,8 @@
9429
9441
  "model-value": selectDataSourceId.value,
9430
9442
  clearable: "",
9431
9443
  filterable: "",
9432
- size: _ctx.size,
9433
- disabled: _ctx.disabled,
9444
+ size: __props.size,
9445
+ disabled: __props.disabled,
9434
9446
  onChange: dsChangeHandler
9435
9447
  }, {
9436
9448
  default: vue.withCtx(() => [
@@ -9472,11 +9484,11 @@
9472
9484
  "model-value": selectFieldsId.value,
9473
9485
  clearable: "",
9474
9486
  filterable: "",
9475
- size: _ctx.size,
9476
- disabled: _ctx.disabled,
9487
+ size: __props.size,
9488
+ disabled: __props.disabled,
9477
9489
  options: fieldsOptions.value,
9478
9490
  props: {
9479
- checkStrictly: _ctx.checkStrictly
9491
+ checkStrictly: __props.checkStrictly
9480
9492
  },
9481
9493
  onChange: fieldChangeHandler
9482
9494
  }, null, 8, ["model-value", "size", "disabled", "options", "props"])
@@ -9488,11 +9500,11 @@
9488
9500
  clearable: "",
9489
9501
  filterable: "",
9490
9502
  "model-value": modelValue.value,
9491
- disabled: _ctx.disabled,
9492
- size: _ctx.size,
9503
+ disabled: __props.disabled,
9504
+ size: __props.size,
9493
9505
  options: cascaderOptions.value,
9494
9506
  props: {
9495
- checkStrictly: _ctx.checkStrictly
9507
+ checkStrictly: __props.checkStrictly
9496
9508
  },
9497
9509
  onChange: onChangeHandler
9498
9510
  }, null, 8, ["model-value", "disabled", "size", "options", "props"])),
@@ -9503,7 +9515,7 @@
9503
9515
  default: vue.withCtx(() => [
9504
9516
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
9505
9517
  class: "m-fields-select-action-button",
9506
- size: _ctx.size,
9518
+ size: __props.size,
9507
9519
  onClick: _cache[0] || (_cache[0] = ($event) => editHandler(selectDataSourceId.value))
9508
9520
  }, {
9509
9521
  default: vue.withCtx(() => [
@@ -9523,7 +9535,7 @@
9523
9535
  }
9524
9536
  });
9525
9537
 
9526
- const _hoisted_1$W = { class: "m-fields-data-source-field-select" };
9538
+ const _hoisted_1$V = { class: "m-fields-data-source-field-select" };
9527
9539
  const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
9528
9540
  ...{
9529
9541
  name: "MFieldsDataSourceFieldSelect"
@@ -9626,39 +9638,38 @@
9626
9638
  }
9627
9639
  };
9628
9640
  return (_ctx, _cache) => {
9629
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
9630
- !disabledDataSource.value && (showDataSourceFieldSelect.value || !_ctx.config.fieldConfig) ? (vue.openBlock(), vue.createBlock(_sfc_main$1h, {
9641
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
9642
+ !disabledDataSource.value && (showDataSourceFieldSelect.value || !__props.config.fieldConfig) ? (vue.openBlock(), vue.createBlock(_sfc_main$1h, {
9631
9643
  key: 0,
9632
- "model-value": _ctx.model[_ctx.name],
9633
- disabled: _ctx.disabled,
9634
- size: _ctx.size,
9635
- value: _ctx.config.value,
9644
+ "model-value": __props.model[__props.name],
9645
+ disabled: __props.disabled,
9646
+ size: __props.size,
9647
+ value: __props.config.value,
9636
9648
  checkStrictly: checkStrictly.value,
9637
- dataSourceFieldType: _ctx.config.dataSourceFieldType,
9649
+ dataSourceFieldType: __props.config.dataSourceFieldType,
9638
9650
  onChange: onChangeHandler
9639
9651
  }, null, 8, ["model-value", "disabled", "size", "value", "checkStrictly", "dataSourceFieldType"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
9640
9652
  key: 1,
9641
- config: _ctx.config.fieldConfig,
9642
- model: _ctx.model,
9643
- name: _ctx.name,
9644
- disabled: _ctx.disabled,
9645
- size: _ctx.size,
9646
- "last-values": _ctx.lastValues,
9647
- "init-values": _ctx.initValues,
9648
- values: _ctx.values,
9649
- prop: _ctx.prop,
9653
+ config: __props.config.fieldConfig,
9654
+ model: __props.model,
9655
+ name: __props.name,
9656
+ disabled: __props.disabled,
9657
+ size: __props.size,
9658
+ "last-values": __props.lastValues,
9659
+ "init-values": __props.initValues,
9660
+ values: __props.values,
9661
+ prop: __props.prop,
9650
9662
  onChange: onChangeHandler
9651
9663
  }, null, 40, ["config", "model", "name", "disabled", "size", "last-values", "init-values", "values", "prop"])),
9652
- _ctx.config.fieldConfig && !disabledDataSource.value ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicTooltip), {
9664
+ __props.config.fieldConfig && !disabledDataSource.value ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicTooltip), {
9653
9665
  key: 2,
9654
9666
  disabled: showDataSourceFieldSelect.value,
9655
9667
  content: "选择数据源"
9656
9668
  }, {
9657
9669
  default: vue.withCtx(() => [
9658
9670
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
9659
- style: { "margin-left": "5px" },
9660
9671
  type: showDataSourceFieldSelect.value ? "primary" : "default",
9661
- size: _ctx.size,
9672
+ size: __props.size,
9662
9673
  onClick: _cache[0] || (_cache[0] = ($event) => showDataSourceFieldSelect.value = !showDataSourceFieldSelect.value)
9663
9674
  }, {
9664
9675
  default: vue.withCtx(() => [
@@ -9676,9 +9687,9 @@
9676
9687
  }
9677
9688
  });
9678
9689
 
9679
- const _hoisted_1$V = { style: { "display": "flex", "flex-direction": "column", "line-height": "1.2em" } };
9680
- const _hoisted_2$k = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
9681
- const _hoisted_3$7 = { class: "el-input__inner t-input__inner" };
9690
+ const _hoisted_1$U = { style: { "display": "flex", "flex-direction": "column", "line-height": "1.2em" } };
9691
+ const _hoisted_2$l = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
9692
+ const _hoisted_3$8 = { class: "el-input__inner t-input__inner" };
9682
9693
  const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
9683
9694
  ...{
9684
9695
  name: "MFieldsDataSourceInput"
@@ -9860,11 +9871,11 @@
9860
9871
  key: 0,
9861
9872
  modelValue: state.value,
9862
9873
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.value = $event),
9863
- disabled: _ctx.disabled,
9864
- size: _ctx.size,
9874
+ disabled: __props.disabled,
9875
+ size: __props.size,
9865
9876
  clearable: true,
9866
9877
  onChange: changeHandler
9867
- }, null, 8, ["modelValue", "disabled", "size"])) : _ctx.disabled || isFocused.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(designPlugin.getDesignConfig)("components")?.autocomplete.component || "el-autocomplete"), vue.mergeProps(
9878
+ }, null, 8, ["modelValue", "disabled", "size"])) : __props.disabled || isFocused.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(designPlugin.getDesignConfig)("components")?.autocomplete.component || "el-autocomplete"), vue.mergeProps(
9868
9879
  {
9869
9880
  key: 1,
9870
9881
  class: "tmagic-design-auto-complete",
@@ -9873,8 +9884,8 @@
9873
9884
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.value = $event)
9874
9885
  },
9875
9886
  vue.unref(designPlugin.getDesignConfig)("components")?.autocomplete.props({
9876
- disabled: _ctx.disabled,
9877
- size: _ctx.size,
9887
+ disabled: __props.disabled,
9888
+ size: __props.size,
9878
9889
  fetchSuggestions: querySearch,
9879
9890
  triggerOnFocus: false,
9880
9891
  clearable: true
@@ -9890,7 +9901,7 @@
9890
9901
  vue.createVNode(_sfc_main$1r, { icon: vue.unref(iconsVue.Coin) }, null, 8, ["icon"])
9891
9902
  ]),
9892
9903
  default: vue.withCtx(({ item }) => [
9893
- vue.createElementVNode("div", _hoisted_1$V, [
9904
+ vue.createElementVNode("div", _hoisted_1$U, [
9894
9905
  vue.createElementVNode(
9895
9906
  "div",
9896
9907
  null,
@@ -9900,7 +9911,7 @@
9900
9911
  ),
9901
9912
  vue.createElementVNode(
9902
9913
  "span",
9903
- _hoisted_2$k,
9914
+ _hoisted_2$l,
9904
9915
  vue.toDisplayString(item.value),
9905
9916
  1
9906
9917
  /* TEXT */
@@ -9913,7 +9924,7 @@
9913
9924
  "div",
9914
9925
  {
9915
9926
  key: 2,
9916
- class: vue.normalizeClass(`tmagic-data-source-input-text el-input t-input t-size-${_ctx.size?.[0]} el-input--${_ctx.size}`),
9927
+ class: vue.normalizeClass(`tmagic-data-source-input-text el-input t-input t-size-${__props.size?.[0]} el-input--${__props.size}`),
9917
9928
  onMouseup: mouseupHandler
9918
9929
  },
9919
9930
  [
@@ -9923,7 +9934,7 @@
9923
9934
  class: vue.normalizeClass(`tmagic-data-source-input-text-wrapper el-input__wrapper ${isFocused.value ? " is-focus" : ""}`)
9924
9935
  },
9925
9936
  [
9926
- vue.createElementVNode("div", _hoisted_3$7, [
9937
+ vue.createElementVNode("div", _hoisted_3$8, [
9927
9938
  (vue.openBlock(true), vue.createElementBlock(
9928
9939
  vue.Fragment,
9929
9940
  null,
@@ -9944,7 +9955,7 @@
9944
9955
  )) : vue.createCommentVNode("v-if", true),
9945
9956
  item.type === "var" ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicTag), {
9946
9957
  key: index,
9947
- size: _ctx.size
9958
+ size: __props.size
9948
9959
  }, {
9949
9960
  default: vue.withCtx(() => [
9950
9961
  vue.createTextVNode(
@@ -9981,9 +9992,9 @@
9981
9992
  }
9982
9993
  });
9983
9994
 
9984
- const _hoisted_1$U = { style: { "display": "flex", "margin-bottom": "10px" } };
9985
- const _hoisted_2$j = { style: { "flex": "1" } };
9986
- const _hoisted_3$6 = { style: { "flex": "1" } };
9995
+ const _hoisted_1$T = { style: { "display": "flex", "margin-bottom": "10px" } };
9996
+ const _hoisted_2$k = { style: { "flex": "1" } };
9997
+ const _hoisted_3$7 = { style: { "flex": "1" } };
9987
9998
  const _hoisted_4$5 = { class: "dialog-footer" };
9988
9999
  const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
9989
10000
  ...{
@@ -10178,7 +10189,7 @@
10178
10189
  "onUpdate:width": _cache[2] || (_cache[2] = ($event) => width.value = $event),
10179
10190
  height: vue.unref(codeBlockEditorHeight),
10180
10191
  "onUpdate:height": _cache[3] || (_cache[3] = ($event) => vue.isRef(codeBlockEditorHeight) ? codeBlockEditorHeight.value = $event : null),
10181
- title: _ctx.content.name ? `${_ctx.disabled ? "查看" : "编辑"}${_ctx.content.name}` : "新增代码",
10192
+ title: __props.content.name ? `${__props.disabled ? "查看" : "编辑"}${__props.content.name}` : "新增代码",
10182
10193
  position: vue.unref(boxPosition),
10183
10194
  "before-close": beforeClose
10184
10195
  }, {
@@ -10189,10 +10200,10 @@
10189
10200
  ref: formBox,
10190
10201
  "label-width": "80px",
10191
10202
  "close-on-press-escape": false,
10192
- title: _ctx.content.name,
10203
+ title: __props.content.name,
10193
10204
  config: functionConfig.value,
10194
- values: _ctx.content,
10195
- disabled: _ctx.disabled,
10205
+ values: __props.content,
10206
+ disabled: __props.disabled,
10196
10207
  style: { "height": "100%" },
10197
10208
  onChange: changeHandler,
10198
10209
  onSubmit: submitForm,
@@ -10200,7 +10211,7 @@
10200
10211
  onClosed: closedHandler
10201
10212
  }, {
10202
10213
  left: vue.withCtx(() => [
10203
- !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicButton), {
10214
+ !__props.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicButton), {
10204
10215
  key: 0,
10205
10216
  type: "primary",
10206
10217
  link: "",
@@ -10266,8 +10277,8 @@
10266
10277
  ])
10267
10278
  ]),
10268
10279
  default: vue.withCtx(() => [
10269
- vue.createElementVNode("div", _hoisted_1$U, [
10270
- vue.createElementVNode("div", _hoisted_2$j, [
10280
+ vue.createElementVNode("div", _hoisted_1$T, [
10281
+ vue.createElementVNode("div", _hoisted_2$k, [
10271
10282
  vue.createVNode(vue.unref(designPlugin.TMagicTag), {
10272
10283
  size: "small",
10273
10284
  type: "info"
@@ -10283,7 +10294,7 @@
10283
10294
  /* STABLE */
10284
10295
  })
10285
10296
  ]),
10286
- vue.createElementVNode("div", _hoisted_3$6, [
10297
+ vue.createElementVNode("div", _hoisted_3$7, [
10287
10298
  vue.createVNode(vue.unref(designPlugin.TMagicTag), {
10288
10299
  size: "small",
10289
10300
  type: "success"
@@ -10305,7 +10316,7 @@
10305
10316
  type: "diff",
10306
10317
  language: "json",
10307
10318
  "disabled-full-screen": true,
10308
- initValues: _ctx.content.content,
10319
+ initValues: __props.content.content,
10309
10320
  modifiedValues: formBox.value?.form?.values.content,
10310
10321
  height: `${vue.unref(windowRect).height - 150}px`
10311
10322
  }, null, 8, ["initValues", "modifiedValues", "height"])
@@ -10322,8 +10333,8 @@
10322
10333
  }
10323
10334
  });
10324
10335
 
10325
- const _hoisted_1$T = { class: "m-editor-data-source-methods" };
10326
- const _hoisted_2$i = { class: "m-editor-data-source-methods-footer" };
10336
+ const _hoisted_1$S = { class: "m-editor-data-source-methods" };
10337
+ const _hoisted_2$j = { class: "m-editor-data-source-methods-footer" };
10327
10338
  const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
10328
10339
  ...{
10329
10340
  name: "MFieldsDataSourceMethods"
@@ -10441,17 +10452,17 @@
10441
10452
  codeBlockEditorRef.value?.hide();
10442
10453
  };
10443
10454
  return (_ctx, _cache) => {
10444
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
10455
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S, [
10445
10456
  vue.createVNode(vue.unref(tablePlugin.MagicTable), {
10446
- data: _ctx.model[_ctx.name],
10457
+ data: __props.model[__props.name],
10447
10458
  columns: methodColumns,
10448
10459
  border: true
10449
10460
  }, null, 8, ["data"]),
10450
- vue.createElementVNode("div", _hoisted_2$i, [
10461
+ vue.createElementVNode("div", _hoisted_2$j, [
10451
10462
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
10452
10463
  size: "small",
10453
10464
  type: "primary",
10454
- disabled: _ctx.disabled,
10465
+ disabled: __props.disabled,
10455
10466
  plain: "",
10456
10467
  onClick: createCodeHandler
10457
10468
  }, {
@@ -10469,10 +10480,10 @@
10469
10480
  codeConfig.value ? (vue.openBlock(), vue.createBlock(_sfc_main$1e, {
10470
10481
  key: 0,
10471
10482
  ref: "codeBlockEditor",
10472
- disabled: _ctx.disabled,
10483
+ disabled: __props.disabled,
10473
10484
  content: codeConfig.value,
10474
10485
  "is-data-source": true,
10475
- "data-source-type": _ctx.model.type,
10486
+ "data-source-type": __props.model.type,
10476
10487
  onSubmit: submitCodeHandler
10477
10488
  }, null, 8, ["disabled", "content", "data-source-type"])) : vue.createCommentVNode("v-if", true)
10478
10489
  ]);
@@ -10480,8 +10491,8 @@
10480
10491
  }
10481
10492
  });
10482
10493
 
10483
- const _hoisted_1$S = { class: "m-fields-data-source-method-select" };
10484
- const _hoisted_2$h = { class: "data-source-method-select-container" };
10494
+ const _hoisted_1$R = { class: "m-fields-data-source-method-select" };
10495
+ const _hoisted_2$i = { class: "data-source-method-select-container" };
10485
10496
  const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
10486
10497
  ...{
10487
10498
  name: "MFieldsDataSourceMethodSelect"
@@ -10567,23 +10578,23 @@
10567
10578
  eventBus?.emit("edit-data-source", id);
10568
10579
  };
10569
10580
  return (_ctx, _cache) => {
10570
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S, [
10571
- vue.createElementVNode("div", _hoisted_2$h, [
10581
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
10582
+ vue.createElementVNode("div", _hoisted_2$i, [
10572
10583
  vue.createVNode(vue.unref(formPlugin.MContainer), {
10573
10584
  class: "select",
10574
10585
  config: cascaderConfig.value,
10575
- model: _ctx.model,
10576
- size: _ctx.size,
10586
+ model: __props.model,
10587
+ size: __props.size,
10577
10588
  onChange: onChangeHandler
10578
10589
  }, null, 8, ["config", "model", "size"]),
10579
- _ctx.model[_ctx.name] && isCustomMethod.value && hasDataSourceSidePanel.value ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicTooltip), {
10590
+ __props.model[__props.name] && isCustomMethod.value && hasDataSourceSidePanel.value ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicTooltip), {
10580
10591
  key: 0,
10581
10592
  content: notEditable.value ? "查看" : "编辑"
10582
10593
  }, {
10583
10594
  default: vue.withCtx(() => [
10584
10595
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
10585
10596
  class: "m-fields-select-action-button",
10586
- size: _ctx.size,
10597
+ size: __props.size,
10587
10598
  onClick: editCodeHandler
10588
10599
  }, {
10589
10600
  default: vue.withCtx(() => [
@@ -10602,9 +10613,9 @@
10602
10613
  paramsConfig.value.length ? (vue.openBlock(), vue.createBlock(_sfc_main$1m, {
10603
10614
  key: 0,
10604
10615
  name: "params",
10605
- model: _ctx.model,
10606
- size: _ctx.size,
10607
- disabled: _ctx.disabled,
10616
+ model: __props.model,
10617
+ size: __props.size,
10618
+ disabled: __props.disabled,
10608
10619
  "params-config": paramsConfig.value,
10609
10620
  onChange: onChangeHandler
10610
10621
  }, null, 8, ["model", "size", "disabled", "params-config"])) : vue.createCommentVNode("v-if", true)
@@ -10613,8 +10624,8 @@
10613
10624
  }
10614
10625
  });
10615
10626
 
10616
- const _hoisted_1$R = { class: "m-editor-data-source-fields" };
10617
- const _hoisted_2$g = { class: "m-editor-data-source-fields-footer" };
10627
+ const _hoisted_1$Q = { class: "m-editor-data-source-fields" };
10628
+ const _hoisted_2$h = { class: "m-editor-data-source-fields-footer" };
10618
10629
  const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
10619
10630
  ...{
10620
10631
  name: "MFieldsDataSourceMocks"
@@ -10819,16 +10830,16 @@
10819
10830
  const parentFloating = vue.inject("parentFloating", vue.ref(null));
10820
10831
  const { boxPosition, calcBoxPosition } = useNextFloatBoxPosition(uiService, parentFloating);
10821
10832
  return (_ctx, _cache) => {
10822
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
10833
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
10823
10834
  vue.createVNode(vue.unref(tablePlugin.MagicTable), {
10824
- data: _ctx.model[_ctx.name],
10835
+ data: __props.model[__props.name],
10825
10836
  columns
10826
10837
  }, null, 8, ["data"]),
10827
- vue.createElementVNode("div", _hoisted_2$g, [
10838
+ vue.createElementVNode("div", _hoisted_2$h, [
10828
10839
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
10829
10840
  size: "small",
10830
10841
  type: "primary",
10831
- disabled: _ctx.disabled,
10842
+ disabled: __props.disabled,
10832
10843
  plain: "",
10833
10844
  onClick: _cache[0] || (_cache[0] = ($event) => newHandler())
10834
10845
  }, {
@@ -10858,8 +10869,8 @@
10858
10869
  "label-width": "120px",
10859
10870
  config: formConfig,
10860
10871
  values: formValues.value,
10861
- parentValues: _ctx.model[_ctx.name],
10862
- disabled: _ctx.disabled,
10872
+ parentValues: __props.model[__props.name],
10873
+ disabled: __props.disabled,
10863
10874
  onSubmit: formChangeHandler
10864
10875
  }, null, 8, ["values", "parentValues", "disabled"])
10865
10876
  ]),
@@ -10871,7 +10882,7 @@
10871
10882
  }
10872
10883
  });
10873
10884
 
10874
- const _hoisted_1$Q = { class: "m-fields-data-source-select" };
10885
+ const _hoisted_1$P = { class: "m-fields-data-source-select" };
10875
10886
  const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
10876
10887
  ...{
10877
10888
  name: "MFieldsDataSourceSelect"
@@ -10929,25 +10940,25 @@
10929
10940
  eventBus?.emit("edit-data-source", id);
10930
10941
  };
10931
10942
  return (_ctx, _cache) => {
10932
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
10943
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
10933
10944
  vue.createVNode(vue.unref(formPlugin.MSelect), {
10934
- model: _ctx.model,
10935
- name: _ctx.name,
10936
- size: _ctx.size,
10937
- prop: _ctx.prop,
10938
- disabled: _ctx.disabled,
10945
+ model: __props.model,
10946
+ name: __props.name,
10947
+ size: __props.size,
10948
+ prop: __props.prop,
10949
+ disabled: __props.disabled,
10939
10950
  config: selectConfig.value,
10940
- "last-values": _ctx.lastValues,
10951
+ "last-values": __props.lastValues,
10941
10952
  onChange: changeHandler
10942
10953
  }, null, 8, ["model", "name", "size", "prop", "disabled", "config", "last-values"]),
10943
- _ctx.model[_ctx.name] && hasDataSourceSidePanel.value ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicTooltip), {
10954
+ __props.model[__props.name] && hasDataSourceSidePanel.value ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicTooltip), {
10944
10955
  key: 0,
10945
10956
  content: notEditable.value ? "查看" : "编辑"
10946
10957
  }, {
10947
10958
  default: vue.withCtx(() => [
10948
10959
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
10949
10960
  class: "m-fields-select-action-button",
10950
- size: _ctx.size,
10961
+ size: __props.size,
10951
10962
  onClick: editHandler
10952
10963
  }, {
10953
10964
  default: vue.withCtx(() => [
@@ -10999,7 +11010,7 @@
10999
11010
  {
11000
11011
  type: "table",
11001
11012
  name: "cond",
11002
- operateColWidth: 100,
11013
+ operateColWidth: 80,
11003
11014
  enableToggleMode: false,
11004
11015
  items: [
11005
11016
  parentFields.value.length ? {
@@ -11033,7 +11044,7 @@
11033
11044
  type: "cond-op-select",
11034
11045
  parentFields: parentFields.value,
11035
11046
  label: "条件",
11036
- width: 160,
11047
+ width: 140,
11037
11048
  name: "op"
11038
11049
  },
11039
11050
  {
@@ -11087,20 +11098,20 @@
11087
11098
  return vue.openBlock(), vue.createBlock(vue.unref(formPlugin.MGroupList), {
11088
11099
  style: { "width": "100%" },
11089
11100
  config: config.value,
11090
- name: _ctx.name,
11091
- disabled: _ctx.disabled,
11092
- model: _ctx.model,
11093
- "last-values": _ctx.lastValues,
11094
- prop: _ctx.prop,
11095
- size: _ctx.size,
11101
+ name: __props.name,
11102
+ disabled: __props.disabled,
11103
+ model: __props.model,
11104
+ "last-values": __props.lastValues,
11105
+ prop: __props.prop,
11106
+ size: __props.size,
11096
11107
  onChange: changeHandler
11097
11108
  }, null, 8, ["config", "name", "disabled", "model", "last-values", "prop", "size"]);
11098
11109
  };
11099
11110
  }
11100
11111
  });
11101
11112
 
11102
- const _hoisted_1$P = { class: "m-fields-event-select" };
11103
- const _hoisted_2$f = {
11113
+ const _hoisted_1$O = { class: "m-fields-event-select" };
11114
+ const _hoisted_2$g = {
11104
11115
  key: 1,
11105
11116
  class: "fullWidth"
11106
11117
  };
@@ -11381,21 +11392,21 @@
11381
11392
  const onChangeHandler = (v, eventData) => emit("change", props.model[props.name], eventData);
11382
11393
  return (_ctx, _cache) => {
11383
11394
  const _component_m_form_table = vue.resolveComponent("m-form-table");
11384
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
11395
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
11385
11396
  isOldVersion.value ? (vue.openBlock(), vue.createBlock(_component_m_form_table, {
11386
11397
  key: 0,
11387
11398
  name: "events",
11388
- size: _ctx.size,
11389
- disabled: _ctx.disabled,
11390
- model: _ctx.model,
11399
+ size: __props.size,
11400
+ disabled: __props.disabled,
11401
+ model: __props.model,
11391
11402
  config: tableConfig.value,
11392
11403
  onChange: onChangeHandler
11393
- }, null, 8, ["size", "disabled", "model", "config"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$f, [
11404
+ }, null, 8, ["size", "disabled", "model", "config"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$g, [
11394
11405
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
11395
11406
  class: "create-button",
11396
11407
  type: "primary",
11397
- size: _ctx.size,
11398
- disabled: _ctx.disabled,
11408
+ size: __props.size,
11409
+ disabled: __props.disabled,
11399
11410
  onClick: _cache[0] || (_cache[0] = ($event) => addEvent())
11400
11411
  }, {
11401
11412
  default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
@@ -11411,15 +11422,15 @@
11411
11422
  (vue.openBlock(true), vue.createElementBlock(
11412
11423
  vue.Fragment,
11413
11424
  null,
11414
- vue.renderList(_ctx.model[_ctx.name], (cardItem, index) => {
11425
+ vue.renderList(__props.model[__props.name], (cardItem, index) => {
11415
11426
  return vue.openBlock(), vue.createBlock(vue.unref(formPlugin.MPanel), {
11416
11427
  key: index,
11417
- disabled: _ctx.disabled,
11418
- size: _ctx.size,
11419
- prop: `${_ctx.prop}.${index}`,
11428
+ disabled: __props.disabled,
11429
+ size: __props.size,
11430
+ prop: `${__props.prop}.${index}`,
11420
11431
  config: actionsConfig.value,
11421
11432
  model: cardItem,
11422
- "label-width": _ctx.config.labelWidth || "100px",
11433
+ "label-width": __props.config.labelWidth || "100px",
11423
11434
  onChange: onChangeHandler
11424
11435
  }, {
11425
11436
  header: vue.withCtx(() => [
@@ -11427,17 +11438,17 @@
11427
11438
  class: "fullWidth",
11428
11439
  config: eventNameConfig.value,
11429
11440
  model: cardItem,
11430
- disabled: _ctx.disabled,
11431
- size: _ctx.size,
11432
- prop: `${_ctx.prop}.${index}`,
11441
+ disabled: __props.disabled,
11442
+ size: __props.size,
11443
+ prop: `${__props.prop}.${index}`,
11433
11444
  onChange: eventNameChangeHandler
11434
11445
  }, null, 8, ["config", "model", "disabled", "size", "prop"]),
11435
11446
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
11436
11447
  style: { "color": "#f56c6c" },
11437
11448
  link: "",
11438
11449
  icon: vue.unref(iconsVue.Delete),
11439
- disabled: _ctx.disabled,
11440
- size: _ctx.size,
11450
+ disabled: __props.disabled,
11451
+ size: __props.size,
11441
11452
  onClick: ($event) => removeEvent(index)
11442
11453
  }, null, 8, ["icon", "disabled", "size", "onClick"])
11443
11454
  ]),
@@ -11454,7 +11465,7 @@
11454
11465
  }
11455
11466
  });
11456
11467
 
11457
- const _hoisted_1$O = {
11468
+ const _hoisted_1$N = {
11458
11469
  viewBox: "0 0 32 32",
11459
11470
  version: "1.1",
11460
11471
  xmlns: "http://www.w3.org/2000/svg",
@@ -11467,15 +11478,15 @@
11467
11478
  __name: "CodeIcon",
11468
11479
  setup(__props) {
11469
11480
  return (_ctx, _cache) => {
11470
- return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$O, [..._cache[0] || (_cache[0] = [
11481
+ return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$N, [..._cache[0] || (_cache[0] = [
11471
11482
  vue.createStaticVNode('<defs><rect id="path-1" x="0" y="0" width="32" height="32"></rect></defs><g id="组件规范" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="03图标" transform="translate(-561.000000, -2356.000000)"><g id="icon/line/Universal/code" transform="translate(561.000000, 2356.000000)"><g id="路径"><mask id="mask-2" fill="white"><use xlink:href="#path-1"></use></mask><use id="蒙版" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use><path d="M21.9284587,7.9482233 L29.8079004,15.827665 C29.9055315,15.9252961 29.9055315,16.0835874 29.8079004,16.1812184 L21.9284587,24.0606602 C21.8308276,24.1582912 21.6725364,24.1582912 21.5749053,24.0606602 L20.3374684,22.8232233 C20.2419143,22.7276698 20.2398813,22.5740096 20.331369,22.4759832 L20.3374687,22.4696702 L26.8027181,16.0044417 L20.3374687,9.53921328 C20.2398372,9.44158265 20.2398369,9.2832914 20.3374679,9.18566017 L21.5749053,7.9482233 C21.6725364,7.85059223 21.8308276,7.85059223 21.9284587,7.9482233 Z M10.3999684,7.9482233 L11.6374053,9.18566017 C11.7329594,9.28121371 11.7349925,9.43487387 11.6435048,9.53290029 L11.637405,9.53921328 L5.17215562,16.0044417 L11.637405,22.4696702 C11.7329593,22.5652236 11.7349926,22.7188837 11.643505,22.8169103 L11.6374053,22.8232233 L10.3999684,24.0606602 C10.3023374,24.1582912 10.1440461,24.1582912 10.046415,24.0606602 L2.1669733,16.1812184 C2.06934223,16.0835874 2.06934223,15.9252961 2.1669733,15.827665 L10.046415,7.9482233 C10.1440461,7.85059223 10.3023374,7.85059223 10.3999684,7.9482233 Z M17.2612532,9.29310422 L18.9262468,9.83189578 C19.0576112,9.87440526 19.1296423,10.0153579 19.0871328,10.1467222 L15.0848232,22.514807 C15.0423138,22.6461714 14.9013612,22.7182025 14.7699968,22.675693 L13.1050032,22.1369014 C12.9736388,22.0943919 12.9016077,21.9534393 12.9441172,21.822075 L16.9464268,9.45399022 C16.9889362,9.32262585 17.1298888,9.25059474 17.2612532,9.29310422 Z" id="形状" fill="#1D1F24" mask="url(#mask-2)"></path></g></g><g id="icon切图" transform="translate(226.000000, 1782.000000)"></g></g></g>', 2)
11472
11483
  ])]);
11473
11484
  };
11474
11485
  }
11475
11486
  });
11476
11487
 
11477
- const _hoisted_1$N = { class: "m-fields-key-value" };
11478
- const _hoisted_2$e = { key: 0 };
11488
+ const _hoisted_1$M = { class: "m-fields-key-value" };
11489
+ const _hoisted_2$f = { key: 0 };
11479
11490
  const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
11480
11491
  ...{
11481
11492
  name: "MFieldsKeyValue"
@@ -11538,8 +11549,8 @@
11538
11549
  emit("change", v);
11539
11550
  };
11540
11551
  return (_ctx, _cache) => {
11541
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
11542
- !showCode.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$e, [
11552
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
11553
+ !showCode.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$f, [
11543
11554
  (vue.openBlock(true), vue.createElementBlock(
11544
11555
  vue.Fragment,
11545
11556
  null,
@@ -11552,8 +11563,8 @@
11552
11563
  placeholder: "key",
11553
11564
  modelValue: records.value[index][0],
11554
11565
  "onUpdate:modelValue": ($event) => records.value[index][0] = $event,
11555
- disabled: _ctx.disabled,
11556
- size: _ctx.size,
11566
+ disabled: __props.disabled,
11567
+ size: __props.size,
11557
11568
  onChange: keyChangeHandler
11558
11569
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
11559
11570
  _cache[1] || (_cache[1] = vue.createElementVNode(
@@ -11567,15 +11578,15 @@
11567
11578
  placeholder: "value",
11568
11579
  modelValue: records.value[index][1],
11569
11580
  "onUpdate:modelValue": ($event) => records.value[index][1] = $event,
11570
- disabled: _ctx.disabled,
11571
- size: _ctx.size,
11581
+ disabled: __props.disabled,
11582
+ size: __props.size,
11572
11583
  onChange: valueChangeHandler
11573
11584
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
11574
11585
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
11575
11586
  class: "m-fields-key-value-delete",
11576
11587
  type: "danger",
11577
- size: _ctx.size,
11578
- disabled: _ctx.disabled,
11588
+ size: __props.size,
11589
+ disabled: __props.disabled,
11579
11590
  circle: "",
11580
11591
  plain: "",
11581
11592
  icon: vue.unref(iconsVue.Delete),
@@ -11588,8 +11599,8 @@
11588
11599
  )),
11589
11600
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
11590
11601
  type: "primary",
11591
- size: _ctx.size,
11592
- disabled: _ctx.disabled,
11602
+ size: __props.size,
11603
+ disabled: __props.disabled,
11593
11604
  plain: "",
11594
11605
  icon: vue.unref(iconsVue.Plus),
11595
11606
  onClick: addHandler
@@ -11605,21 +11616,21 @@
11605
11616
  /* STABLE */
11606
11617
  }, 8, ["size", "disabled", "icon"])
11607
11618
  ])) : vue.createCommentVNode("v-if", true),
11608
- _ctx.config.advanced && showCode.value ? (vue.openBlock(), vue.createBlock(_sfc_main$1q, {
11619
+ __props.config.advanced && showCode.value ? (vue.openBlock(), vue.createBlock(_sfc_main$1q, {
11609
11620
  key: 1,
11610
11621
  height: "200px",
11611
- "init-values": _ctx.model[_ctx.name],
11622
+ "init-values": __props.model[__props.name],
11612
11623
  language: "javascript",
11613
11624
  options: {
11614
- readOnly: _ctx.disabled
11625
+ readOnly: __props.disabled
11615
11626
  },
11616
11627
  parse: true,
11617
11628
  onSave: save
11618
11629
  }, null, 8, ["init-values", "options"])) : vue.createCommentVNode("v-if", true),
11619
- _ctx.config.advanced ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicButton), {
11630
+ __props.config.advanced ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicButton), {
11620
11631
  key: 2,
11621
11632
  size: "default",
11622
- disabled: _ctx.disabled,
11633
+ disabled: __props.disabled,
11623
11634
  link: "",
11624
11635
  icon: _sfc_main$17,
11625
11636
  onClick: _cache[0] || (_cache[0] = ($event) => showCode.value = !showCode.value)
@@ -11629,8 +11640,8 @@
11629
11640
  }
11630
11641
  });
11631
11642
 
11632
- const _hoisted_1$M = { class: "m-fields-page-fragment-select" };
11633
- const _hoisted_2$d = { class: "page-fragment-select-container" };
11643
+ const _hoisted_1$L = { class: "m-fields-page-fragment-select" };
11644
+ const _hoisted_2$e = { class: "page-fragment-select-container" };
11634
11645
  const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
11635
11646
  ...{
11636
11647
  name: "MFieldsPageFragmentSelect"
@@ -11677,22 +11688,22 @@
11677
11688
  };
11678
11689
  return (_ctx, _cache) => {
11679
11690
  const _component_m_form_container = vue.resolveComponent("m-form-container");
11680
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
11681
- vue.createElementVNode("div", _hoisted_2$d, [
11691
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
11692
+ vue.createElementVNode("div", _hoisted_2$e, [
11682
11693
  vue.createCommentVNode(" 页面片下拉框 "),
11683
11694
  vue.createVNode(_component_m_form_container, {
11684
11695
  class: "select",
11685
11696
  config: selectConfig,
11686
- model: _ctx.model,
11687
- size: _ctx.size,
11697
+ model: __props.model,
11698
+ size: __props.size,
11688
11699
  onChange: changeHandler
11689
11700
  }, null, 8, ["model", "size"]),
11690
11701
  vue.createCommentVNode(" 编辑按钮 "),
11691
- _ctx.model[_ctx.name] ? (vue.openBlock(), vue.createBlock(_sfc_main$1r, {
11702
+ __props.model[__props.name] ? (vue.openBlock(), vue.createBlock(_sfc_main$1r, {
11692
11703
  key: 0,
11693
11704
  class: "icon",
11694
11705
  icon: vue.unref(iconsVue.Edit),
11695
- onClick: _cache[0] || (_cache[0] = ($event) => editPageFragment(_ctx.model[_ctx.name]))
11706
+ onClick: _cache[0] || (_cache[0] = ($event) => editPageFragment(__props.model[__props.name]))
11696
11707
  }, null, 8, ["icon"])) : vue.createCommentVNode("v-if", true)
11697
11708
  ])
11698
11709
  ]);
@@ -11700,9 +11711,9 @@
11700
11711
  }
11701
11712
  });
11702
11713
 
11703
- const _hoisted_1$L = { class: "background-position-container" };
11704
- const _hoisted_2$c = { class: "presets-value-list" };
11705
- const _hoisted_3$5 = { class: "custom-value" };
11714
+ const _hoisted_1$K = { class: "background-position-container" };
11715
+ const _hoisted_2$d = { class: "presets-value-list" };
11716
+ const _hoisted_3$6 = { class: "custom-value" };
11706
11717
  const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
11707
11718
  __name: "BackgroundPosition",
11708
11719
  props: {
@@ -11758,8 +11769,8 @@
11758
11769
  emit("change", v);
11759
11770
  };
11760
11771
  return (_ctx, _cache) => {
11761
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
11762
- vue.createElementVNode("div", _hoisted_2$c, [
11772
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
11773
+ vue.createElementVNode("div", _hoisted_2$d, [
11763
11774
  (vue.openBlock(true), vue.createElementBlock(
11764
11775
  vue.Fragment,
11765
11776
  null,
@@ -11767,14 +11778,15 @@
11767
11778
  return vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicButton), {
11768
11779
  key: index,
11769
11780
  link: "",
11770
- class: vue.normalizeClass(_ctx.model[_ctx.name] === item.value && "btn-active"),
11781
+ class: vue.normalizeClass(__props.model[__props.name] === item.value && "btn-active"),
11782
+ disabled: __props.disabled,
11771
11783
  onClick: ($event) => changeHandler(item.value)
11772
11784
  }, {
11773
11785
  default: vue.withCtx(() => [
11774
11786
  vue.createElementVNode(
11775
11787
  "div",
11776
11788
  {
11777
- class: vue.normalizeClass(["position-icon", item.class, _ctx.model[_ctx.name] === item.value && "active"])
11789
+ class: vue.normalizeClass(["position-icon", item.class, __props.model[__props.name] === item.value && "active"])
11778
11790
  },
11779
11791
  null,
11780
11792
  2
@@ -11783,21 +11795,22 @@
11783
11795
  ]),
11784
11796
  _: 2
11785
11797
  /* DYNAMIC */
11786
- }, 1032, ["class", "onClick"]);
11798
+ }, 1032, ["class", "disabled", "onClick"]);
11787
11799
  }),
11788
11800
  128
11789
11801
  /* KEYED_FRAGMENT */
11790
11802
  ))
11791
11803
  ]),
11792
- vue.createElementVNode("div", _hoisted_3$5, [
11804
+ vue.createElementVNode("div", _hoisted_3$6, [
11793
11805
  vue.createVNode(vue.unref(designPlugin.TMagicInput), {
11794
- modelValue: _ctx.model[_ctx.name],
11795
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
11796
- size: "small",
11806
+ modelValue: __props.model[__props.name],
11807
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
11797
11808
  placeholder: "自定义背景位置",
11798
11809
  clearable: "",
11810
+ size: __props.size,
11811
+ disabled: __props.disabled,
11799
11812
  onChange: changeHandler
11800
- }, null, 8, ["modelValue"])
11813
+ }, null, 8, ["modelValue", "size", "disabled"])
11801
11814
  ])
11802
11815
  ]);
11803
11816
  };
@@ -11814,13 +11827,13 @@
11814
11827
 
11815
11828
  const _sfc_main$13 = { };
11816
11829
 
11817
- const _hoisted_1$K = {
11830
+ const _hoisted_1$J = {
11818
11831
  xmlns: "http://www.w3.org/2000/svg",
11819
11832
  viewBox: "0 0 1024 1024"
11820
11833
  };
11821
11834
 
11822
11835
  function _sfc_render$k(_ctx, _cache) {
11823
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$K, [...(_cache[0] || (_cache[0] = [
11836
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$J, [...(_cache[0] || (_cache[0] = [
11824
11837
  vue.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)
11825
11838
  ]))]))
11826
11839
  }
@@ -11828,13 +11841,13 @@
11828
11841
 
11829
11842
  const _sfc_main$12 = { };
11830
11843
 
11831
- const _hoisted_1$J = {
11844
+ const _hoisted_1$I = {
11832
11845
  xmlns: "http://www.w3.org/2000/svg",
11833
11846
  viewBox: "0 0 1024 1024"
11834
11847
  };
11835
11848
 
11836
11849
  function _sfc_render$j(_ctx, _cache) {
11837
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$J, [...(_cache[0] || (_cache[0] = [
11850
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$I, [...(_cache[0] || (_cache[0] = [
11838
11851
  vue.createElementVNode("path", {
11839
11852
  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",
11840
11853
  fill: "#333333"
@@ -11845,13 +11858,13 @@
11845
11858
 
11846
11859
  const _sfc_main$11 = { };
11847
11860
 
11848
- const _hoisted_1$I = {
11861
+ const _hoisted_1$H = {
11849
11862
  xmlns: "http://www.w3.org/2000/svg",
11850
11863
  viewBox: "0 0 1024 1024"
11851
11864
  };
11852
11865
 
11853
11866
  function _sfc_render$i(_ctx, _cache) {
11854
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$I, [...(_cache[0] || (_cache[0] = [
11867
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$H, [...(_cache[0] || (_cache[0] = [
11855
11868
  vue.createElementVNode("path", {
11856
11869
  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",
11857
11870
  fill: "#333333"
@@ -11862,13 +11875,13 @@
11862
11875
 
11863
11876
  const _sfc_main$10 = { };
11864
11877
 
11865
- const _hoisted_1$H = {
11878
+ const _hoisted_1$G = {
11866
11879
  xmlns: "http://www.w3.org/2000/svg",
11867
11880
  viewBox: "0 0 1024 1024"
11868
11881
  };
11869
11882
 
11870
11883
  function _sfc_render$h(_ctx, _cache) {
11871
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$H, [...(_cache[0] || (_cache[0] = [
11884
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$G, [...(_cache[0] || (_cache[0] = [
11872
11885
  vue.createElementVNode("path", {
11873
11886
  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",
11874
11887
  fill: "#5D5D5D"
@@ -11880,7 +11893,9 @@
11880
11893
  const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
11881
11894
  __name: "Background",
11882
11895
  props: {
11883
- values: {}
11896
+ values: {},
11897
+ disabled: { type: Boolean },
11898
+ size: {}
11884
11899
  },
11885
11900
  emits: ["change"],
11886
11901
  setup(__props, { emit: __emit }) {
@@ -11945,22 +11960,24 @@
11945
11960
  return (_ctx, _cache) => {
11946
11961
  return vue.openBlock(), vue.createBlock(vue.unref(formPlugin.MContainer), {
11947
11962
  config,
11948
- model: _ctx.values,
11963
+ model: __props.values,
11964
+ size: __props.size,
11965
+ disabled: __props.disabled,
11949
11966
  onChange: change
11950
- }, null, 8, ["model"]);
11967
+ }, null, 8, ["model", "size", "disabled"]);
11951
11968
  };
11952
11969
  }
11953
11970
  });
11954
11971
 
11955
11972
  const _sfc_main$_ = { };
11956
11973
 
11957
- const _hoisted_1$G = {
11974
+ const _hoisted_1$F = {
11958
11975
  xmlns: "http://www.w3.org/2000/svg",
11959
11976
  viewBox: "0 0 1024 1024"
11960
11977
  };
11961
11978
 
11962
11979
  function _sfc_render$g(_ctx, _cache) {
11963
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$G, [...(_cache[0] || (_cache[0] = [
11980
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$F, [...(_cache[0] || (_cache[0] = [
11964
11981
  vue.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 */)
11965
11982
  ]))]))
11966
11983
  }
@@ -11968,13 +11985,13 @@
11968
11985
 
11969
11986
  const _sfc_main$Z = { };
11970
11987
 
11971
- const _hoisted_1$F = {
11988
+ const _hoisted_1$E = {
11972
11989
  xmlns: "http://www.w3.org/2000/svg",
11973
11990
  viewBox: "0 0 1024 1024"
11974
11991
  };
11975
11992
 
11976
11993
  function _sfc_render$f(_ctx, _cache) {
11977
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$F, [...(_cache[0] || (_cache[0] = [
11994
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$E, [...(_cache[0] || (_cache[0] = [
11978
11995
  vue.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 */)
11979
11996
  ]))]))
11980
11997
  }
@@ -11982,13 +11999,13 @@
11982
11999
 
11983
12000
  const _sfc_main$Y = { };
11984
12001
 
11985
- const _hoisted_1$E = {
12002
+ const _hoisted_1$D = {
11986
12003
  xmlns: "http://www.w3.org/2000/svg",
11987
12004
  viewBox: "0 0 1024 1024"
11988
12005
  };
11989
12006
 
11990
12007
  function _sfc_render$e(_ctx, _cache) {
11991
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$E, [...(_cache[0] || (_cache[0] = [
12008
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$D, [...(_cache[0] || (_cache[0] = [
11992
12009
  vue.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 */)
11993
12010
  ]))]))
11994
12011
  }
@@ -11997,7 +12014,9 @@
11997
12014
  const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
11998
12015
  __name: "Font",
11999
12016
  props: {
12000
- values: {}
12017
+ values: {},
12018
+ disabled: { type: Boolean },
12019
+ size: {}
12001
12020
  },
12002
12021
  emits: ["change"],
12003
12022
  setup(__props, { emit: __emit }) {
@@ -12071,23 +12090,27 @@
12071
12090
  return (_ctx, _cache) => {
12072
12091
  return vue.openBlock(), vue.createBlock(vue.unref(formPlugin.MContainer), {
12073
12092
  config,
12074
- model: _ctx.values,
12093
+ model: __props.values,
12094
+ size: __props.size,
12095
+ disabled: __props.disabled,
12075
12096
  onChange: change
12076
- }, null, 8, ["model"]);
12097
+ }, null, 8, ["model", "size", "disabled"]);
12077
12098
  };
12078
12099
  }
12079
12100
  });
12080
12101
 
12081
- const _hoisted_1$D = { class: "layout-box-container" };
12082
- const _hoisted_2$b = {
12102
+ const _hoisted_1$C = { class: "layout-box-container" };
12103
+ const _hoisted_2$c = {
12083
12104
  key: 0,
12084
12105
  class: "help-txt"
12085
12106
  };
12086
- const _hoisted_3$4 = { class: "next-input" };
12087
- const _hoisted_4$4 = ["onUpdate:modelValue", "title", "onChange"];
12107
+ const _hoisted_3$5 = { class: "next-input" };
12108
+ const _hoisted_4$4 = ["model-value", "title", "disabled", "onChange"];
12088
12109
  const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
12089
12110
  __name: "Box",
12090
12111
  props: {
12112
+ disabled: { type: Boolean },
12113
+ size: {},
12091
12114
  model: {}
12092
12115
  },
12093
12116
  emits: ["change"],
@@ -12135,7 +12158,7 @@
12135
12158
  });
12136
12159
  };
12137
12160
  return (_ctx, _cache) => {
12138
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
12161
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
12139
12162
  (vue.openBlock(), vue.createElementBlock(
12140
12163
  vue.Fragment,
12141
12164
  null,
@@ -12149,20 +12172,19 @@
12149
12172
  [
12150
12173
  item.text ? (vue.openBlock(), vue.createElementBlock(
12151
12174
  "span",
12152
- _hoisted_2$b,
12175
+ _hoisted_2$c,
12153
12176
  vue.toDisplayString(item.text),
12154
12177
  1
12155
12178
  /* TEXT */
12156
12179
  )) : vue.createCommentVNode("v-if", true),
12157
- vue.createElementVNode("span", _hoisted_3$4, [
12158
- vue.withDirectives(vue.createElementVNode("input", {
12159
- "onUpdate:modelValue": ($event) => _ctx.model[item.name] = $event,
12160
- title: _ctx.model[item.name],
12161
- onChange: ($event) => change($event, item.name),
12162
- placeholder: "0"
12163
- }, null, 40, _hoisted_4$4), [
12164
- [vue.vModelText, _ctx.model[item.name]]
12165
- ])
12180
+ vue.createElementVNode("span", _hoisted_3$5, [
12181
+ vue.createElementVNode("input", {
12182
+ "model-value": __props.model[item.name],
12183
+ placeholder: "0",
12184
+ title: __props.model[item.name],
12185
+ disabled: __props.disabled,
12186
+ onChange: ($event) => change($event, item.name)
12187
+ }, null, 40, _hoisted_4$4)
12166
12188
  ])
12167
12189
  ],
12168
12190
  2
@@ -12179,13 +12201,13 @@
12179
12201
 
12180
12202
  const _sfc_main$V = { };
12181
12203
 
12182
- const _hoisted_1$C = {
12204
+ const _hoisted_1$B = {
12183
12205
  xmlns: "http://www.w3.org/2000/svg",
12184
12206
  viewBox: "0 0 1024 1024"
12185
12207
  };
12186
12208
 
12187
12209
  function _sfc_render$d(_ctx, _cache) {
12188
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$C, [...(_cache[0] || (_cache[0] = [
12210
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$B, [...(_cache[0] || (_cache[0] = [
12189
12211
  vue.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 */)
12190
12212
  ]))]))
12191
12213
  }
@@ -12193,13 +12215,13 @@
12193
12215
 
12194
12216
  const _sfc_main$U = { };
12195
12217
 
12196
- const _hoisted_1$B = {
12218
+ const _hoisted_1$A = {
12197
12219
  xmlns: "http://www.w3.org/2000/svg",
12198
12220
  viewBox: "0 0 1024 1024"
12199
12221
  };
12200
12222
 
12201
12223
  function _sfc_render$c(_ctx, _cache) {
12202
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$B, [...(_cache[0] || (_cache[0] = [
12224
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$A, [...(_cache[0] || (_cache[0] = [
12203
12225
  vue.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 */)
12204
12226
  ]))]))
12205
12227
  }
@@ -12207,13 +12229,13 @@
12207
12229
 
12208
12230
  const _sfc_main$T = { };
12209
12231
 
12210
- const _hoisted_1$A = {
12232
+ const _hoisted_1$z = {
12211
12233
  xmlns: "http://www.w3.org/2000/svg",
12212
12234
  viewBox: "0 0 1024 1024"
12213
12235
  };
12214
12236
 
12215
12237
  function _sfc_render$b(_ctx, _cache) {
12216
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$A, [...(_cache[0] || (_cache[0] = [
12238
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$z, [...(_cache[0] || (_cache[0] = [
12217
12239
  vue.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 */)
12218
12240
  ]))]))
12219
12241
  }
@@ -12221,13 +12243,13 @@
12221
12243
 
12222
12244
  const _sfc_main$S = { };
12223
12245
 
12224
- const _hoisted_1$z = {
12246
+ const _hoisted_1$y = {
12225
12247
  xmlns: "http://www.w3.org/2000/svg",
12226
12248
  viewBox: "0 0 1024 1024"
12227
12249
  };
12228
12250
 
12229
12251
  function _sfc_render$a(_ctx, _cache) {
12230
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$z, [...(_cache[0] || (_cache[0] = [
12252
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$y, [...(_cache[0] || (_cache[0] = [
12231
12253
  vue.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 */)
12232
12254
  ]))]))
12233
12255
  }
@@ -12235,13 +12257,13 @@
12235
12257
 
12236
12258
  const _sfc_main$R = { };
12237
12259
 
12238
- const _hoisted_1$y = {
12260
+ const _hoisted_1$x = {
12239
12261
  xmlns: "http://www.w3.org/2000/svg",
12240
12262
  viewBox: "0 0 1024 1024"
12241
12263
  };
12242
12264
 
12243
12265
  function _sfc_render$9(_ctx, _cache) {
12244
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$y, [...(_cache[0] || (_cache[0] = [
12266
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$x, [...(_cache[0] || (_cache[0] = [
12245
12267
  vue.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 */)
12246
12268
  ]))]))
12247
12269
  }
@@ -12249,13 +12271,13 @@
12249
12271
 
12250
12272
  const _sfc_main$Q = { };
12251
12273
 
12252
- const _hoisted_1$x = {
12274
+ const _hoisted_1$w = {
12253
12275
  xmlns: "http://www.w3.org/2000/svg",
12254
12276
  viewBox: "0 0 1024 1024"
12255
12277
  };
12256
12278
 
12257
12279
  function _sfc_render$8(_ctx, _cache) {
12258
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$x, [...(_cache[0] || (_cache[0] = [
12280
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$w, [...(_cache[0] || (_cache[0] = [
12259
12281
  vue.createElementVNode("path", { d: "M896 320H128V0h768v320z m0 320H128v-256h768v256z m-128 192l-256 192-256-192 192-0.032V704h128v128h192z" }, null, -1 /* CACHED */)
12260
12282
  ]))]))
12261
12283
  }
@@ -12263,13 +12285,13 @@
12263
12285
 
12264
12286
  const _sfc_main$P = { };
12265
12287
 
12266
- const _hoisted_1$w = {
12288
+ const _hoisted_1$v = {
12267
12289
  xmlns: "http://www.w3.org/2000/svg",
12268
12290
  viewBox: "0 0 1024 1024"
12269
12291
  };
12270
12292
 
12271
12293
  function _sfc_render$7(_ctx, _cache) {
12272
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$w, [...(_cache[0] || (_cache[0] = [
12294
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$v, [...(_cache[0] || (_cache[0] = [
12273
12295
  vue.createElementVNode("path", { d: "M896 704H128v320h768V704z m0-320H128v256h768v-256z m-128-192l-256-192-256 192 192 0.032V320h128V192h192z" }, null, -1 /* CACHED */)
12274
12296
  ]))]))
12275
12297
  }
@@ -12277,13 +12299,13 @@
12277
12299
 
12278
12300
  const _sfc_main$O = { };
12279
12301
 
12280
- const _hoisted_1$v = {
12302
+ const _hoisted_1$u = {
12281
12303
  xmlns: "http://www.w3.org/2000/svg",
12282
12304
  viewBox: "0 0 1024 1024"
12283
12305
  };
12284
12306
 
12285
12307
  function _sfc_render$6(_ctx, _cache) {
12286
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$v, [...(_cache[0] || (_cache[0] = [
12308
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$u, [...(_cache[0] || (_cache[0] = [
12287
12309
  vue.createElementVNode("path", { d: "M320 128v768H0V128h320z m320 0v768h-256V128h256z m192 128l192 256-192 256-0.032-192H704v-128h128V256z" }, null, -1 /* CACHED */)
12288
12310
  ]))]))
12289
12311
  }
@@ -12291,13 +12313,13 @@
12291
12313
 
12292
12314
  const _sfc_main$N = { };
12293
12315
 
12294
- const _hoisted_1$u = {
12316
+ const _hoisted_1$t = {
12295
12317
  xmlns: "http://www.w3.org/2000/svg",
12296
12318
  viewBox: "0 0 1024 1024"
12297
12319
  };
12298
12320
 
12299
12321
  function _sfc_render$5(_ctx, _cache) {
12300
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$u, [...(_cache[0] || (_cache[0] = [
12322
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$t, [...(_cache[0] || (_cache[0] = [
12301
12323
  vue.createElementVNode("path", { d: "M704 128v768h320V128H704zM384 128v768h256V128h-256zM192 256l-192 256 192 256 0.032-192H320v-128H192V256z" }, null, -1 /* CACHED */)
12302
12324
  ]))]))
12303
12325
  }
@@ -12305,13 +12327,13 @@
12305
12327
 
12306
12328
  const _sfc_main$M = { };
12307
12329
 
12308
- const _hoisted_1$t = {
12330
+ const _hoisted_1$s = {
12309
12331
  xmlns: "http://www.w3.org/2000/svg",
12310
12332
  viewBox: "0 0 1024 1024"
12311
12333
  };
12312
12334
 
12313
12335
  function _sfc_render$4(_ctx, _cache) {
12314
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$t, [...(_cache[0] || (_cache[0] = [
12336
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$s, [...(_cache[0] || (_cache[0] = [
12315
12337
  vue.createElementVNode("path", { d: "M480 1024V0h64v1024h-64z m128-64V64h320v896H608zM96 960V64h320v896H96z" }, null, -1 /* CACHED */)
12316
12338
  ]))]))
12317
12339
  }
@@ -12319,13 +12341,13 @@
12319
12341
 
12320
12342
  const _sfc_main$L = { };
12321
12343
 
12322
- const _hoisted_1$s = {
12344
+ const _hoisted_1$r = {
12323
12345
  xmlns: "http://www.w3.org/2000/svg",
12324
12346
  viewBox: "0 0 1024 1024"
12325
12347
  };
12326
12348
 
12327
12349
  function _sfc_render$3(_ctx, _cache) {
12328
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$s, [...(_cache[0] || (_cache[0] = [
12350
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$r, [...(_cache[0] || (_cache[0] = [
12329
12351
  vue.createElementVNode("path", { d: "M416 160H96v704h320V160z m384 0H480v704h320V160z m128-160h-64v1024h64V0z" }, null, -1 /* CACHED */)
12330
12352
  ]))]))
12331
12353
  }
@@ -12333,13 +12355,13 @@
12333
12355
 
12334
12356
  const _sfc_main$K = { };
12335
12357
 
12336
- const _hoisted_1$r = {
12358
+ const _hoisted_1$q = {
12337
12359
  xmlns: "http://www.w3.org/2000/svg",
12338
12360
  viewBox: "0 0 1024 1024"
12339
12361
  };
12340
12362
 
12341
12363
  function _sfc_render$2(_ctx, _cache) {
12342
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$r, [...(_cache[0] || (_cache[0] = [
12364
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$q, [...(_cache[0] || (_cache[0] = [
12343
12365
  vue.createElementVNode("path", { d: "M608 160h320v704H608V160zM224 160h320v704H224V160zM96 0h64v1024H96V0z" }, null, -1 /* CACHED */)
12344
12366
  ]))]))
12345
12367
  }
@@ -12347,13 +12369,13 @@
12347
12369
 
12348
12370
  const _sfc_main$J = { };
12349
12371
 
12350
- const _hoisted_1$q = {
12372
+ const _hoisted_1$p = {
12351
12373
  xmlns: "http://www.w3.org/2000/svg",
12352
12374
  viewBox: "0 0 1024 1024"
12353
12375
  };
12354
12376
 
12355
12377
  function _sfc_render$1(_ctx, _cache) {
12356
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$q, [...(_cache[0] || (_cache[0] = [
12378
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$p, [...(_cache[0] || (_cache[0] = [
12357
12379
  vue.createElementVNode("path", { d: "M320 864H192v160H128v-160H0V160h128V0h64v160h128v704z m704 0h-128v160h-64v-160h-128V160h128V0h64v160h128v704z" }, null, -1 /* CACHED */)
12358
12380
  ]))]))
12359
12381
  }
@@ -12361,13 +12383,13 @@
12361
12383
 
12362
12384
  const _sfc_main$I = { };
12363
12385
 
12364
- const _hoisted_1$p = {
12386
+ const _hoisted_1$o = {
12365
12387
  xmlns: "http://www.w3.org/2000/svg",
12366
12388
  viewBox: "0 0 1024 1024"
12367
12389
  };
12368
12390
 
12369
12391
  function _sfc_render(_ctx, _cache) {
12370
- return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$p, [...(_cache[0] || (_cache[0] = [
12392
+ return (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$o, [...(_cache[0] || (_cache[0] = [
12371
12393
  vue.createElementVNode("path", { d: "M64 1024H0V0h64v1024z m384-160H128V160h320v704z m448 0H576V160h320v704z m128 160h-64V0h64v1024z" }, null, -1 /* CACHED */)
12372
12394
  ]))]))
12373
12395
  }
@@ -12376,7 +12398,9 @@
12376
12398
  const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
12377
12399
  __name: "Layout",
12378
12400
  props: {
12379
- values: {}
12401
+ values: {},
12402
+ disabled: { type: Boolean },
12403
+ size: {}
12380
12404
  },
12381
12405
  emits: ["change"],
12382
12406
  setup(__props, { emit: __emit }) {
@@ -12530,14 +12554,18 @@
12530
12554
  [
12531
12555
  vue.createVNode(vue.unref(formPlugin.MContainer), {
12532
12556
  config,
12533
- model: _ctx.values,
12557
+ model: __props.values,
12558
+ size: __props.size,
12559
+ disabled: __props.disabled,
12534
12560
  onChange: change
12535
- }, null, 8, ["model"]),
12561
+ }, null, 8, ["model", "size", "disabled"]),
12536
12562
  vue.withDirectives(vue.createVNode(_sfc_main$W, {
12537
- model: _ctx.values,
12563
+ model: __props.values,
12564
+ size: __props.size,
12565
+ disabled: __props.disabled,
12538
12566
  onChange: change
12539
- }, null, 8, ["model"]), [
12540
- [vue.vShow, !["fixed", "absolute"].includes(_ctx.values.position)]
12567
+ }, null, 8, ["model", "size", "disabled"]), [
12568
+ [vue.vShow, !["fixed", "absolute"].includes(__props.values.position)]
12541
12569
  ])
12542
12570
  ],
12543
12571
  64
@@ -12550,7 +12578,9 @@
12550
12578
  const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
12551
12579
  __name: "Position",
12552
12580
  props: {
12553
- values: {}
12581
+ values: {},
12582
+ disabled: { type: Boolean },
12583
+ size: {}
12554
12584
  },
12555
12585
  emits: ["change"],
12556
12586
  setup(__props, { emit: __emit }) {
@@ -12641,23 +12671,27 @@
12641
12671
  return (_ctx, _cache) => {
12642
12672
  return vue.openBlock(), vue.createBlock(vue.unref(formPlugin.MContainer), {
12643
12673
  config,
12644
- model: _ctx.values,
12674
+ model: __props.values,
12675
+ size: __props.size,
12676
+ disabled: __props.disabled,
12645
12677
  onChange: change
12646
- }, null, 8, ["model"]);
12678
+ }, null, 8, ["model", "size", "disabled"]);
12647
12679
  };
12648
12680
  }
12649
12681
  });
12650
12682
 
12651
- const _hoisted_1$o = { class: "border-box-container" };
12652
- const _hoisted_2$a = { class: "border-icon-container" };
12653
- const _hoisted_3$3 = { class: "border-icon-container-row" };
12683
+ const _hoisted_1$n = { class: "border-box-container" };
12684
+ const _hoisted_2$b = { class: "border-icon-container" };
12685
+ const _hoisted_3$4 = { class: "border-icon-container-row" };
12654
12686
  const _hoisted_4$3 = { class: "border-icon-container-row" };
12655
12687
  const _hoisted_5$1 = { class: "border-icon-container-row" };
12656
12688
  const _hoisted_6$1 = { class: "border-value-container" };
12657
12689
  const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
12658
12690
  __name: "Border",
12659
12691
  props: {
12660
- model: {}
12692
+ model: {},
12693
+ disabled: { type: Boolean },
12694
+ size: {}
12661
12695
  },
12662
12696
  emits: ["change"],
12663
12697
  setup(__props, { emit: __emit }) {
@@ -12707,9 +12741,9 @@
12707
12741
  });
12708
12742
  };
12709
12743
  return (_ctx, _cache) => {
12710
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
12711
- vue.createElementVNode("div", _hoisted_2$a, [
12712
- vue.createElementVNode("div", _hoisted_3$3, [
12744
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
12745
+ vue.createElementVNode("div", _hoisted_2$b, [
12746
+ vue.createElementVNode("div", _hoisted_3$4, [
12713
12747
  vue.createElementVNode(
12714
12748
  "div",
12715
12749
  {
@@ -12769,9 +12803,11 @@
12769
12803
  vue.createElementVNode("div", _hoisted_6$1, [
12770
12804
  vue.createVNode(vue.unref(formPlugin.MContainer), {
12771
12805
  config: config.value,
12772
- model: _ctx.model,
12806
+ model: __props.model,
12807
+ size: __props.size,
12808
+ disabled: __props.disabled,
12773
12809
  onChange: change
12774
- }, null, 8, ["config", "model"])
12810
+ }, null, 8, ["config", "model", "size", "disabled"])
12775
12811
  ])
12776
12812
  ]);
12777
12813
  };
@@ -12781,7 +12817,9 @@
12781
12817
  const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
12782
12818
  __name: "Border",
12783
12819
  props: {
12784
- values: {}
12820
+ values: {},
12821
+ disabled: { type: Boolean },
12822
+ size: {}
12785
12823
  },
12786
12824
  emits: ["change"],
12787
12825
  setup(__props, { emit: __emit }) {
@@ -12809,13 +12847,17 @@
12809
12847
  [
12810
12848
  vue.createVNode(vue.unref(formPlugin.MContainer), {
12811
12849
  config,
12812
- model: _ctx.values,
12850
+ model: __props.values,
12851
+ size: __props.size,
12852
+ disabled: __props.disabled,
12813
12853
  onChange: change
12814
- }, null, 8, ["model"]),
12854
+ }, null, 8, ["model", "size", "disabled"]),
12815
12855
  vue.createVNode(_sfc_main$F, {
12816
- model: _ctx.values,
12856
+ model: __props.values,
12857
+ size: __props.size,
12858
+ disabled: __props.disabled,
12817
12859
  onChange: change
12818
- }, null, 8, ["model"])
12860
+ }, null, 8, ["model", "size", "disabled"])
12819
12861
  ],
12820
12862
  64
12821
12863
  /* STABLE_FRAGMENT */
@@ -12824,7 +12866,6 @@
12824
12866
  }
12825
12867
  });
12826
12868
 
12827
- const _hoisted_1$n = { class: "m-fields-style-setter" };
12828
12869
  const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
12829
12870
  ...{
12830
12871
  name: "MFieldsStyleSetter"
@@ -12878,44 +12919,48 @@
12878
12919
  emit("change", v, eventData);
12879
12920
  };
12880
12921
  return (_ctx, _cache) => {
12881
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
12882
- vue.createVNode(vue.unref(designPlugin.TMagicCollapse), { "model-value": collapseValue.value }, {
12883
- default: vue.withCtx(() => [
12884
- (vue.openBlock(), vue.createElementBlock(
12885
- vue.Fragment,
12886
- null,
12887
- vue.renderList(list, (item, index) => {
12888
- return vue.createVNode(vue.unref(designPlugin.TMagicCollapseItem), {
12889
- key: index,
12890
- name: `${index}`
12891
- }, {
12892
- title: vue.withCtx(() => [
12893
- vue.createVNode(_sfc_main$1r, { icon: vue.unref(iconsVue.Grid) }, null, 8, ["icon"]),
12894
- vue.createTextVNode(
12895
- vue.toDisplayString(item.title),
12896
- 1
12897
- /* TEXT */
12898
- )
12899
- ]),
12900
- default: vue.withCtx(() => [
12901
- item.component ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.component), {
12902
- key: 0,
12903
- values: _ctx.model[_ctx.name],
12904
- onChange: change
12905
- }, null, 40, ["values"])) : vue.createCommentVNode("v-if", true)
12906
- ]),
12907
- _: 2
12908
- /* DYNAMIC */
12909
- }, 1032, ["name"]);
12910
- }),
12911
- 64
12912
- /* STABLE_FRAGMENT */
12913
- ))
12914
- ]),
12915
- _: 1
12916
- /* STABLE */
12917
- }, 8, ["model-value"])
12918
- ]);
12922
+ return vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicCollapse), {
12923
+ class: "m-fields-style-setter",
12924
+ modelValue: collapseValue.value,
12925
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => collapseValue.value = $event)
12926
+ }, {
12927
+ default: vue.withCtx(() => [
12928
+ (vue.openBlock(), vue.createElementBlock(
12929
+ vue.Fragment,
12930
+ null,
12931
+ vue.renderList(list, (item, index) => {
12932
+ return vue.createVNode(vue.unref(designPlugin.TMagicCollapseItem), {
12933
+ key: index,
12934
+ name: `${index}`
12935
+ }, {
12936
+ title: vue.withCtx(() => [
12937
+ vue.createVNode(_sfc_main$1r, { icon: vue.unref(iconsVue.Grid) }, null, 8, ["icon"]),
12938
+ vue.createTextVNode(
12939
+ vue.toDisplayString(item.title),
12940
+ 1
12941
+ /* TEXT */
12942
+ )
12943
+ ]),
12944
+ default: vue.withCtx(() => [
12945
+ item.component ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.component), {
12946
+ key: 0,
12947
+ values: __props.model[__props.name],
12948
+ size: __props.size,
12949
+ disabled: __props.disabled,
12950
+ onChange: change
12951
+ }, null, 40, ["values", "size", "disabled"])) : vue.createCommentVNode("v-if", true)
12952
+ ]),
12953
+ _: 2
12954
+ /* DYNAMIC */
12955
+ }, 1032, ["name"]);
12956
+ }),
12957
+ 64
12958
+ /* STABLE_FRAGMENT */
12959
+ ))
12960
+ ]),
12961
+ _: 1
12962
+ /* STABLE */
12963
+ }, 8, ["modelValue"]);
12919
12964
  };
12920
12965
  }
12921
12966
  });
@@ -13008,8 +13053,8 @@
13008
13053
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
13009
13054
  type: "danger",
13010
13055
  icon: vue.unref(iconsVue.Delete),
13011
- disabled: _ctx.disabled,
13012
- size: _ctx.size,
13056
+ disabled: __props.disabled,
13057
+ size: __props.size,
13013
13058
  link: "",
13014
13059
  style: { "padding": "0" }
13015
13060
  }, {
@@ -13037,8 +13082,8 @@
13037
13082
  style: { "padding": "0" },
13038
13083
  type: "danger",
13039
13084
  icon: vue.unref(iconsVue.Close),
13040
- disabled: _ctx.disabled,
13041
- size: _ctx.size,
13085
+ disabled: __props.disabled,
13086
+ size: __props.size,
13042
13087
  link: "",
13043
13088
  onClick: vue.withModifiers(deleteHandler, ["stop"])
13044
13089
  }, null, 8, ["icon", "disabled", "size"])
@@ -13054,8 +13099,8 @@
13054
13099
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
13055
13100
  link: "",
13056
13101
  style: { "padding": "0", "margin": "0" },
13057
- disabled: _ctx.disabled,
13058
- size: _ctx.size,
13102
+ disabled: __props.disabled,
13103
+ size: __props.size,
13059
13104
  onClick: _cache[0] || (_cache[0] = ($event) => selectNode(val.value)),
13060
13105
  onMouseenter: _cache[1] || (_cache[1] = ($event) => vue.unref(highlight)(val.value)),
13061
13106
  onMouseleave: unhighlight
@@ -13086,8 +13131,8 @@
13086
13131
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
13087
13132
  link: "",
13088
13133
  style: { "padding": "0", "margin": "0" },
13089
- disabled: _ctx.disabled,
13090
- size: _ctx.size,
13134
+ disabled: __props.disabled,
13135
+ size: __props.size,
13091
13136
  onClick: startSelect
13092
13137
  }, {
13093
13138
  default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
@@ -13281,8 +13326,8 @@
13281
13326
  vue.createElementVNode(
13282
13327
  "div",
13283
13328
  {
13284
- class: vue.normalizeClass(["m-editor-layout-left", _ctx.leftClass]),
13285
- style: vue.normalizeStyle(`width: ${_ctx.left}px`)
13329
+ class: vue.normalizeClass(["m-editor-layout-left", __props.leftClass]),
13330
+ style: vue.normalizeStyle(`width: ${__props.left}px`)
13286
13331
  },
13287
13332
  [
13288
13333
  vue.renderSlot(_ctx.$slots, "left")
@@ -13298,7 +13343,7 @@
13298
13343
  vue.createElementVNode(
13299
13344
  "div",
13300
13345
  {
13301
- class: vue.normalizeClass(["m-editor-layout-center", _ctx.centerClass]),
13346
+ class: vue.normalizeClass(["m-editor-layout-center", __props.centerClass]),
13302
13347
  style: vue.normalizeStyle(`width: ${center.value}px`)
13303
13348
  },
13304
13349
  [
@@ -13315,8 +13360,8 @@
13315
13360
  vue.createElementVNode(
13316
13361
  "div",
13317
13362
  {
13318
- class: vue.normalizeClass(["m-editor-layout-right", _ctx.rightClass]),
13319
- style: vue.normalizeStyle(`width: ${_ctx.right}px`)
13363
+ class: vue.normalizeClass(["m-editor-layout-right", __props.rightClass]),
13364
+ style: vue.normalizeStyle(`width: ${__props.right}px`)
13320
13365
  },
13321
13366
  [
13322
13367
  vue.renderSlot(_ctx.$slots, "right")
@@ -13340,7 +13385,7 @@
13340
13385
  key: 1,
13341
13386
  class: "menu-item-text"
13342
13387
  };
13343
- const _hoisted_2$9 = { class: "el-dropdown-link menubar-menu-button" };
13388
+ const _hoisted_2$a = { class: "el-dropdown-link menubar-menu-button" };
13344
13389
  const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
13345
13390
  ...{
13346
13391
  name: "MEditorToolButton"
@@ -13406,53 +13451,61 @@
13406
13451
  "div",
13407
13452
  {
13408
13453
  key: 0,
13409
- class: vue.normalizeClass(["menu-item", `${_ctx.data.type} ${_ctx.data.className || ""}`]),
13410
- onClick: _cache[0] || (_cache[0] = ($event) => clickHandler(_ctx.data, $event)),
13411
- onMousedown: _cache[1] || (_cache[1] = ($event) => mousedownHandler(_ctx.data, $event)),
13412
- onMouseup: _cache[2] || (_cache[2] = ($event) => mouseupHandler(_ctx.data, $event))
13454
+ class: vue.normalizeClass(["menu-item", `${__props.data.type} ${__props.data.className || ""}`]),
13455
+ onClick: _cache[0] || (_cache[0] = ($event) => clickHandler(__props.data, $event)),
13456
+ onMousedown: _cache[1] || (_cache[1] = ($event) => mousedownHandler(__props.data, $event)),
13457
+ onMouseup: _cache[2] || (_cache[2] = ($event) => mouseupHandler(__props.data, $event))
13413
13458
  },
13414
13459
  [
13415
- _ctx.data.type === "divider" ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicDivider), {
13460
+ __props.data.type === "divider" ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicDivider), {
13416
13461
  key: 0,
13417
- direction: _ctx.data.direction || "vertical"
13418
- }, null, 8, ["direction"])) : _ctx.data.type === "text" ? (vue.openBlock(), vue.createElementBlock(
13462
+ direction: __props.data.direction || "vertical"
13463
+ }, null, 8, ["direction"])) : __props.data.type === "text" ? (vue.openBlock(), vue.createElementBlock(
13419
13464
  "div",
13420
13465
  _hoisted_1$l,
13421
- vue.toDisplayString(_ctx.data.text),
13466
+ vue.toDisplayString(__props.data.text),
13422
13467
  1
13423
13468
  /* TEXT */
13424
- )) : _ctx.data.type === "button" ? (vue.openBlock(), vue.createElementBlock(
13469
+ )) : __props.data.type === "button" ? (vue.openBlock(), vue.createElementBlock(
13425
13470
  vue.Fragment,
13426
13471
  { key: 2 },
13427
13472
  [
13428
- _ctx.data.tooltip ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicTooltip), {
13473
+ __props.data.tooltip ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicTooltip), {
13429
13474
  key: 0,
13430
13475
  effect: "dark",
13431
13476
  placement: "bottom-start",
13432
- content: _ctx.data.tooltip
13477
+ content: __props.data.tooltip
13433
13478
  }, {
13434
13479
  default: vue.withCtx(() => [
13435
13480
  vue.createVNode(vue.unref(designPlugin.TMagicButton), {
13436
13481
  size: "small",
13437
13482
  link: "",
13438
13483
  disabled: disabled.value
13439
- }, {
13440
- default: vue.withCtx(() => [
13441
- _ctx.data.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$1r, {
13442
- key: 0,
13443
- icon: _ctx.data.icon
13444
- }, null, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
13445
- vue.createElementVNode(
13446
- "span",
13447
- null,
13448
- vue.toDisplayString(_ctx.data.text),
13449
- 1
13450
- /* TEXT */
13451
- )
13452
- ]),
13453
- _: 1
13454
- /* STABLE */
13455
- }, 8, ["disabled"])
13484
+ }, vue.createSlots({
13485
+ _: 2
13486
+ /* DYNAMIC */
13487
+ }, [
13488
+ __props.data.icon ? {
13489
+ name: "icon",
13490
+ fn: vue.withCtx(() => [
13491
+ vue.createVNode(_sfc_main$1r, {
13492
+ icon: __props.data.icon
13493
+ }, null, 8, ["icon"])
13494
+ ]),
13495
+ key: "0"
13496
+ } : void 0,
13497
+ __props.data.text ? {
13498
+ name: "default",
13499
+ fn: vue.withCtx(() => [
13500
+ vue.createTextVNode(
13501
+ vue.toDisplayString(__props.data.text),
13502
+ 1
13503
+ /* TEXT */
13504
+ )
13505
+ ]),
13506
+ key: "1"
13507
+ } : void 0
13508
+ ]), 1032, ["disabled"])
13456
13509
  ]),
13457
13510
  _: 1
13458
13511
  /* STABLE */
@@ -13461,43 +13514,51 @@
13461
13514
  size: "small",
13462
13515
  link: "",
13463
13516
  disabled: disabled.value,
13464
- title: _ctx.data.text
13465
- }, {
13466
- default: vue.withCtx(() => [
13467
- _ctx.data.icon ? (vue.openBlock(), vue.createBlock(_sfc_main$1r, {
13468
- key: 0,
13469
- icon: _ctx.data.icon
13470
- }, null, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
13471
- vue.createElementVNode(
13472
- "span",
13473
- null,
13474
- vue.toDisplayString(_ctx.data.text),
13475
- 1
13476
- /* TEXT */
13477
- )
13478
- ]),
13479
- _: 1
13480
- /* STABLE */
13481
- }, 8, ["disabled", "title"]))
13517
+ title: __props.data.text
13518
+ }, vue.createSlots({
13519
+ _: 2
13520
+ /* DYNAMIC */
13521
+ }, [
13522
+ __props.data.icon ? {
13523
+ name: "icon",
13524
+ fn: vue.withCtx(() => [
13525
+ vue.createVNode(_sfc_main$1r, {
13526
+ icon: __props.data.icon
13527
+ }, null, 8, ["icon"])
13528
+ ]),
13529
+ key: "0"
13530
+ } : void 0,
13531
+ __props.data.text ? {
13532
+ name: "default",
13533
+ fn: vue.withCtx(() => [
13534
+ vue.createTextVNode(
13535
+ vue.toDisplayString(__props.data.text),
13536
+ 1
13537
+ /* TEXT */
13538
+ )
13539
+ ]),
13540
+ key: "1"
13541
+ } : void 0
13542
+ ]), 1032, ["disabled", "title"]))
13482
13543
  ],
13483
13544
  64
13484
13545
  /* STABLE_FRAGMENT */
13485
- )) : _ctx.data.type === "dropdown" ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicDropdown), {
13546
+ )) : __props.data.type === "dropdown" ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicDropdown), {
13486
13547
  key: 3,
13487
13548
  trigger: "click",
13488
13549
  disabled: disabled.value,
13489
13550
  onCommand: dropdownHandler
13490
13551
  }, {
13491
13552
  dropdown: vue.withCtx(() => [
13492
- _ctx.data.items && _ctx.data.items.length ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicDropdownMenu), { key: 0 }, {
13553
+ __props.data.items && __props.data.items.length ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicDropdownMenu), { key: 0 }, {
13493
13554
  default: vue.withCtx(() => [
13494
13555
  (vue.openBlock(true), vue.createElementBlock(
13495
13556
  vue.Fragment,
13496
13557
  null,
13497
- vue.renderList(_ctx.data.items, (subItem, index) => {
13558
+ vue.renderList(__props.data.items, (subItem, index) => {
13498
13559
  return vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicDropdownItem), {
13499
13560
  key: index,
13500
- command: { data: _ctx.data, subItem }
13561
+ command: { data: __props.data, subItem }
13501
13562
  }, {
13502
13563
  default: vue.withCtx(() => [
13503
13564
  vue.createTextVNode(
@@ -13519,9 +13580,9 @@
13519
13580
  })) : vue.createCommentVNode("v-if", true)
13520
13581
  ]),
13521
13582
  default: vue.withCtx(() => [
13522
- vue.createElementVNode("span", _hoisted_2$9, [
13583
+ vue.createElementVNode("span", _hoisted_2$a, [
13523
13584
  vue.createTextVNode(
13524
- vue.toDisplayString(_ctx.data.text),
13585
+ vue.toDisplayString(__props.data.text),
13525
13586
  1
13526
13587
  /* TEXT */
13527
13588
  ),
@@ -13536,9 +13597,9 @@
13536
13597
  ]),
13537
13598
  _: 1
13538
13599
  /* STABLE */
13539
- }, 8, ["disabled"])) : _ctx.data.type === "component" ? (vue.openBlock(), vue.createBlock(
13540
- vue.resolveDynamicComponent(_ctx.data.component),
13541
- vue.mergeProps({ key: 4 }, _ctx.data.props || {}, vue.toHandlers(_ctx.data.listeners || {})),
13600
+ }, 8, ["disabled"])) : __props.data.type === "component" ? (vue.openBlock(), vue.createBlock(
13601
+ vue.resolveDynamicComponent(__props.data.component),
13602
+ vue.mergeProps({ key: 4 }, __props.data.props || {}, vue.toHandlers(__props.data.listeners || {})),
13542
13603
  null,
13543
13604
  16
13544
13605
  /* FULL_PROPS */
@@ -13556,7 +13617,7 @@
13556
13617
  id: "m-editor-page-bar-add-icon",
13557
13618
  class: "m-editor-page-bar-item m-editor-page-bar-item-icon"
13558
13619
  };
13559
- const _hoisted_2$8 = {
13620
+ const _hoisted_2$9 = {
13560
13621
  key: 1,
13561
13622
  style: { "width": "21px" }
13562
13623
  };
@@ -13607,7 +13668,7 @@
13607
13668
  _: 1
13608
13669
  /* STABLE */
13609
13670
  })
13610
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8));
13671
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9));
13611
13672
  };
13612
13673
  }
13613
13674
  });
@@ -13616,7 +13677,7 @@
13616
13677
  class: "m-editor-page-bar",
13617
13678
  ref: "pageBar"
13618
13679
  };
13619
- const _hoisted_2$7 = {
13680
+ const _hoisted_2$8 = {
13620
13681
  key: 0,
13621
13682
  class: "m-editor-page-bar-items",
13622
13683
  ref: "itemsContainer"
@@ -13745,9 +13806,9 @@
13745
13806
  _hoisted_1$j,
13746
13807
  [
13747
13808
  vue.renderSlot(_ctx.$slots, "prepend"),
13748
- _ctx.length ? (vue.openBlock(), vue.createElementBlock(
13809
+ __props.length ? (vue.openBlock(), vue.createElementBlock(
13749
13810
  "div",
13750
- _hoisted_2$7,
13811
+ _hoisted_2$8,
13751
13812
  [
13752
13813
  vue.renderSlot(_ctx.$slots, "default")
13753
13814
  ],
@@ -13781,6 +13842,8 @@
13781
13842
  id: "m-editor-page-bar-list-icon",
13782
13843
  class: "m-editor-page-bar-item m-editor-page-bar-item-icon"
13783
13844
  };
13845
+ const _hoisted_2$7 = { class: "page-bar-popover-wrapper" };
13846
+ const _hoisted_3$3 = { class: "page-bar-popover-inner" };
13784
13847
  const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
13785
13848
  ...{
13786
13849
  name: "MEditorPageList"
@@ -13815,25 +13878,27 @@
13815
13878
  })
13816
13879
  ]),
13817
13880
  default: vue.withCtx(() => [
13818
- vue.createElementVNode("div", null, [
13819
- vue.renderSlot(_ctx.$slots, "page-list-popover", { list: _ctx.list }, () => [
13820
- (vue.openBlock(true), vue.createElementBlock(
13821
- vue.Fragment,
13822
- null,
13823
- vue.renderList(_ctx.list, (item, index) => {
13824
- return vue.openBlock(), vue.createBlock(_sfc_main$z, {
13825
- data: {
13826
- type: "button",
13827
- text: item.devconfig?.tabName || item.name || item.id,
13828
- className: item.id === page.value?.id ? "active" : "",
13829
- handler: () => switchPage(item.id)
13830
- },
13831
- key: index
13832
- }, null, 8, ["data"]);
13833
- }),
13834
- 128
13835
- /* KEYED_FRAGMENT */
13836
- ))
13881
+ vue.createElementVNode("div", _hoisted_2$7, [
13882
+ vue.createElementVNode("div", _hoisted_3$3, [
13883
+ vue.renderSlot(_ctx.$slots, "page-list-popover", { list: __props.list }, () => [
13884
+ (vue.openBlock(true), vue.createElementBlock(
13885
+ vue.Fragment,
13886
+ null,
13887
+ vue.renderList(__props.list, (item, index) => {
13888
+ return vue.openBlock(), vue.createBlock(_sfc_main$z, {
13889
+ data: {
13890
+ type: "button",
13891
+ text: item.devconfig?.tabName || item.name || item.id,
13892
+ className: item.id === page.value?.id ? "active" : "",
13893
+ handler: () => switchPage(item.id)
13894
+ },
13895
+ key: index
13896
+ }, null, 8, ["data"]);
13897
+ }),
13898
+ 128
13899
+ /* KEYED_FRAGMENT */
13900
+ ))
13901
+ ])
13837
13902
  ])
13838
13903
  ])
13839
13904
  ]),
@@ -13991,7 +14056,7 @@
13991
14056
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
13992
14057
  vue.createVNode(_sfc_main$x, {
13993
14058
  ref: "pageBarScrollContainer",
13994
- "page-bar-sort-options": _ctx.pageBarSortOptions,
14059
+ "page-bar-sort-options": __props.pageBarSortOptions,
13995
14060
  length: list.value.length
13996
14061
  }, {
13997
14062
  prepend: vue.withCtx(() => [
@@ -14130,7 +14195,7 @@
14130
14195
  /* CACHED */
14131
14196
  ))
14132
14197
  ]),
14133
- !_ctx.disabledPageFragment ? (vue.openBlock(), vue.createElementBlock("div", {
14198
+ !__props.disabledPageFragment ? (vue.openBlock(), vue.createElementBlock("div", {
14134
14199
  key: 0,
14135
14200
  class: "m-editor-empty-button",
14136
14201
  onClick: _cache[1] || (_cache[1] = ($event) => clickHandler(vue.unref(core.NodeType).PAGE_FRAGMENT))
@@ -14255,13 +14320,13 @@
14255
14320
  ]),
14256
14321
  center: vue.withCtx(() => [
14257
14322
  page.value ? vue.renderSlot(_ctx.$slots, "workspace", { key: 0 }) : vue.renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
14258
- vue.createVNode(_sfc_main$t, { "disabled-page-fragment": _ctx.disabledPageFragment }, null, 8, ["disabled-page-fragment"])
14323
+ vue.createVNode(_sfc_main$t, { "disabled-page-fragment": __props.disabledPageFragment }, null, 8, ["disabled-page-fragment"])
14259
14324
  ]),
14260
14325
  vue.renderSlot(_ctx.$slots, "page-bar", {}, () => [
14261
14326
  vue.createVNode(_sfc_main$u, {
14262
- "disabled-page-fragment": _ctx.disabledPageFragment,
14263
- "page-bar-sort-options": _ctx.pageBarSortOptions,
14264
- "filter-function": _ctx.pageFilterFunction
14327
+ "disabled-page-fragment": __props.disabledPageFragment,
14328
+ "page-bar-sort-options": __props.pageBarSortOptions,
14329
+ "filter-function": __props.pageFilterFunction
14265
14330
  }, {
14266
14331
  "page-bar-add-button": vue.withCtx(() => [
14267
14332
  vue.renderSlot(_ctx.$slots, "page-bar-add-button")
@@ -14473,7 +14538,7 @@
14473
14538
  "div",
14474
14539
  {
14475
14540
  class: "m-editor-nav-menu",
14476
- style: vue.normalizeStyle({ height: `${_ctx.height}px` }),
14541
+ style: vue.normalizeStyle({ height: `${__props.height}px` }),
14477
14542
  ref: "navMenu"
14478
14543
  },
14479
14544
  [
@@ -14581,12 +14646,12 @@
14581
14646
  ref: "configForm",
14582
14647
  class: vue.normalizeClass(propsPanelSize.value),
14583
14648
  "popper-class": `m-editor-props-panel-popper ${propsPanelSize.value}`,
14584
- "label-width": _ctx.labelWidth,
14585
- "label-position": _ctx.labelPosition,
14649
+ "label-width": __props.labelWidth,
14650
+ "label-position": __props.labelPosition,
14586
14651
  size: propsPanelSize.value,
14587
- "init-values": _ctx.values,
14588
- config: _ctx.config,
14589
- "extend-state": _ctx.extendState,
14652
+ "init-values": __props.values,
14653
+ config: __props.config,
14654
+ "extend-state": __props.extendState,
14590
14655
  onChange: submit,
14591
14656
  onError: errorHandler
14592
14657
  }, null, 8, ["class", "popper-class", "label-width", "label-position", "size", "init-values", "config", "extend-state"])
@@ -14594,7 +14659,7 @@
14594
14659
  _: 1
14595
14660
  /* STABLE */
14596
14661
  }),
14597
- !_ctx.disabledShowSrc ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicButton), {
14662
+ !__props.disabledShowSrc ? (vue.openBlock(), vue.createBlock(vue.unref(designPlugin.TMagicButton), {
14598
14663
  key: 0,
14599
14664
  class: "m-editor-props-panel-src-icon",
14600
14665
  circle: "",
@@ -14612,7 +14677,7 @@
14612
14677
  key: 1,
14613
14678
  class: "m-editor-props-panel-src-code",
14614
14679
  height: `${vue.unref(editorContentHeight)}px`,
14615
- "init-values": _ctx.codeValueKey ? _ctx.values[_ctx.codeValueKey] : _ctx.values,
14680
+ "init-values": __props.codeValueKey ? __props.values[__props.codeValueKey] : __props.values,
14616
14681
  options: vue.unref(codeOptions),
14617
14682
  parse: true,
14618
14683
  onSave: saveCode
@@ -14796,8 +14861,8 @@
14796
14861
  class: vue.normalizeClass(["m-editor-props-property-panel", { "show-style-panel": vue.unref(showStylePanel) }]),
14797
14862
  config: curFormConfig.value,
14798
14863
  values: values.value,
14799
- disabledShowSrc: _ctx.disabledShowSrc,
14800
- extendState: _ctx.extendState,
14864
+ disabledShowSrc: __props.disabledShowSrc,
14865
+ extendState: __props.extendState,
14801
14866
  onSubmit: submit,
14802
14867
  onSubmitError: errorHandler,
14803
14868
  onFormError: errorHandler,
@@ -14815,8 +14880,8 @@
14815
14880
  "code-value-key": "style",
14816
14881
  config: styleFormConfig,
14817
14882
  values: values.value,
14818
- disabledShowSrc: _ctx.disabledShowSrc,
14819
- extendState: _ctx.extendState,
14883
+ disabledShowSrc: __props.disabledShowSrc,
14884
+ extendState: __props.extendState,
14820
14885
  onSubmit: submit,
14821
14886
  onSubmitError: errorHandler,
14822
14887
  onFormError: errorHandler
@@ -15009,12 +15074,12 @@
15009
15074
  (vue.openBlock(true), vue.createElementBlock(
15010
15075
  vue.Fragment,
15011
15076
  null,
15012
- vue.renderList(_ctx.menuData, (item, index) => {
15077
+ vue.renderList(__props.menuData, (item, index) => {
15013
15078
  return vue.openBlock(), vue.createBlock(_sfc_main$z, {
15014
15079
  "event-type": "mouseup",
15015
15080
  ref_for: true,
15016
15081
  ref: "buttons",
15017
- class: vue.normalizeClass({ active: _ctx.active && item.id === _ctx.active }),
15082
+ class: vue.normalizeClass({ active: __props.active && item.id === __props.active }),
15018
15083
  data: item,
15019
15084
  key: index,
15020
15085
  onMouseup: clickHandler,
@@ -15030,7 +15095,7 @@
15030
15095
  key: 0,
15031
15096
  class: "sub-menu",
15032
15097
  ref: "subMenu",
15033
- active: _ctx.active,
15098
+ active: __props.active,
15034
15099
  "menu-data": subMenuData.value,
15035
15100
  "is-sub-menu": true,
15036
15101
  onHide: hide
@@ -15160,10 +15225,10 @@
15160
15225
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
15161
15226
  class: "m-editor-tree-node",
15162
15227
  draggable: draggable.value,
15163
- "data-node-id": _ctx.data.id,
15164
- "data-parent-id": _ctx.parent?.id,
15165
- "data-parents-id": _ctx.parentsId,
15166
- "data-is-container": Array.isArray(_ctx.data.items),
15228
+ "data-node-id": __props.data.id,
15229
+ "data-parent-id": __props.parent?.id,
15230
+ "data-parents-id": __props.parentsId,
15231
+ "data-is-container": Array.isArray(__props.data.items),
15167
15232
  onDragstart: handleDragStart,
15168
15233
  onDragleave: handleDragLeave,
15169
15234
  onDragend: handleDragEnd
@@ -15172,7 +15237,7 @@
15172
15237
  "div",
15173
15238
  {
15174
15239
  class: vue.normalizeClass(["tree-node", { selected: selected.value, expanded: expanded.value }]),
15175
- style: vue.normalizeStyle(`padding-left: ${_ctx.indent}px`),
15240
+ style: vue.normalizeStyle(`padding-left: ${__props.indent}px`),
15176
15241
  onContextmenu: nodeContextmenuHandler,
15177
15242
  onMouseenter: mouseenterHandler
15178
15243
  },
@@ -15187,18 +15252,18 @@
15187
15252
  class: "tree-node-content",
15188
15253
  onClick: nodeClickHandler
15189
15254
  }, [
15190
- vue.renderSlot(_ctx.$slots, "tree-node-content", { data: _ctx.data }, () => [
15255
+ vue.renderSlot(_ctx.$slots, "tree-node-content", { data: __props.data }, () => [
15191
15256
  vue.createElementVNode("div", _hoisted_2$3, [
15192
- vue.renderSlot(_ctx.$slots, "tree-node-label", { data: _ctx.data }, () => [
15257
+ vue.renderSlot(_ctx.$slots, "tree-node-label", { data: __props.data }, () => [
15193
15258
  vue.createTextVNode(
15194
- vue.toDisplayString(`${_ctx.data.name} (${_ctx.data.id})`),
15259
+ vue.toDisplayString(`${__props.data.name} (${__props.data.id})`),
15195
15260
  1
15196
15261
  /* TEXT */
15197
15262
  )
15198
15263
  ])
15199
15264
  ]),
15200
15265
  vue.createElementVNode("div", _hoisted_3$1, [
15201
- vue.renderSlot(_ctx.$slots, "tree-node-tool", { data: _ctx.data })
15266
+ vue.renderSlot(_ctx.$slots, "tree-node-tool", { data: __props.data })
15202
15267
  ])
15203
15268
  ])
15204
15269
  ])
@@ -15210,14 +15275,14 @@
15210
15275
  (vue.openBlock(true), vue.createElementBlock(
15211
15276
  vue.Fragment,
15212
15277
  null,
15213
- vue.renderList(_ctx.data.items, (item) => {
15278
+ vue.renderList(__props.data.items, (item) => {
15214
15279
  return vue.openBlock(), vue.createBlock(_component_TreeNode, {
15215
15280
  key: item.id,
15216
15281
  data: item,
15217
- parent: _ctx.data,
15218
- parentsId: [..._ctx.parentsId, _ctx.data.id],
15219
- "node-status-map": _ctx.nodeStatusMap,
15220
- indent: _ctx.indent + _ctx.nextLevelIndentIncrement
15282
+ parent: __props.data,
15283
+ parentsId: [...__props.parentsId, __props.data.id],
15284
+ "node-status-map": __props.nodeStatusMap,
15285
+ indent: __props.indent + __props.nextLevelIndentIncrement
15221
15286
  }, {
15222
15287
  "tree-node-content": vue.withCtx(({ data: nodeData }) => [
15223
15288
  vue.renderSlot(_ctx.$slots, "tree-node-content", { data: nodeData })
@@ -15228,9 +15293,9 @@
15228
15293
  "tree-node-tool": vue.withCtx(({ data: nodeData }) => [
15229
15294
  vue.renderSlot(_ctx.$slots, "tree-node-tool", { data: nodeData })
15230
15295
  ]),
15231
- _: 2
15232
- /* DYNAMIC */
15233
- }, 1032, ["data", "parent", "parentsId", "node-status-map", "indent"]);
15296
+ _: 3
15297
+ /* FORWARDED */
15298
+ }, 8, ["data", "parent", "parentsId", "node-status-map", "indent"]);
15234
15299
  }),
15235
15300
  128
15236
15301
  /* KEYED_FRAGMENT */
@@ -15274,16 +15339,16 @@
15274
15339
  onDragover: handleDragOver
15275
15340
  },
15276
15341
  [
15277
- _ctx.data?.length ? (vue.openBlock(true), vue.createElementBlock(
15342
+ __props.data?.length ? (vue.openBlock(true), vue.createElementBlock(
15278
15343
  vue.Fragment,
15279
15344
  { key: 0 },
15280
- vue.renderList(_ctx.data, (item) => {
15345
+ vue.renderList(__props.data, (item) => {
15281
15346
  return vue.openBlock(), vue.createBlock(_sfc_main$m, {
15282
15347
  key: item.id,
15283
15348
  data: item,
15284
- indent: _ctx.indent,
15285
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
15286
- "node-status-map": _ctx.nodeStatusMap
15349
+ indent: __props.indent,
15350
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
15351
+ "node-status-map": __props.nodeStatusMap
15287
15352
  }, {
15288
15353
  "tree-node-content": vue.withCtx(({ data: nodeData }) => [
15289
15354
  vue.renderSlot(_ctx.$slots, "tree-node-content", { data: nodeData })
@@ -15294,9 +15359,9 @@
15294
15359
  "tree-node-tool": vue.withCtx(({ data: nodeData }) => [
15295
15360
  vue.renderSlot(_ctx.$slots, "tree-node-tool", { data: nodeData })
15296
15361
  ]),
15297
- _: 2
15298
- /* DYNAMIC */
15299
- }, 1032, ["data", "indent", "next-level-indent-increment", "node-status-map"]);
15362
+ _: 3
15363
+ /* FORWARDED */
15364
+ }, 8, ["data", "indent", "next-level-indent-increment", "node-status-map"]);
15300
15365
  }),
15301
15366
  128
15302
15367
  /* KEYED_FRAGMENT */
@@ -15304,7 +15369,7 @@
15304
15369
  vue.createElementVNode(
15305
15370
  "p",
15306
15371
  null,
15307
- vue.toDisplayString(_ctx.emptyText),
15372
+ vue.toDisplayString(__props.emptyText),
15308
15373
  1
15309
15374
  /* TEXT */
15310
15375
  )
@@ -15426,8 +15491,8 @@
15426
15491
  return vue.openBlock(), vue.createBlock(_sfc_main$l, {
15427
15492
  data: codeList.value,
15428
15493
  "node-status-map": vue.unref(nodeStatusMap),
15429
- indent: _ctx.indent,
15430
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
15494
+ indent: __props.indent,
15495
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
15431
15496
  onNodeClick: clickHandler,
15432
15497
  onNodeContextmenu: nodeContentMenuHandler
15433
15498
  }, {
@@ -15643,9 +15708,9 @@
15643
15708
  vue.createCommentVNode(" 代码块列表 "),
15644
15709
  vue.createVNode(_sfc_main$k, {
15645
15710
  ref: "codeBlockList",
15646
- "custom-error": _ctx.customError,
15647
- indent: _ctx.indent,
15648
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
15711
+ "custom-error": __props.customError,
15712
+ indent: __props.indent,
15713
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
15649
15714
  onEdit: vue.unref(editCode),
15650
15715
  onRemove: vue.unref(deleteCode),
15651
15716
  onNodeContextmenu: vue.unref(nodeContentMenuHandler)
@@ -15783,16 +15848,16 @@
15783
15848
  "onUpdate:width": _cache[1] || (_cache[1] = ($event) => width.value = $event),
15784
15849
  height: vue.unref(editorHeight),
15785
15850
  "onUpdate:height": _cache[2] || (_cache[2] = ($event) => vue.isRef(editorHeight) ? editorHeight.value = $event : null),
15786
- title: _ctx.title,
15851
+ title: __props.title,
15787
15852
  position: vue.unref(boxPosition)
15788
15853
  }, {
15789
15854
  body: vue.withCtx(() => [
15790
15855
  vue.createVNode(vue.unref(formPlugin.MFormBox), {
15791
15856
  "label-width": "80px",
15792
- title: _ctx.title,
15857
+ title: __props.title,
15793
15858
  config: dataSourceConfig.value,
15794
15859
  values: initValues.value,
15795
- disabled: _ctx.disabled,
15860
+ disabled: __props.disabled,
15796
15861
  style: { "height": "100%" },
15797
15862
  onSubmit: submitHandler,
15798
15863
  onError: errorHandler
@@ -15908,8 +15973,8 @@
15908
15973
  return vue.openBlock(), vue.createBlock(_sfc_main$l, {
15909
15974
  data: list.value,
15910
15975
  "node-status-map": vue.unref(nodeStatusMap),
15911
- indent: _ctx.indent,
15912
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
15976
+ indent: __props.indent,
15977
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
15913
15978
  onNodeClick: clickHandler,
15914
15979
  onNodeContextmenu: nodeContentMenuHandler
15915
15980
  }, {
@@ -16174,8 +16239,8 @@
16174
16239
  vue.createCommentVNode(" 数据源列表 "),
16175
16240
  vue.createVNode(_sfc_main$h, {
16176
16241
  ref: "dataSourceList",
16177
- indent: _ctx.indent,
16178
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
16242
+ indent: __props.indent,
16243
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
16179
16244
  onEdit: vue.unref(editHandler),
16180
16245
  onRemove: removeHandler,
16181
16246
  onNodeContextmenu: vue.unref(nodeContentMenuHandler)
@@ -16441,11 +16506,11 @@
16441
16506
  });
16442
16507
  };
16443
16508
  return (_ctx, _cache) => {
16444
- return _ctx.data.type !== "page" ? (vue.openBlock(), vue.createElementBlock(
16509
+ return __props.data.type !== "page" ? (vue.openBlock(), vue.createElementBlock(
16445
16510
  vue.Fragment,
16446
16511
  { key: 0 },
16447
16512
  [
16448
- _ctx.data.visible === false ? (vue.openBlock(), vue.createBlock(_sfc_main$1r, {
16513
+ __props.data.visible === false ? (vue.openBlock(), vue.createBlock(_sfc_main$1r, {
16449
16514
  key: 0,
16450
16515
  icon: vue.unref(iconsVue.Hide),
16451
16516
  onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => setNodeVisible(true), ["stop"])),
@@ -16988,8 +17053,8 @@
16988
17053
  ref: "tree",
16989
17054
  data: nodeData.value,
16990
17055
  "node-status-map": vue.unref(nodeStatusMap),
16991
- indent: _ctx.indent,
16992
- "next-level-indent-increment": _ctx.nextLevelIndentIncrement,
17056
+ indent: __props.indent,
17057
+ "next-level-indent-increment": __props.nextLevelIndentIncrement,
16993
17058
  onNodeDragover: vue.unref(handleDragOver),
16994
17059
  onNodeDragstart: vue.unref(handleDragStart),
16995
17060
  onNodeDragleave: vue.unref(handleDragLeave),
@@ -17015,8 +17080,8 @@
17015
17080
  (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
17016
17081
  vue.createVNode(_sfc_main$e, {
17017
17082
  ref: "menu",
17018
- "layer-content-menu": _ctx.layerContentMenu,
17019
- "custom-content-menu": _ctx.customContentMenu,
17083
+ "layer-content-menu": __props.layerContentMenu,
17084
+ "custom-content-menu": __props.customContentMenu,
17020
17085
  onCollapseAll: collapseAllHandler
17021
17086
  }, null, 8, ["layer-content-menu", "custom-content-menu"])
17022
17087
  ]))
@@ -17049,8 +17114,15 @@
17049
17114
  items: group.items.filter((item) => item.text.includes(searchText.value))
17050
17115
  }))
17051
17116
  );
17052
- const collapseValue = vue.computed(
17053
- () => Array(list.value?.length).fill(1).map((x, i) => `${i}`)
17117
+ const collapseValue = vue.ref();
17118
+ vue.watch(
17119
+ list,
17120
+ () => {
17121
+ collapseValue.value = Array(list.value?.length).fill(1).map((x, i) => `${i}`);
17122
+ },
17123
+ {
17124
+ immediate: true
17125
+ }
17054
17126
  );
17055
17127
  let timeout;
17056
17128
  let clientX;
@@ -17108,7 +17180,8 @@
17108
17180
  vue.renderSlot(_ctx.$slots, "component-list", { componentGroupList: list.value }, () => [
17109
17181
  vue.createVNode(vue.unref(designPlugin.TMagicCollapse), {
17110
17182
  class: "ui-component-panel",
17111
- "model-value": collapseValue.value
17183
+ modelValue: collapseValue.value,
17184
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => collapseValue.value = $event)
17112
17185
  }, {
17113
17186
  default: vue.withCtx(() => [
17114
17187
  (vue.openBlock(true), vue.createElementBlock(
@@ -17183,7 +17256,7 @@
17183
17256
  ]),
17184
17257
  _: 3
17185
17258
  /* FORWARDED */
17186
- }, 8, ["model-value"])
17259
+ }, 8, ["modelValue"])
17187
17260
  ])
17188
17261
  ]),
17189
17262
  _: 3
@@ -17362,7 +17435,7 @@
17362
17435
  vue.Fragment,
17363
17436
  null,
17364
17437
  [
17365
- _ctx.data.type === "tabs" && _ctx.data.items.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
17438
+ __props.data.type === "tabs" && __props.data.items.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
17366
17439
  vue.createElementVNode("div", _hoisted_2$1, [
17367
17440
  (vue.openBlock(true), vue.createElementBlock(
17368
17441
  vue.Fragment,
@@ -17694,7 +17767,7 @@
17694
17767
  "div",
17695
17768
  {
17696
17769
  ref: "bar",
17697
- class: vue.normalizeClass(["m-editor-scroll-bar", _ctx.isHorizontal ? "horizontal" : "vertical"])
17770
+ class: vue.normalizeClass(["m-editor-scroll-bar", __props.isHorizontal ? "horizontal" : "vertical"])
17698
17771
  },
17699
17772
  [
17700
17773
  vue.createElementVNode(
@@ -17810,19 +17883,19 @@
17810
17883
  /* STYLE */
17811
17884
  ),
17812
17885
  vue.renderSlot(_ctx.$slots, "content"),
17813
- scrollHeight.value > _ctx.wrapHeight ? (vue.openBlock(), vue.createBlock(_sfc_main$9, {
17886
+ scrollHeight.value > __props.wrapHeight ? (vue.openBlock(), vue.createBlock(_sfc_main$9, {
17814
17887
  key: 0,
17815
17888
  "scroll-size": scrollHeight.value,
17816
17889
  pos: vOffset.value,
17817
- size: _ctx.wrapHeight,
17890
+ size: __props.wrapHeight,
17818
17891
  onScroll: vScrollHandler
17819
17892
  }, null, 8, ["scroll-size", "pos", "size"])) : vue.createCommentVNode("v-if", true),
17820
- scrollWidth.value > _ctx.wrapWidth ? (vue.openBlock(), vue.createBlock(_sfc_main$9, {
17893
+ scrollWidth.value > __props.wrapWidth ? (vue.openBlock(), vue.createBlock(_sfc_main$9, {
17821
17894
  key: 1,
17822
17895
  "is-horizontal": true,
17823
17896
  "scroll-size": scrollWidth.value,
17824
17897
  pos: hOffset.value,
17825
- size: _ctx.wrapWidth,
17898
+ size: __props.wrapWidth,
17826
17899
  onScroll: hScrollHandler
17827
17900
  }, null, 8, ["scroll-size", "pos", "size"])) : vue.createCommentVNode("v-if", true)
17828
17901
  ],
@@ -18409,13 +18482,13 @@
18409
18482
  onClick: _cache[0] || (_cache[0] = ($event) => stageWrapRef.value?.container?.focus())
18410
18483
  }, {
18411
18484
  content: vue.withCtx(() => [
18412
- !_ctx.disabledStageOverlay ? (vue.openBlock(), vue.createBlock(_sfc_main$6, { key: 0 })) : vue.createCommentVNode("v-if", true),
18485
+ !__props.disabledStageOverlay ? (vue.openBlock(), vue.createBlock(_sfc_main$6, { key: 0 })) : vue.createCommentVNode("v-if", true),
18413
18486
  (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
18414
18487
  vue.createVNode(_sfc_main$4, {
18415
18488
  ref: "menu",
18416
18489
  "is-multi-select": isMultiSelect.value,
18417
- "stage-content-menu": _ctx.stageContentMenu,
18418
- "custom-content-menu": _ctx.customContentMenu
18490
+ "stage-content-menu": __props.stageContentMenu,
18491
+ "custom-content-menu": __props.customContentMenu
18419
18492
  }, null, 8, ["is-multi-select", "stage-content-menu", "custom-content-menu"])
18420
18493
  ]))
18421
18494
  ]),
@@ -18528,9 +18601,9 @@
18528
18601
  page.value && (vue.unref(stageOptions)?.render || vue.unref(stageOptions)?.runtimeUrl) ? (vue.openBlock(), vue.createBlock(_sfc_main$3, {
18529
18602
  key: 0,
18530
18603
  "stage-options": vue.unref(stageOptions),
18531
- "disabled-stage-overlay": _ctx.disabledStageOverlay,
18532
- "stage-content-menu": _ctx.stageContentMenu,
18533
- "custom-content-menu": _ctx.customContentMenu
18604
+ "disabled-stage-overlay": __props.disabledStageOverlay,
18605
+ "stage-content-menu": __props.stageContentMenu,
18606
+ "custom-content-menu": __props.customContentMenu
18534
18607
  }, null, 8, ["stage-options", "disabled-stage-overlay", "stage-content-menu", "custom-content-menu"])) : vue.createCommentVNode("v-if", true)
18535
18608
  ]),
18536
18609
  vue.renderSlot(_ctx.$slots, "workspace-content")
@@ -21345,16 +21418,16 @@
21345
21418
  __expose(services);
21346
21419
  return (_ctx, _cache) => {
21347
21420
  return vue.openBlock(), vue.createBlock(_sfc_main$s, {
21348
- "disabled-page-fragment": _ctx.disabledPageFragment,
21349
- "page-bar-sort-options": _ctx.pageBarSortOptions,
21350
- "page-filter-function": _ctx.pageFilterFunction
21421
+ "disabled-page-fragment": __props.disabledPageFragment,
21422
+ "page-bar-sort-options": __props.pageBarSortOptions,
21423
+ "page-filter-function": __props.pageFilterFunction
21351
21424
  }, {
21352
21425
  header: vue.withCtx(() => [
21353
21426
  vue.renderSlot(_ctx.$slots, "header")
21354
21427
  ]),
21355
21428
  nav: vue.withCtx(() => [
21356
21429
  vue.renderSlot(_ctx.$slots, "nav", { editorService: vue.unref(editorService) }, () => [
21357
- vue.createVNode(_sfc_main$r, { data: _ctx.menu }, null, 8, ["data"])
21430
+ vue.createVNode(_sfc_main$r, { data: __props.menu }, null, 8, ["data"])
21358
21431
  ])
21359
21432
  ]),
21360
21433
  "content-before": vue.withCtx(() => [
@@ -21366,11 +21439,11 @@
21366
21439
  sidebar: vue.withCtx(() => [
21367
21440
  vue.renderSlot(_ctx.$slots, "sidebar", { editorService: vue.unref(editorService) }, () => [
21368
21441
  vue.createVNode(_sfc_main$a, {
21369
- data: _ctx.sidebar,
21370
- "layer-content-menu": _ctx.layerContentMenu,
21371
- "custom-content-menu": _ctx.customContentMenu,
21372
- indent: _ctx.treeIndent,
21373
- "next-level-indent-increment": _ctx.treeNextLevelIndentIncrement
21442
+ data: __props.sidebar,
21443
+ "layer-content-menu": __props.layerContentMenu,
21444
+ "custom-content-menu": __props.customContentMenu,
21445
+ indent: __props.treeIndent,
21446
+ "next-level-indent-increment": __props.treeNextLevelIndentIncrement
21374
21447
  }, {
21375
21448
  "layer-panel-header": vue.withCtx(() => [
21376
21449
  vue.renderSlot(_ctx.$slots, "layer-panel-header")
@@ -21419,9 +21492,9 @@
21419
21492
  workspace: vue.withCtx(() => [
21420
21493
  vue.renderSlot(_ctx.$slots, "workspace", { editorService: vue.unref(editorService) }, () => [
21421
21494
  vue.createVNode(_sfc_main$1, {
21422
- "disabled-stage-overlay": _ctx.disabledStageOverlay,
21423
- "stage-content-menu": _ctx.stageContentMenu,
21424
- "custom-content-menu": _ctx.customContentMenu
21495
+ "disabled-stage-overlay": __props.disabledStageOverlay,
21496
+ "stage-content-menu": __props.stageContentMenu,
21497
+ "custom-content-menu": __props.customContentMenu
21425
21498
  }, {
21426
21499
  stage: vue.withCtx(() => [
21427
21500
  vue.renderSlot(_ctx.$slots, "stage")
@@ -21437,8 +21510,8 @@
21437
21510
  "props-panel": vue.withCtx(() => [
21438
21511
  vue.renderSlot(_ctx.$slots, "props-panel", {}, () => [
21439
21512
  vue.createVNode(_sfc_main$p, {
21440
- "extend-state": _ctx.extendFormState,
21441
- "disabled-show-src": _ctx.disabledShowSrc,
21513
+ "extend-state": __props.extendFormState,
21514
+ "disabled-show-src": __props.disabledShowSrc,
21442
21515
  onMounted: propsPanelMountedHandler,
21443
21516
  onUnmounted: propsPanelUnmountedHandler,
21444
21517
  onFormError: propsPanelFormErrorHandler,