@tmagic/editor 1.8.0-beta.8 → 1.8.0-manmanyu.9

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.
Files changed (104) hide show
  1. package/dist/es/Editor.vue_vue_type_script_setup_true_lang.js +13 -3
  2. package/dist/es/components/ContentMenu.vue_vue_type_script_setup_true_lang.js +11 -4
  3. package/dist/es/components/FloatingBox.vue_vue_type_script_setup_true_lang.js +9 -4
  4. package/dist/es/fields/Code.vue_vue_type_script_setup_true_lang.js +4 -1
  5. package/dist/es/fields/CodeLink.vue_vue_type_script_setup_true_lang.js +4 -1
  6. package/dist/es/fields/CodeSelect.vue_vue_type_script_setup_true_lang.js +68 -43
  7. package/dist/es/fields/CodeSelectCol.vue_vue_type_script_setup_true_lang.js +5 -1
  8. package/dist/es/fields/CondOpSelect.vue_vue_type_script_setup_true_lang.js +4 -1
  9. package/dist/es/fields/DataSourceFieldSelect/Index.vue_vue_type_script_setup_true_lang.js +10 -7
  10. package/dist/es/fields/DataSourceFields.vue_vue_type_script_setup_true_lang.js +4 -1
  11. package/dist/es/fields/DataSourceInput.vue_vue_type_script_setup_true_lang.js +4 -1
  12. package/dist/es/fields/DataSourceMethodSelect.vue_vue_type_script_setup_true_name_true_lang.js +4 -1
  13. package/dist/es/fields/DataSourceMethods.vue_vue_type_script_setup_true_lang.js +4 -1
  14. package/dist/es/fields/DataSourceMocks.vue_vue_type_script_setup_true_lang.js +4 -1
  15. package/dist/es/fields/DataSourceSelect.vue_vue_type_script_setup_true_lang.js +4 -1
  16. package/dist/es/fields/DisplayConds.vue_vue_type_script_setup_true_lang.js +8 -2
  17. package/dist/es/fields/EventSelect.vue_vue_type_script_setup_true_lang.js +101 -64
  18. package/dist/es/fields/KeyValue.vue_vue_type_script_setup_true_lang.js +4 -1
  19. package/dist/es/fields/PageFragmentSelect.vue_vue_type_script_setup_true_lang.js +4 -1
  20. package/dist/es/fields/StyleSetter/Index.vue_vue_type_script_setup_true_lang.js +5 -4
  21. package/dist/es/fields/StyleSetter/components/BackgroundPosition.vue_vue_type_script_setup_true_lang.js +4 -1
  22. package/dist/es/fields/StyleSetter/components/Border.vue_vue_type_script_setup_true_lang.js +1 -1
  23. package/dist/es/fields/StyleSetter/icons/align-items/Center.js +31 -0
  24. package/dist/es/fields/StyleSetter/icons/align-items/FlexEnd.js +31 -0
  25. package/dist/es/fields/StyleSetter/icons/align-items/FlexStart.js +31 -0
  26. package/dist/es/fields/StyleSetter/icons/align-items/SpaceAround.js +50 -0
  27. package/dist/es/fields/StyleSetter/icons/align-items/SpaceBetween.js +50 -0
  28. package/dist/es/fields/StyleSetter/icons/background-repeat/NoRepeat.js +6 -6
  29. package/dist/es/fields/StyleSetter/icons/background-repeat/Repeat.js +5 -2
  30. package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatX.js +28 -5
  31. package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatY.js +31 -5
  32. package/dist/es/fields/StyleSetter/icons/flex-direction/Column.js +10 -2
  33. package/dist/es/fields/StyleSetter/icons/flex-direction/ColumnReverse.js +10 -2
  34. package/dist/es/fields/StyleSetter/icons/flex-direction/Row.js +10 -2
  35. package/dist/es/fields/StyleSetter/icons/flex-direction/RowReverse.js +10 -2
  36. package/dist/es/fields/StyleSetter/icons/justify-content/Center.js +16 -2
  37. package/dist/es/fields/StyleSetter/icons/justify-content/FlexEnd.js +18 -2
  38. package/dist/es/fields/StyleSetter/icons/justify-content/FlexStart.js +18 -2
  39. package/dist/es/fields/StyleSetter/icons/justify-content/SpaceAround.js +36 -2
  40. package/dist/es/fields/StyleSetter/icons/justify-content/SpaceBetween.js +32 -2
  41. package/dist/es/fields/StyleSetter/pro/Background.vue_vue_type_script_setup_true_lang.js +11 -6
  42. package/dist/es/fields/StyleSetter/pro/Font.vue_vue_type_script_setup_true_lang.js +6 -3
  43. package/dist/es/fields/StyleSetter/pro/Layout.vue_vue_type_script_setup_true_lang.js +82 -46
  44. package/dist/es/fields/UISelect.vue_vue_type_script_setup_true_lang.js +4 -1
  45. package/dist/es/icons/DatasourceIcon.js +17 -0
  46. package/dist/es/layouts/Framework.vue_vue_type_script_setup_true_lang.js +14 -10
  47. package/dist/es/style.css +294 -37
  48. package/dist/es/utils/const.js +1 -1
  49. package/dist/es/utils/props.js +137 -31
  50. package/dist/style.css +294 -37
  51. package/dist/themes/magic-admin.css +2316 -0
  52. package/dist/tmagic-editor.umd.cjs +1107 -437
  53. package/package.json +7 -7
  54. package/src/Editor.vue +13 -1
  55. package/src/components/ContentMenu.vue +10 -2
  56. package/src/components/FloatingBox.vue +13 -2
  57. package/src/editorProps.ts +9 -0
  58. package/src/fields/CodeSelect.vue +51 -40
  59. package/src/fields/CodeSelectCol.vue +1 -0
  60. package/src/fields/DataSourceFieldSelect/Index.vue +14 -5
  61. package/src/fields/DisplayConds.vue +4 -1
  62. package/src/fields/EventSelect.vue +58 -32
  63. package/src/fields/StyleSetter/Index.vue +1 -4
  64. package/src/fields/StyleSetter/components/Border.vue +1 -1
  65. package/src/fields/StyleSetter/icons/align-items/Center.vue +19 -0
  66. package/src/fields/StyleSetter/icons/align-items/FlexEnd.vue +19 -0
  67. package/src/fields/StyleSetter/icons/align-items/FlexStart.vue +19 -0
  68. package/src/fields/StyleSetter/icons/align-items/SpaceAround.vue +34 -0
  69. package/src/fields/StyleSetter/icons/align-items/SpaceBetween.vue +34 -0
  70. package/src/fields/StyleSetter/icons/align-items/index copy.ts +5 -0
  71. package/src/fields/StyleSetter/icons/align-items/index.ts +5 -0
  72. package/src/fields/StyleSetter/icons/background-repeat/NoRepeat.vue +20 -4
  73. package/src/fields/StyleSetter/icons/background-repeat/Repeat.vue +10 -28
  74. package/src/fields/StyleSetter/icons/background-repeat/RepeatX.vue +4 -5
  75. package/src/fields/StyleSetter/icons/background-repeat/RepeatY.vue +4 -5
  76. package/src/fields/StyleSetter/icons/flex-direction/Column.vue +4 -3
  77. package/src/fields/StyleSetter/icons/flex-direction/ColumnReverse.vue +4 -3
  78. package/src/fields/StyleSetter/icons/flex-direction/Row.vue +4 -3
  79. package/src/fields/StyleSetter/icons/flex-direction/RowReverse.vue +4 -3
  80. package/src/fields/StyleSetter/icons/justify-content/Center.vue +5 -2
  81. package/src/fields/StyleSetter/icons/justify-content/FlexEnd.vue +15 -2
  82. package/src/fields/StyleSetter/icons/justify-content/FlexStart.vue +15 -2
  83. package/src/fields/StyleSetter/icons/justify-content/SpaceAround.vue +28 -3
  84. package/src/fields/StyleSetter/icons/justify-content/SpaceBetween.vue +28 -2
  85. package/src/fields/StyleSetter/pro/Background.vue +11 -5
  86. package/src/fields/StyleSetter/pro/Font.vue +3 -3
  87. package/src/fields/StyleSetter/pro/Layout.vue +105 -28
  88. package/src/fields/UISelect.vue +1 -1
  89. package/src/icons/DatasourceIcon.vue +7 -0
  90. package/src/layouts/Framework.vue +7 -1
  91. package/src/theme/code-block.scss +37 -0
  92. package/src/theme/common/var.scss +1 -1
  93. package/src/theme/component-list-panel.scss +2 -2
  94. package/src/theme/data-source-field.scss +4 -0
  95. package/src/theme/display-conds.scss +11 -0
  96. package/src/theme/event.scss +55 -1
  97. package/src/theme/history-list-panel.scss +9 -9
  98. package/src/theme/props-panel.scss +2 -1
  99. package/src/theme/style-setter/border.scss +14 -5
  100. package/src/theme/theme.scss +1 -0
  101. package/src/theme/themes/magic-admin/index.scss +125 -0
  102. package/src/utils/const.ts +2 -1
  103. package/src/utils/props.ts +138 -9
  104. package/types/index.d.ts +37 -1
