@tmagic/editor 1.3.0-alpha.20 → 1.3.0-alpha.21

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.
@@ -2748,7 +2748,7 @@ const useCodeBlockEdit = (codeBlockService) => {
2748
2748
  };
2749
2749
 
2750
2750
  const _hoisted_1$p = { class: "m-fields-code-select-col" };
2751
- const _hoisted_2$f = { class: "code-select-container" };
2751
+ const _hoisted_2$g = { class: "code-select-container" };
2752
2752
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
2753
2753
  ...{
2754
2754
  name: "MEditorCodeSelectCol"
@@ -2816,7 +2816,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
2816
2816
  return (_ctx, _cache) => {
2817
2817
  const _component_m_form_container = resolveComponent("m-form-container");
2818
2818
  return openBlock(), createElementBlock("div", _hoisted_1$p, [
2819
- createElementVNode("div", _hoisted_2$f, [
2819
+ createElementVNode("div", _hoisted_2$g, [
2820
2820
  createVNode(_component_m_form_container, {
2821
2821
  class: "select",
2822
2822
  config: selectConfig,
@@ -2852,7 +2852,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
2852
2852
  });
2853
2853
 
2854
2854
  const _hoisted_1$o = { class: "m-editor-data-source-fields" };
2855
- const _hoisted_2$e = { class: "m-editor-data-source-fields-footer" };
2855
+ const _hoisted_2$f = { class: "m-editor-data-source-fields-footer" };
2856
2856
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
2857
2857
  ...{
2858
2858
  name: "MEditorDataSourceFields"
@@ -3007,7 +3007,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
3007
3007
  data: _ctx.model[_ctx.name],
3008
3008
  columns: fieldColumns
3009
3009
  }, null, 8, ["data"]),
3010
- createElementVNode("div", _hoisted_2$e, [
3010
+ createElementVNode("div", _hoisted_2$f, [
3011
3011
  createVNode(unref(TMagicButton), {
3012
3012
  size: "small",
3013
3013
  type: "primary",
@@ -3085,7 +3085,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
3085
3085
  });
3086
3086
 
3087
3087
  const _hoisted_1$n = { style: { "display": "flex", "flex-direction": "column", "line-height": "1.2em" } };
3088
- const _hoisted_2$d = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
3088
+ const _hoisted_2$e = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
3089
3089
  const _hoisted_3$5 = { class: "el-input__inner" };
3090
3090
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
3091
3091
  ...{
@@ -3280,7 +3280,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
3280
3280
  default: withCtx(({ item }) => [
3281
3281
  createElementVNode("div", _hoisted_1$n, [
3282
3282
  createElementVNode("div", null, toDisplayString(item.text), 1),
3283
- createElementVNode("span", _hoisted_2$d, toDisplayString(item.value), 1)
3283
+ createElementVNode("span", _hoisted_2$e, toDisplayString(item.value), 1)
3284
3284
  ])
3285
3285
  ]),
3286
3286
  _: 1
@@ -3394,7 +3394,7 @@ const useDataSourceMethod = () => {
3394
3394
  };
3395
3395
 
3396
3396
  const _hoisted_1$m = { class: "m-editor-data-source-methods" };
3397
- const _hoisted_2$c = { class: "m-editor-data-source-methods-footer" };
3397
+ const _hoisted_2$d = { class: "m-editor-data-source-methods-footer" };
3398
3398
  const _sfc_main$A = /* @__PURE__ */ defineComponent({
3399
3399
  ...{
3400
3400
  name: "MEditorDataSourceMethods"
@@ -3469,7 +3469,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
3469
3469
  data: _ctx.model[_ctx.name],
3470
3470
  columns: methodColumns
3471
3471
  }, null, 8, ["data"]),
3472
- createElementVNode("div", _hoisted_2$c, [
3472
+ createElementVNode("div", _hoisted_2$d, [
3473
3473
  createVNode(unref(TMagicButton), {
3474
3474
  size: "small",
3475
3475
  type: "primary",
@@ -3498,7 +3498,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
3498
3498
  });
3499
3499
 
3500
3500
  const _hoisted_1$l = { class: "m-fields-data-source-method-select" };
3501
- const _hoisted_2$b = { class: "data-source-method-select-container" };
3501
+ const _hoisted_2$c = { class: "data-source-method-select-container" };
3502
3502
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
3503
3503
  ...{
3504
3504
  name: "MEditorDataSourceMethodSelect"
@@ -3578,7 +3578,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
3578
3578
  return (_ctx, _cache) => {
3579
3579
  const _component_m_form_container = resolveComponent("m-form-container");
3580
3580
  return openBlock(), createElementBlock("div", _hoisted_1$l, [
3581
- createElementVNode("div", _hoisted_2$b, [
3581
+ createElementVNode("div", _hoisted_2$c, [
3582
3582
  createVNode(_component_m_form_container, {
3583
3583
  class: "select",
3584
3584
  config: cascaderConfig,
@@ -3670,7 +3670,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
3670
3670
  });
3671
3671
 
3672
3672
  const _hoisted_1$k = { class: "m-fields-event-select" };
3673
- const _hoisted_2$a = {
3673
+ const _hoisted_2$b = {
3674
3674
  key: 1,
3675
3675
  class: "fullWidth"
3676
3676
  };
@@ -3874,7 +3874,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
3874
3874
  model: _ctx.model,
3875
3875
  config: tableConfig.value,
3876
3876
  onChange: onChangeHandler
3877
- }, null, 8, ["size", "disabled", "model", "config"])) : (openBlock(), createElementBlock("div", _hoisted_2$a, [
3877
+ }, null, 8, ["size", "disabled", "model", "config"])) : (openBlock(), createElementBlock("div", _hoisted_2$b, [
3878
3878
  createVNode(unref(TMagicButton), {
3879
3879
  class: "create-button",
3880
3880
  type: "primary",
@@ -3924,7 +3924,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
3924
3924
  });
3925
3925
 
3926
3926
  const _hoisted_1$j = { class: "m-fields-key-value" };
3927
- const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("span", { class: "m-fileds-key-value-delimiter" }, ":", -1);
3927
+ const _hoisted_2$a = /* @__PURE__ */ createElementVNode("span", { class: "m-fileds-key-value-delimiter" }, ":", -1);
3928
3928
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
3929
3929
  ...{
3930
3930
  name: "MEditorKeyValue"
@@ -3984,7 +3984,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
3984
3984
  size: _ctx.size,
3985
3985
  onChange: keyChangeHandler
3986
3986
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "size"]),
3987
- _hoisted_2$9,
3987
+ _hoisted_2$a,
3988
3988
  createVNode(unref(TMagicInput), {
3989
3989
  placeholder: "value",
3990
3990
  modelValue: records.value[index][1],
@@ -4363,7 +4363,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4363
4363
  });
4364
4364
 
4365
4365
  const _hoisted_1$h = { class: "m-editor-empty-panel" };
4366
- const _hoisted_2$8 = { class: "m-editor-empty-content" };
4366
+ const _hoisted_2$9 = { class: "m-editor-empty-content" };
4367
4367
  const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("p", null, "新增页面", -1);
4368
4368
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
4369
4369
  ...{
@@ -4386,7 +4386,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
4386
4386
  };
4387
4387
  return (_ctx, _cache) => {
4388
4388
  return openBlock(), createElementBlock("div", _hoisted_1$h, [
4389
- createElementVNode("div", _hoisted_2$8, [
4389
+ createElementVNode("div", _hoisted_2$9, [
4390
4390
  createElementVNode("div", {
4391
4391
  class: "m-editor-empty-button",
4392
4392
  onClick: clickHandler
@@ -4537,7 +4537,7 @@ const _hoisted_1$g = {
4537
4537
  key: 1,
4538
4538
  class: "menu-item-text"
4539
4539
  };
4540
- const _hoisted_2$7 = { class: "el-dropdown-link menubar-menu-button" };
4540
+ const _hoisted_2$8 = { class: "el-dropdown-link menubar-menu-button" };
4541
4541
  const _sfc_main$q = /* @__PURE__ */ defineComponent({
4542
4542
  ...{
4543
4543
  name: "MEditorToolButton"
@@ -4681,7 +4681,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
4681
4681
  })) : createCommentVNode("", true)
4682
4682
  ]),
4683
4683
  default: withCtx(() => [
4684
- createElementVNode("span", _hoisted_2$7, [
4684
+ createElementVNode("span", _hoisted_2$8, [
4685
4685
  createTextVNode(toDisplayString(_ctx.data.text), 1),
4686
4686
  createVNode(unref(TMagicIcon), { class: "el-icon--right" }, {
4687
4687
  default: withCtx(() => [
@@ -4982,7 +4982,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
4982
4982
  });
4983
4983
 
4984
4984
  const _hoisted_1$e = { xmlns: "http://www.w3.org/2000/svg" };
4985
- const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("g", {
4985
+ const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("g", {
4986
4986
  fill: "#7C878E",
4987
4987
  "fill-rule": "evenodd"
4988
4988
  }, [
@@ -4993,7 +4993,7 @@ const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("g", {
4993
4993
  /* @__PURE__ */ createElementVNode("path", { d: "M8 13.5L2.3 9.2 0.7 10.5 8 16 15.3 10.5 13.7 9.2z" })
4994
4994
  ], -1);
4995
4995
  const _hoisted_3$3 = [
4996
- _hoisted_2$6
4996
+ _hoisted_2$7
4997
4997
  ];
4998
4998
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
4999
4999
  ...{
@@ -5013,9 +5013,9 @@ const _hoisted_1$d = {
5013
5013
  xmlns: "http://www.w3.org/2000/svg",
5014
5014
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
5015
5015
  };
5016
- const _hoisted_2$5 = /* @__PURE__ */ createStaticVNode('<defs><rect id="path-1" x="0" y="0" width="32" height="32"></rect></defs><g id="组件规范" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="03图标" transform="translate(-561.000000, -2356.000000)"><g id="icon/line/Universal/code" transform="translate(561.000000, 2356.000000)"><g id="路径"><mask id="mask-2" fill="white"><use xlink:href="#path-1"></use></mask><use id="蒙版" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use><path d="M21.9284587,7.9482233 L29.8079004,15.827665 C29.9055315,15.9252961 29.9055315,16.0835874 29.8079004,16.1812184 L21.9284587,24.0606602 C21.8308276,24.1582912 21.6725364,24.1582912 21.5749053,24.0606602 L20.3374684,22.8232233 C20.2419143,22.7276698 20.2398813,22.5740096 20.331369,22.4759832 L20.3374687,22.4696702 L26.8027181,16.0044417 L20.3374687,9.53921328 C20.2398372,9.44158265 20.2398369,9.2832914 20.3374679,9.18566017 L21.5749053,7.9482233 C21.6725364,7.85059223 21.8308276,7.85059223 21.9284587,7.9482233 Z M10.3999684,7.9482233 L11.6374053,9.18566017 C11.7329594,9.28121371 11.7349925,9.43487387 11.6435048,9.53290029 L11.637405,9.53921328 L5.17215562,16.0044417 L11.637405,22.4696702 C11.7329593,22.5652236 11.7349926,22.7188837 11.643505,22.8169103 L11.6374053,22.8232233 L10.3999684,24.0606602 C10.3023374,24.1582912 10.1440461,24.1582912 10.046415,24.0606602 L2.1669733,16.1812184 C2.06934223,16.0835874 2.06934223,15.9252961 2.1669733,15.827665 L10.046415,7.9482233 C10.1440461,7.85059223 10.3023374,7.85059223 10.3999684,7.9482233 Z M17.2612532,9.29310422 L18.9262468,9.83189578 C19.0576112,9.87440526 19.1296423,10.0153579 19.0871328,10.1467222 L15.0848232,22.514807 C15.0423138,22.6461714 14.9013612,22.7182025 14.7699968,22.675693 L13.1050032,22.1369014 C12.9736388,22.0943919 12.9016077,21.9534393 12.9441172,21.822075 L16.9464268,9.45399022 C16.9889362,9.32262585 17.1298888,9.25059474 17.2612532,9.29310422 Z" id="形状" fill="#1D1F24" mask="url(#mask-2)"></path></g></g><g id="icon切图" transform="translate(226.000000, 1782.000000)"></g></g></g>', 2);
5016
+ const _hoisted_2$6 = /* @__PURE__ */ createStaticVNode('<defs><rect id="path-1" x="0" y="0" width="32" height="32"></rect></defs><g id="组件规范" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="03图标" transform="translate(-561.000000, -2356.000000)"><g id="icon/line/Universal/code" transform="translate(561.000000, 2356.000000)"><g id="路径"><mask id="mask-2" fill="white"><use xlink:href="#path-1"></use></mask><use id="蒙版" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use><path d="M21.9284587,7.9482233 L29.8079004,15.827665 C29.9055315,15.9252961 29.9055315,16.0835874 29.8079004,16.1812184 L21.9284587,24.0606602 C21.8308276,24.1582912 21.6725364,24.1582912 21.5749053,24.0606602 L20.3374684,22.8232233 C20.2419143,22.7276698 20.2398813,22.5740096 20.331369,22.4759832 L20.3374687,22.4696702 L26.8027181,16.0044417 L20.3374687,9.53921328 C20.2398372,9.44158265 20.2398369,9.2832914 20.3374679,9.18566017 L21.5749053,7.9482233 C21.6725364,7.85059223 21.8308276,7.85059223 21.9284587,7.9482233 Z M10.3999684,7.9482233 L11.6374053,9.18566017 C11.7329594,9.28121371 11.7349925,9.43487387 11.6435048,9.53290029 L11.637405,9.53921328 L5.17215562,16.0044417 L11.637405,22.4696702 C11.7329593,22.5652236 11.7349926,22.7188837 11.643505,22.8169103 L11.6374053,22.8232233 L10.3999684,24.0606602 C10.3023374,24.1582912 10.1440461,24.1582912 10.046415,24.0606602 L2.1669733,16.1812184 C2.06934223,16.0835874 2.06934223,15.9252961 2.1669733,15.827665 L10.046415,7.9482233 C10.1440461,7.85059223 10.3023374,7.85059223 10.3999684,7.9482233 Z M17.2612532,9.29310422 L18.9262468,9.83189578 C19.0576112,9.87440526 19.1296423,10.0153579 19.0871328,10.1467222 L15.0848232,22.514807 C15.0423138,22.6461714 14.9013612,22.7182025 14.7699968,22.675693 L13.1050032,22.1369014 C12.9736388,22.0943919 12.9016077,21.9534393 12.9441172,21.822075 L16.9464268,9.45399022 C16.9889362,9.32262585 17.1298888,9.25059474 17.2612532,9.29310422 Z" id="形状" fill="#1D1F24" mask="url(#mask-2)"></path></g></g><g id="icon切图" transform="translate(226.000000, 1782.000000)"></g></g></g>', 2);
5017
5017
  const _hoisted_4$1 = [
5018
- _hoisted_2$5
5018
+ _hoisted_2$6
5019
5019
  ];
5020
5020
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
5021
5021
  ...{
@@ -5030,7 +5030,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
5030
5030
  });
5031
5031
 
5032
5032
  const _hoisted_1$c = ["id"];
5033
- const _hoisted_2$4 = { class: "list-item" };
5033
+ const _hoisted_2$5 = { class: "list-item" };
5034
5034
  const _hoisted_3$2 = {
5035
5035
  key: 2,
5036
5036
  class: "right-tool"
@@ -5136,7 +5136,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
5136
5136
  id: data.id,
5137
5137
  class: "list-container"
5138
5138
  }, [
5139
- createElementVNode("div", _hoisted_2$4, [
5139
+ createElementVNode("div", _hoisted_2$5, [
5140
5140
  data.type === "code" ? (openBlock(), createBlock(_sfc_main$l, {
5141
5141
  key: 0,
5142
5142
  class: "codeIcon"
@@ -5331,7 +5331,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
5331
5331
  });
5332
5332
 
5333
5333
  const _hoisted_1$a = ["id"];
5334
- const _hoisted_2$3 = { class: "list-item" };
5334
+ const _hoisted_2$4 = { class: "list-item" };
5335
5335
  const _hoisted_3$1 = {
5336
5336
  key: 2,
5337
5337
  class: "right-tool"
@@ -5431,7 +5431,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
5431
5431
  id: data.id,
5432
5432
  class: "list-container"
5433
5433
  }, [
5434
- createElementVNode("div", _hoisted_2$3, [
5434
+ createElementVNode("div", _hoisted_2$4, [
5435
5435
  data.type === "code" ? (openBlock(), createBlock(_sfc_main$F, {
5436
5436
  key: 0,
5437
5437
  class: "codeIcon",
@@ -5566,6 +5566,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
5566
5566
  });
5567
5567
 
5568
5568
  const _hoisted_1$8 = ["onClick", "onDragstart"];
5569
+ const _hoisted_2$3 = ["title"];
5569
5570
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
5570
5571
  ...{
5571
5572
  name: "MEditorComponentListPanel"
@@ -5669,18 +5670,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
5669
5670
  }, [
5670
5671
  renderSlot(_ctx.$slots, "component-list-item", { component: item }, () => [
5671
5672
  createVNode(_sfc_main$F, {
5673
+ title: item.text,
5672
5674
  icon: item.icon
5673
- }, null, 8, ["icon"]),
5674
- createVNode(unref(TMagicTooltip), {
5675
- effect: "dark",
5676
- placement: "bottom",
5677
- content: item.text
5678
- }, {
5679
- default: withCtx(() => [
5680
- createElementVNode("span", null, toDisplayString(item.text), 1)
5681
- ]),
5682
- _: 2
5683
- }, 1032, ["content"])
5675
+ }, null, 8, ["title", "icon"]),
5676
+ createElementVNode("span", {
5677
+ title: item.text
5678
+ }, toDisplayString(item.text), 9, _hoisted_2$3)
5684
5679
  ])
5685
5680
  ], 40, _hoisted_1$8);
5686
5681
  }), 128))