@@ -4,13 +4,39 @@ import { createElementBlock, createElementVNode, openBlock } from "vue";
4
4
  var _sfc_main = {};
5
5
  var _hoisted_1 = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
- viewBox: "0 0 1024 1024"
7
+ width: "16",
8
+ height: "16",
9
+ viewBox: "0 0 16 16",
10
+ fill: "currentColor"
8
11
  };
9
12
  function _sfc_render(_ctx, _cache) {
10
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
11
- 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",
12
- fill: "#333333"
13
- }, null, -1)])]);
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
14
+ createElementVNode("rect", {
15
+ x: "13",
16
+ y: "3",
17
+ width: "2",
18
+ height: "10",
19
+ rx: "1",
20
+ transform: "rotate(90 13 3)"
21
+ }, null, -1),
22
+ createElementVNode("rect", {
23
+ x: "13",
24
+ y: "7",
25
+ width: "2",
26
+ height: "10",
27
+ rx: "1",
28
+ transform: "rotate(90 13 7)"
29
+ }, null, -1),
30
+ createElementVNode("rect", {
31
+ x: "13",
32
+ y: "11",
33
+ width: "2",
34
+ height: "10",
35
+ rx: "1",
36
+ transform: "rotate(90 13 11)",
37
+ "fill-opacity": "0.3"
38
+ }, null, -1)
39
+ ])]);
14
40
  }
15
41
  var RepeatY_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
16
42
  //#endregion
@@ -4,10 +4,18 @@ import { createElementBlock, createElementVNode, openBlock } from "vue";
4
4
  var _sfc_main = {};
5
5
  var _hoisted_1 = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
- viewBox: "0 0 1024 1024"
7
+ width: "16",
8
+ height: "16",
9
+ viewBox: "0 0 16 16",
10
+ fill: "currentColor"
8
11
  };
9
12
  function _sfc_render(_ctx, _cache) {
10
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M896 320H128V0h768v320z m0 320H128v-256h768v256z m-128 192l-256 192-256-192 192-0.032V704h128v128h192z" }, null, -1)])]);
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M12 3C12.5523 3 13 3.44772 13 4V10C13 10.5523 12.5523 11 12 11H4C3.44772 11 3 10.5523 3 10V4C3 3.44772 3.44772 3 4 3H12ZM4.5 4C4.22386 4 4 4.22386 4 4.5V9.5C4 9.77614 4.22386 10 4.5 10H11.5C11.7761 10 12 9.77614 12 9.5V4.5C12 4.22386 11.7761 4 11.5 4H4.5Z" }, null, -1), createElementVNode("path", {
14
+ "fill-rule": "evenodd",
15
+ "clip-rule": "evenodd",
16
+ d: "M11 12L8 15L5 12L11 12Z",
17
+ "fill-opacity": "0.3"
18
+ }, null, -1)])]);
11
19
  }
12
20
  var Column_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
13
21
  //#endregion
@@ -4,10 +4,18 @@ import { createElementBlock, createElementVNode, openBlock } from "vue";
4
4
  var _sfc_main = {};
5
5
  var _hoisted_1 = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
- viewBox: "0 0 1024 1024"
7
+ width: "16",
8
+ height: "16",
9
+ viewBox: "0 0 16 16",
10
+ fill: "currentColor"
8
11
  };
9
12
  function _sfc_render(_ctx, _cache) {
10
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M896 704H128v320h768V704z m0-320H128v256h768v-256z m-128-192l-256-192-256 192 192 0.032V320h128V192h192z" }, null, -1)])]);
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M12 5C12.5523 5 13 5.44772 13 6V12C13 12.5523 12.5523 13 12 13H4C3.44772 13 3 12.5523 3 12V6C3 5.44772 3.44772 5 4 5H12ZM4.5 6C4.22386 6 4 6.22386 4 6.5V11.5C4 11.7761 4.22386 12 4.5 12H11.5C11.7761 12 12 11.7761 12 11.5V6.5C12 6.22386 11.7761 6 11.5 6H4.5Z" }, null, -1), createElementVNode("path", {
14
+ "fill-rule": "evenodd",
15
+ "clip-rule": "evenodd",
16
+ d: "M5 4L8 1L11 4L5 4Z",
17
+ "fill-opacity": "0.3"
18
+ }, null, -1)])]);
11
19
  }
12
20
  var ColumnReverse_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
13
21
  //#endregion
@@ -4,10 +4,18 @@ import { createElementBlock, createElementVNode, openBlock } from "vue";
4
4
  var _sfc_main = {};
5
5
  var _hoisted_1 = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
- viewBox: "0 0 1024 1024"
7
+ width: "16",
8
+ height: "16",
9
+ viewBox: "0 0 16 16",
10
+ fill: "currentColor"
8
11
  };
9
12
  function _sfc_render(_ctx, _cache) {
10
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M320 128v768H0V128h320z m320 0v768h-256V128h256z m192 128l192 256-192 256-0.032-192H704v-128h128V256z" }, null, -1)])]);
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M10 4C10.5523 4 11 4.44772 11 5V11C11 11.5523 10.5523 12 10 12H2C1.44772 12 1 11.5523 1 11V5C1 4.44772 1.44772 4 2 4H10ZM2.5 5C2.22386 5 2 5.22386 2 5.5V10.5C2 10.7761 2.22386 11 2.5 11H9.5C9.77614 11 10 10.7761 10 10.5V5.5C10 5.22386 9.77614 5 9.5 5H2.5Z" }, null, -1), createElementVNode("path", {
14
+ "fill-rule": "evenodd",
15
+ "clip-rule": "evenodd",
16
+ d: "M12 5L15 8L12 11L12 5Z",
17
+ "fill-opacity": "0.3"
18
+ }, null, -1)])]);
11
19
  }
12
20
  var Row_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
13
21
  //#endregion
@@ -4,10 +4,18 @@ import { createElementBlock, createElementVNode, openBlock } from "vue";
4
4
  var _sfc_main = {};
5
5
  var _hoisted_1 = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
- viewBox: "0 0 1024 1024"
7
+ width: "16",
8
+ height: "16",
9
+ viewBox: "0 0 16 16",
10
+ fill: "currentColor"
8
11
  };
9
12
  function _sfc_render(_ctx, _cache) {
10
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M704 128v768h320V128H704zM384 128v768h256V128h-256zM192 256l-192 256 192 256 0.032-192H320v-128H192V256z" }, null, -1)])]);
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M14 4C14.5523 4 15 4.44772 15 5V11C15 11.5523 14.5523 12 14 12H6C5.44772 12 5 11.5523 5 11V5C5 4.44772 5.44772 4 6 4H14ZM6.5 5C6.22386 5 6 5.22386 6 5.5V10.5C6 10.7761 6.22386 11 6.5 11H13.5C13.7761 11 14 10.7761 14 10.5V5.5C14 5.22386 13.7761 5 13.5 5H6.5Z" }, null, -1), createElementVNode("path", {
14
+ "fill-rule": "evenodd",
15
+ "clip-rule": "evenodd",
16
+ d: "M4 11L1 8L4 5L4 11Z",
17
+ "fill-opacity": "0.3"
18
+ }, null, -1)])]);
11
19
  }
12
20
  var RowReverse_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
13
21
  //#endregion
@@ -4,10 +4,24 @@ import { createElementBlock, createElementVNode, openBlock } from "vue";
4
4
  var _sfc_main = {};
5
5
  var _hoisted_1 = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
- viewBox: "0 0 1024 1024"
7
+ width: "16",
8
+ height: "16",
9
+ viewBox: "0 0 16 16",
10
+ fill: "currentColor"
8
11
  };
9
12
  function _sfc_render(_ctx, _cache) {
10
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M480 1024V0h64v1024h-64z m128-64V64h320v896H608zM96 960V64h320v896H96z" }, null, -1)])]);
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M13 4C13.5523 4 14 4.44772 14 5V11C14 11.5523 13.5523 12 13 12H3C2.44772 12 2 11.5523 2 11V5C2 4.44772 2.44772 4 3 4H13ZM3.59082 5C3.31472 5.00005 3.09082 5.22389 3.09082 5.5V10.5C3.09082 10.7761 3.31472 11 3.59082 11H12.4092C12.6853 11 12.9092 10.7761 12.9092 10.5V5.5C12.9092 5.22389 12.6853 5.00005 12.4092 5H3.59082Z" }, null, -1), createElementVNode("rect", {
14
+ x: "7.5",
15
+ y: "2",
16
+ width: "1",
17
+ height: "12",
18
+ rx: "0.5",
19
+ "fill-opacity": "0.3",
20
+ style: {
21
+ "fill": "black",
22
+ "fill-opacity": "0.3"
23
+ }
24
+ }, null, -1)])]);
11
25
  }
12
26
  var Center_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
13
27
  //#endregion
@@ -4,10 +4,26 @@ import { createElementBlock, createElementVNode, openBlock } from "vue";
4
4
  var _sfc_main = {};
5
5
  var _hoisted_1 = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
- viewBox: "0 0 1024 1024"
7
+ width: "16",
8
+ height: "16",
9
+ viewBox: "0 0 16 16",
10
+ fill: "currentColor"
8
11
  };
9
12
  function _sfc_render(_ctx, _cache) {
10
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M416 160H96v704h320V160z m384 0H480v704h320V160z m128-160h-64v1024h64V0z" }, null, -1)])]);
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M11 4C11.5523 4 12 4.44772 12 5V11C12 11.5523 11.5523 12 11 12H2C1.44772 12 1 11.5523 1 11V5C1 4.44772 1.44772 4 2 4H11ZM2.5 5C2.22386 5 2 5.22386 2 5.5V10.5C2 10.7761 2.22386 11 2.5 11H10.5C10.7761 11 11 10.7761 11 10.5V5.5C11 5.22386 10.7761 5 10.5 5H2.5Z" }, null, -1), createElementVNode("rect", {
14
+ x: "14.25",
15
+ y: "2.25",
16
+ width: "0.5",
17
+ height: "11.5",
18
+ rx: "0.25",
19
+ stroke: "black",
20
+ "stroke-opacity": "0.3",
21
+ style: {
22
+ "stroke": "black",
23
+ "stroke-opacity": "0.3"
24
+ },
25
+ "stroke-width": "0.5"
26
+ }, null, -1)])]);
11
27
  }
12
28
  var FlexEnd_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
13
29
  //#endregion
@@ -4,10 +4,26 @@ import { createElementBlock, createElementVNode, openBlock } from "vue";
4
4
  var _sfc_main = {};
5
5
  var _hoisted_1 = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
- viewBox: "0 0 1024 1024"
7
+ width: "16",
8
+ height: "16",
9
+ viewBox: "0 0 16 16",
10
+ fill: "currentColor"
8
11
  };
9
12
  function _sfc_render(_ctx, _cache) {
10
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M608 160h320v704H608V160zM224 160h320v704H224V160zM96 0h64v1024H96V0z" }, null, -1)])]);
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M14 4C14.5523 4 15 4.44772 15 5V11C15 11.5523 14.5523 12 14 12H5C4.44772 12 4 11.5523 4 11V5C4 4.44772 4.44772 4 5 4H14ZM5.5 5C5.22386 5 5 5.22386 5 5.5V10.5C5 10.7761 5.22386 11 5.5 11H13.5C13.7761 11 14 10.7761 14 10.5V5.5C14 5.22386 13.7761 5 13.5 5H5.5Z" }, null, -1), createElementVNode("rect", {
14
+ x: "1.25",
15
+ y: "2.25",
16
+ width: "0.5",
17
+ height: "11.5",
18
+ rx: "0.25",
19
+ stroke: "white",
20
+ "stroke-opacity": "0.3",
21
+ style: {
22
+ "stroke": "white",
23
+ "stroke-opacity": "0.3"
24
+ },
25
+ "stroke-width": "0.5"
26
+ }, null, -1)])]);
11
27
  }
12
28
  var FlexStart_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
13
29
  //#endregion
@@ -4,10 +4,44 @@ import { createElementBlock, createElementVNode, openBlock } from "vue";
4
4
  var _sfc_main = {};
5
5
  var _hoisted_1 = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
- viewBox: "0 0 1024 1024"
7
+ width: "16",
8
+ height: "16",
9
+ viewBox: "0 0 16 16",
10
+ fill: "currentColor"
8
11
  };
9
12
  function _sfc_render(_ctx, _cache) {
10
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M320 864H192v160H128v-160H0V160h128V0h64v160h128v704z m704 0h-128v160h-64v-160h-128V160h128V0h64v160h128v704z" }, null, -1)])]);
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
14
+ createElementVNode("path", { d: "M6 4C6.55228 4 7 4.44772 7 5V11C7 11.5523 6.55228 12 6 12H3C2.44772 12 2 11.5523 2 11V5C2 4.44772 2.44772 4 3 4H6ZM3.5 5C3.22386 5 3 5.22386 3 5.5V10.5C3 10.7761 3.22386 11 3.5 11H5.5C5.77614 11 6 10.7761 6 10.5V5.5C6 5.22386 5.77614 5 5.5 5H3.5Z" }, null, -1),
15
+ createElementVNode("path", { d: "M13 4C13.5523 4 14 4.44772 14 5V11C14 11.5523 13.5523 12 13 12H10C9.44772 12 9 11.5523 9 11V5C9 4.44772 9.44772 4 10 4H13ZM10.5 5C10.2239 5 10 5.22386 10 5.5V10.5C10 10.7761 10.2239 11 10.5 11H12.5C12.7761 11 13 10.7761 13 10.5V5.5C13 5.22386 12.7761 5 12.5 5H10.5Z" }, null, -1),
16
+ createElementVNode("rect", {
17
+ x: "11.25",
18
+ y: "2.25",
19
+ width: "0.5",
20
+ height: "11.5",
21
+ rx: "0.25",
22
+ stroke: "black",
23
+ "stroke-opacity": "0.3",
24
+ style: {
25
+ "stroke": "black",
26
+ "stroke-opacity": "0.3"
27
+ },
28
+ "stroke-width": "0.5"
29
+ }, null, -1),
30
+ createElementVNode("rect", {
31
+ x: "4.25",
32
+ y: "2.25",
33
+ width: "0.5",
34
+ height: "11.5",
35
+ rx: "0.25",
36
+ stroke: "black",
37
+ "stroke-opacity": "0.3",
38
+ style: {
39
+ "stroke": "black",
40
+ "stroke-opacity": "0.3"
41
+ },
42
+ "stroke-width": "0.5"
43
+ }, null, -1)
44
+ ])]);
11
45
  }
12
46
  var SpaceAround_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
13
47
  //#endregion
@@ -4,10 +4,40 @@ import { createElementBlock, createElementVNode, openBlock } from "vue";
4
4
  var _sfc_main = {};
5
5
  var _hoisted_1 = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
- viewBox: "0 0 1024 1024"
7
+ width: "16",
8
+ height: "16",
9
+ viewBox: "0 0 16 16",
10
+ fill: "currentColor"
8
11
  };
9
12
  function _sfc_render(_ctx, _cache) {
10
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M64 1024H0V0h64v1024z m384-160H128V160h320v704z m448 0H576V160h320v704z m128 160h-64V0h64v1024z" }, null, -1)])]);
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
14
+ createElementVNode("path", { d: "M6 4C6.55228 4 7 4.44772 7 5V11C7 11.5523 6.55228 12 6 12H4C3.44772 12 3 11.5523 3 11V5C3 4.44772 3.44772 4 4 4H6ZM4.5 5C4.22386 5 4 5.22386 4 5.5V10.5C4 10.7761 4.22386 11 4.5 11H5.5C5.77614 11 6 10.7761 6 10.5V5.5C6 5.22386 5.77614 5 5.5 5H4.5Z" }, null, -1),
15
+ createElementVNode("path", { d: "M12 4C12.5523 4 13 4.44772 13 5V11C13 11.5523 12.5523 12 12 12H10C9.44772 12 9 11.5523 9 11V5C9 4.44772 9.44772 4 10 4H12ZM10.5 5C10.2239 5 10 5.22386 10 5.5V10.5C10 10.7761 10.2239 11 10.5 11H11.5C11.7761 11 12 10.7761 12 10.5V5.5C12 5.22386 11.7761 5 11.5 5H10.5Z" }, null, -1),
16
+ createElementVNode("rect", {
17
+ x: "14.25",
18
+ y: "2.25",
19
+ width: "0.5",
20
+ height: "11.5",
21
+ rx: "0.25",
22
+ stroke: "black",
23
+ "stroke-opacity": "0.3",
24
+ "stroke-width": "0.5"
25
+ }, null, -1),
26
+ createElementVNode("rect", {
27
+ x: "1.25",
28
+ y: "2.25",
29
+ width: "0.5",
30
+ height: "11.5",
31
+ rx: "0.25",
32
+ stroke: "black",
33
+ "stroke-opacity": "0.3",
34
+ style: {
35
+ "stroke": "black",
36
+ "stroke-opacity": "0.3"
37
+ },
38
+ "stroke-width": "0.5"
39
+ }, null, -1)
40
+ ])]);
11
41
  }
12
42
  var SpaceBetween_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
13
43
  //#endregion
@@ -13,7 +13,8 @@ var Background_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
13
13
  lastValues: {},
14
14
  isCompare: { type: Boolean },
15
15
  disabled: { type: Boolean },
16
- size: {}
16
+ size: {},
17
+ theme: {}
17
18
  },
18
19
  emits: ["change", "addDiffCount"],
19
20
  setup(__props, { emit: __emit }) {
@@ -37,7 +38,7 @@ var Background_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
37
38
  name: "backgroundSize",
38
39
  text: "背景尺寸",
39
40
  type: "radioGroup",
40
- childType: "button",
41
+ childType: "default",
41
42
  labelWidth: "68px",
42
43
  options: [
43
44
  {
@@ -67,22 +68,26 @@ var Background_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
67
68
  {
68
69
  value: "repeat",
69
70
  icon: markRaw(Repeat_default),
70
- tooltip: "垂直和水平方向重复 repeat"
71
+ tooltip: "垂直和水平方向重复 repeat",
72
+ text: "垂直与水平重复"
71
73
  },
72
74
  {
73
75
  value: "repeat-x",
74
76
  icon: markRaw(RepeatX_default),
75
- tooltip: "水平方向重复 repeat-x"
77
+ tooltip: "水平方向重复 repeat-x",
78
+ text: "水平方向重复"
76
79
  },
77
80
  {
78
81
  value: "repeat-y",
79
82
  icon: markRaw(RepeatY_default),
80
- tooltip: "垂直方向重复 repeat-y"
83
+ tooltip: "垂直方向重复 repeat-y",
84
+ text: "垂直方向重复"
81
85
  },
82
86
  {
83
87
  value: "no-repeat",
84
88
  icon: markRaw(NoRepeat_default),
85
- tooltip: "不重复 no-repeat"
89
+ tooltip: "不重复 no-repeat",
90
+ text: "不重复"
86
91
  }
87
92
  ]
88
93
  },
@@ -63,17 +63,20 @@ var Font_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
63
63
  {
64
64
  value: "left",
65
65
  icon: markRaw(Left_default),
66
- tooltip: "左对齐 row"
66
+ tooltip: "左对齐 row",
67
+ text: "左对齐"
67
68
  },
68
69
  {
69
70
  value: "center",
70
71
  icon: markRaw(Center_default),
71
- tooltip: "居中对齐 center"
72
+ tooltip: "居中对齐 center",
73
+ text: "居中对齐"
72
74
  },
73
75
  {
74
76
  value: "right",
75
77
  icon: markRaw(Right_default),
76
- tooltip: "右对齐 right"
78
+ tooltip: "右对齐 right",
79
+ text: "右对齐"
77
80
  }
78
81
  ]
79
82
  }
@@ -1,4 +1,9 @@
1
1
  import Box_default from "../components/Box.js";
2
+ import Center_default from "../icons/align-items/Center.js";
3
+ import FlexEnd_default from "../icons/align-items/FlexEnd.js";
4
+ import FlexStart_default from "../icons/align-items/FlexStart.js";
5
+ import SpaceAround_default from "../icons/align-items/SpaceAround.js";
6
+ import SpaceBetween_default from "../icons/align-items/SpaceBetween.js";
2
7
  import Block_default from "../icons/display/Block.js";
3
8
  import Flex_default from "../icons/display/Flex.js";
4
9
  import Inline_default from "../icons/display/Inline.js";
@@ -8,12 +13,13 @@ import Column_default from "../icons/flex-direction/Column.js";
8
13
  import ColumnReverse_default from "../icons/flex-direction/ColumnReverse.js";
9
14
  import Row_default from "../icons/flex-direction/Row.js";
10
15
  import RowReverse_default from "../icons/flex-direction/RowReverse.js";
11
- import Center_default from "../icons/justify-content/Center.js";
12
- import FlexEnd_default from "../icons/justify-content/FlexEnd.js";
13
- import FlexStart_default from "../icons/justify-content/FlexStart.js";
14
- import SpaceAround_default from "../icons/justify-content/SpaceAround.js";
15
- import SpaceBetween_default from "../icons/justify-content/SpaceBetween.js";
16
+ import Center_default$1 from "../icons/justify-content/Center.js";
17
+ import FlexEnd_default$1 from "../icons/justify-content/FlexEnd.js";
18
+ import FlexStart_default$1 from "../icons/justify-content/FlexStart.js";
19
+ import SpaceAround_default$1 from "../icons/justify-content/SpaceAround.js";
20
+ import SpaceBetween_default$1 from "../icons/justify-content/SpaceBetween.js";
16
21
  import { MContainer, defineFormItem } from "@tmagic/form";
22
+ import { useTheme } from "@tmagic/design";
17
23
  import { Fragment, createElementBlock, createVNode, defineComponent, markRaw, openBlock, unref, vShow, withDirectives } from "vue";
18
24
  //#region packages/editor/src/fields/StyleSetter/pro/Layout.vue?vue&type=script&setup=true&lang.ts
19
25
  var Layout_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
@@ -23,43 +29,51 @@ var Layout_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
23
29
  lastValues: {},
24
30
  isCompare: { type: Boolean },
25
31
  disabled: { type: Boolean },
26
- size: {}
32
+ size: {},
33
+ theme: {}
27
34
  },
28
35
  emits: ["change", "addDiffCount"],
29
36
  setup(__props, { emit: __emit }) {
37
+ const props = __props;
30
38
  const emit = __emit;
39
+ const displayTheme = useTheme(props);
31
40
  const config = defineFormItem({ items: [
32
41
  {
33
42
  name: "display",
34
43
  text: "模式",
35
44
  type: "radioGroup",
36
- childType: "button",
45
+ childType: displayTheme.value !== "magic-admin" ? "button" : "default",
37
46
  labelWidth: "68px",
38
47
  options: [
39
48
  {
40
49
  value: "inline",
41
- icon: markRaw(Inline_default),
42
- tooltip: "内联布局 inline"
50
+ icon: displayTheme.value !== "magic-admin" ? markRaw(Inline_default) : void 0,
51
+ tooltip: "内联布局 inline",
52
+ text: "内联布局\n inline"
43
53
  },
44
54
  {
45
55
  value: "flex",
46
- icon: markRaw(Flex_default),
47
- tooltip: "弹性布局 flex"
56
+ icon: displayTheme.value !== "magic-admin" ? markRaw(Flex_default) : void 0,
57
+ tooltip: "弹性布局 flex",
58
+ text: "弹性布局\n flex"
48
59
  },
49
60
  {
50
61
  value: "block",
51
- icon: markRaw(Block_default),
52
- tooltip: "块级布局 block"
62
+ icon: displayTheme.value !== "magic-admin" ? markRaw(Block_default) : void 0,
63
+ tooltip: "块级布局 block",
64
+ text: "块级布局\n block"
53
65
  },
54
66
  {
55
67
  value: "inline-block",
56
- icon: markRaw(InlineBlock_default),
57
- tooltip: "内联块布局 inline-block"
68
+ icon: displayTheme.value !== "magic-admin" ? markRaw(InlineBlock_default) : void 0,
69
+ tooltip: "内联块布局 inline-block",
70
+ text: "内联块布局\n inline-block"
58
71
  },
59
72
  {
60
73
  value: "none",
61
- icon: markRaw(None_default),
62
- tooltip: "隐藏 none"
74
+ icon: displayTheme.value !== "magic-admin" ? markRaw(None_default) : void 0,
75
+ tooltip: "隐藏 none",
76
+ text: "隐藏\n none"
63
77
  }
64
78
  ]
65
79
  },
@@ -73,22 +87,26 @@ var Layout_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
73
87
  {
74
88
  value: "row",
75
89
  icon: markRaw(Row_default),
76
- tooltip: "水平方向 起点在左侧 row"
90
+ tooltip: "水平方向 起点在左侧 row",
91
+ text: "左起点"
77
92
  },
78
93
  {
79
94
  value: "row-reverse",
80
95
  icon: markRaw(RowReverse_default),
81
- tooltip: "水平方向 起点在右侧 row-reverse"
96
+ tooltip: "水平方向 起点在右侧 row-reverse",
97
+ text: "右起点"
82
98
  },
83
99
  {
84
100
  value: "column",
85
101
  icon: markRaw(Column_default),
86
- tooltip: "垂直方向 起点在上沿 column"
102
+ tooltip: "垂直方向 起点在上沿 column",
103
+ text: "顶部起点"
87
104
  },
88
105
  {
89
106
  value: "column-reverse",
90
107
  icon: markRaw(ColumnReverse_default),
91
- tooltip: "垂直方向 起点在下沿 column-reverse"
108
+ tooltip: "垂直方向 起点在下沿 column-reverse",
109
+ text: "底部起点"
92
110
  }
93
111
  ],
94
112
  display: (_mForm, { model }) => model.display === "flex"
@@ -102,28 +120,33 @@ var Layout_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
102
120
  options: [
103
121
  {
104
122
  value: "flex-start",
105
- icon: markRaw(FlexStart_default),
106
- tooltip: "左对齐 flex-start"
123
+ icon: markRaw(FlexStart_default$1),
124
+ tooltip: "左对齐 flex-start",
125
+ text: "左对齐"
107
126
  },
108
127
  {
109
128
  value: "flex-end",
110
- icon: markRaw(FlexEnd_default),
111
- tooltip: "右对齐 flex-end"
129
+ icon: markRaw(FlexEnd_default$1),
130
+ tooltip: "右对齐 flex-end",
131
+ text: "右对齐"
112
132
  },
113
133
  {
114
134
  value: "center",
115
- icon: markRaw(Center_default),
116
- tooltip: "居中 center"
135
+ icon: markRaw(Center_default$1),
136
+ tooltip: "居中 center",
137
+ text: "居中"
117
138
  },
118
139
  {
119
140
  value: "space-between",
120
- icon: markRaw(SpaceBetween_default),
121
- tooltip: "两端对齐 space-between"
141
+ icon: markRaw(SpaceBetween_default$1),
142
+ tooltip: "两端对齐 space-between",
143
+ text: "左右对齐"
122
144
  },
123
145
  {
124
146
  value: "space-around",
125
- icon: markRaw(SpaceAround_default),
126
- tooltip: "横向平分 space-around"
147
+ icon: markRaw(SpaceAround_default$1),
148
+ tooltip: "横向平分 space-around",
149
+ text: "横向等分"
127
150
  }
128
151
  ],
129
152
  display: (_mForm, { model }) => model.display === "flex"
@@ -138,27 +161,32 @@ var Layout_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
138
161
  {
139
162
  value: "flex-start",
140
163
  icon: markRaw(FlexStart_default),
141
- tooltip: "左对齐 flex-start"
164
+ tooltip: "左对齐 flex-start",
165
+ text: "上对齐"
142
166
  },
143
167
  {
144
168
  value: "flex-end",
145
169
  icon: markRaw(FlexEnd_default),
146
- tooltip: "右对齐 flex-end"
170
+ tooltip: "右对齐 flex-end",
171
+ text: "下对齐"
147
172
  },
148
173
  {
149
174
  value: "center",
150
175
  icon: markRaw(Center_default),
151
- tooltip: "居中 center"
176
+ tooltip: "居中 center",
177
+ text: "居中"
152
178
  },
153
179
  {
154
180
  value: "space-between",
155
181
  icon: markRaw(SpaceBetween_default),
156
- tooltip: "两端对齐 space-between"
182
+ tooltip: "两端对齐 space-between",
183
+ text: "上下对齐"
157
184
  },
158
185
  {
159
186
  value: "space-around",
160
187
  icon: markRaw(SpaceAround_default),
161
- tooltip: "横向平分 space-around"
188
+ tooltip: "横向平分 space-around",
189
+ text: "纵向等分"
162
190
  }
163
191
  ],
164
192
  display: (_mForm, { model }) => model.display === "flex"
@@ -167,7 +195,7 @@ var Layout_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
167
195
  name: "flexWrap",
168
196
  text: "换行",
169
197
  type: "radioGroup",
170
- childType: "button",
198
+ childType: displayTheme.value !== "magic-admin" ? "button" : "default",
171
199
  labelWidth: "68px",
172
200
  options: [
173
201
  {
@@ -192,14 +220,18 @@ var Layout_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
192
220
  type: "row",
193
221
  items: [{
194
222
  name: "width",
195
- text: "宽度",
196
- labelWidth: "68px",
223
+ text: "宽度(px)",
224
+ labelWidth: "90px",
197
225
  type: "data-source-field-select",
198
226
  fieldConfig: { type: "text" }
199
- }, {
227
+ }]
228
+ },
229
+ {
230
+ type: "row",
231
+ items: [{
200
232
  name: "height",
201
- text: "高度",
202
- labelWidth: "68px",
233
+ text: "高度(px)",
234
+ labelWidth: "90px",
203
235
  type: "data-source-field-select",
204
236
  fieldConfig: { type: "text" }
205
237
  }]
@@ -210,7 +242,7 @@ var Layout_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
210
242
  type: "data-source-field-select",
211
243
  text: "overflow",
212
244
  name: "overflow",
213
- labelWidth: "68px",
245
+ labelWidth: "90px",
214
246
  checkStrictly: false,
215
247
  dataSourceFieldType: ["string"],
216
248
  fieldConfig: {
@@ -248,11 +280,15 @@ var Layout_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
248
280
  }
249
281
  ]
250
282
  }
251
- }, {
283
+ }]
284
+ },
285
+ {
286
+ type: "row",
287
+ items: [{
252
288
  type: "data-source-field-select",
253
- text: "透明度",
289
+ text: "透明度(%)",
254
290
  name: "opacity",
255
- labelWidth: "68px",
291
+ labelWidth: "90px",
256
292
  dataSourceFieldType: ["string", "number"],
257
293
  fieldConfig: { type: "text" }
258
294
  }]