@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
@@ -0,0 +1,34 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
+ <path
4
+ d="M12 9C12.5523 9 13 9.44772 13 10V12C13 12.5523 12.5523 13 12 13H4C3.44772 13 3 12.5523 3 12V10C3 9.44772 3.44772 9 4 9H12ZM4.5 10C4.22386 10 4 10.2239 4 10.5V11.5C4 11.7761 4.22386 12 4.5 12H11.5C11.7761 12 12 11.7761 12 11.5V10.5C12 10.2239 11.7761 10 11.5 10H4.5Z"
5
+ />
6
+ <path
7
+ d="M12 3C12.5523 3 13 3.44772 13 4V6C13 6.55228 12.5523 7 12 7H4C3.44772 7 3 6.55228 3 6V4C3 3.44772 3.44772 3 4 3H12ZM4.5 4C4.22386 4 4 4.22386 4 4.5V5.5C4 5.77614 4.22386 6 4.5 6H11.5C11.7761 6 12 5.77614 12 5.5V4.5C12 4.22386 11.7761 4 11.5 4H4.5Z"
8
+ />
9
+ <rect
10
+ x="13.75"
11
+ y="14.25"
12
+ width="0.5"
13
+ height="11.5"
14
+ rx="0.25"
15
+ transform="rotate(90 13.75 14.25)"
16
+ stroke="black"
17
+ stroke-opacity="0.3"
18
+ style="stroke: black; stroke-opacity: 0.3"
19
+ stroke-width="0.5"
20
+ />
21
+ <rect
22
+ x="13.75"
23
+ y="1.25"
24
+ width="0.5"
25
+ height="11.5"
26
+ rx="0.25"
27
+ transform="rotate(90 13.75 1.25)"
28
+ stroke="black"
29
+ stroke-opacity="0.3"
30
+ style="stroke: black; stroke-opacity: 0.3"
31
+ stroke-width="0.5"
32
+ />
33
+ </svg>
34
+ </template>
@@ -0,0 +1,5 @@
1
+ export { default as JustifyContentCenter } from './Center.vue';
2
+ export { default as JustifyContentFlexEnd } from './FlexEnd.vue';
3
+ export { default as JustifyContentFlexStart } from './FlexStart.vue';
4
+ export { default as JustifyContentSpaceAround } from './SpaceAround.vue';
5
+ export { default as JustifyContentSpaceBetween } from './SpaceBetween.vue';
@@ -0,0 +1,5 @@
1
+ export { default as AlignItemsCenter } from './Center.vue';
2
+ export { default as AlignItemsFlexEnd } from './FlexEnd.vue';
3
+ export { default as AlignItemsFlexStart } from './FlexStart.vue';
4
+ export { default as AlignItemsSpaceAround } from './SpaceAround.vue';
5
+ export { default as AlignItemsSpaceBetween } from './SpaceBetween.vue';
@@ -1,8 +1,24 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="currentColor">
3
3
  <path
4
- 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"
5
- fill="#5D5D5D"
6
- ></path>
4
+ d="M0 0.625C0 0.279822 0.248731 0 0.555556 0H9.44444C9.75127 0 10 0.279822 10 0.625C10 0.970178 9.75127 1.25 9.44444 1.25H0.555556C0.248731 1.25 0 0.970178 0 0.625Z"
5
+ fill-opacity="0.3"
6
+ />
7
+ <path
8
+ d="M0 9.375C0 9.02982 0.248731 8.75 0.555556 8.75H9.44444C9.75127 8.75 10 9.02982 10 9.375C10 9.72018 9.75127 10 9.44444 10H0.555556C0.248731 10 0 9.72018 0 9.375Z"
9
+ fill-opacity="0.3"
10
+ />
11
+ <path
12
+ d="M0.555556 4.375C0.248731 4.375 0 4.65482 0 5C0 5.34518 0.248731 5.625 0.555556 5.625H2.87307L3.42868 4.99994L2.87318 4.375H0.555556Z"
13
+ fill-opacity="0.3"
14
+ />
15
+ <path
16
+ d="M9.44444 5.625H7.12699L6.57138 4.99994L7.12688 4.375H9.44444C9.75127 4.375 10 4.65482 10 5C10 5.34518 9.75127 5.625 9.44444 5.625Z"
17
+ fill-opacity="0.3"
18
+ />
19
+ <path
20
+ transform="translate(0 2.6072)"
21
+ d="M3.30542 0.183058C3.52237 -0.0610194 3.87413 -0.0610194 4.09109 0.183058C4.30805 0.427136 4.30805 0.822864 4.09109 1.06694L2.91256 2.39279L4.0911 3.71865C4.30806 3.96273 4.30806 4.35846 4.0911 4.60253C3.87414 4.84661 3.52239 4.84661 3.30543 4.60253L2.12688 3.27667L0.948393 4.60248C0.731435 4.84655 0.379676 4.84655 0.162719 4.60248C-0.0542395 4.3584 -0.0542395 3.96267 0.162719 3.71859L1.34121 2.39279L0.162731 1.067C-0.0542269 0.822922 -0.0542268 0.427194 0.162731 0.183116C0.379689 -0.0609612 0.731447 -0.0609612 0.948405 0.183116L2.12688 1.50891L3.30542 0.183058Z"
22
+ />
7
23
  </svg>
8
24
  </template>
@@ -1,31 +1,13 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
3
- <path
4
- 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"
5
- ></path>
6
- <path
7
- 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"
8
- ></path>
9
- <path
10
- 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"
11
- ></path>
12
- <path
13
- 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"
14
- ></path>
15
- <path
16
- 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"
17
- ></path>
18
- <path
19
- 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"
20
- ></path>
21
- <path
22
- 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"
23
- ></path>
24
- <path
25
- 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"
26
- ></path>
27
- <path
28
- 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"
29
- ></path>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
+ <rect x="13" y="3" width="2" height="2" rx="0.5" transform="rotate(90 13 3)" fill-opacity="0.3" />
4
+ <rect x="13" y="7" width="2" height="2" rx="0.5" transform="rotate(90 13 7)" fill-opacity="0.3" />
5
+ <rect x="13" y="11" width="2" height="2" rx="0.5" transform="rotate(90 13 11)" fill-opacity="0.3" />
6
+ <rect x="9" y="3" width="2" height="2" rx="0.5" transform="rotate(90 9 3)" />
7
+ <rect x="9" y="7" width="2" height="2" rx="0.5" transform="rotate(90 9 7)" />
8
+ <rect x="9" y="11" width="2" height="2" rx="0.5" transform="rotate(90 9 11)" fill-opacity="0.3" />
9
+ <rect x="5" y="3" width="2" height="2" rx="0.5" transform="rotate(90 5 3)" />
10
+ <rect x="5" y="7" width="2" height="2" rx="0.5" transform="rotate(90 5 7)" />
11
+ <rect x="5" y="11" width="2" height="2" rx="0.5" transform="rotate(90 5 11)" fill-opacity="0.3" />
30
12
  </svg>
31
13
  </template>
@@ -1,8 +1,7 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
3
- <path
4
- 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"
5
- fill="#333333"
6
- ></path>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
+ <rect x="3" y="3" width="2" height="10" rx="1" />
4
+ <rect x="7" y="3" width="2" height="10" rx="1" />
5
+ <rect x="11" y="3" width="2" height="10" rx="1" fill-opacity="0.3" />
7
6
  </svg>
8
7
  </template>
@@ -1,8 +1,7 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
3
- <path
4
- 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"
5
- fill="#333333"
6
- ></path>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
+ <rect x="13" y="3" width="2" height="10" rx="1" transform="rotate(90 13 3)" />
4
+ <rect x="13" y="7" width="2" height="10" rx="1" transform="rotate(90 13 7)" />
5
+ <rect x="13" y="11" width="2" height="10" rx="1" transform="rotate(90 13 11)" fill-opacity="0.3" />
7
6
  </svg>
8
7
  </template>
@@ -1,7 +1,8 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
3
  <path
4
- d="M896 320H128V0h768v320z m0 320H128v-256h768v256z m-128 192l-256 192-256-192 192-0.032V704h128v128h192z"
5
- ></path>
4
+ 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"
5
+ />
6
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11 12L8 15L5 12L11 12Z" fill-opacity="0.3" />
6
7
  </svg>
7
8
  </template>
@@ -1,7 +1,8 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
3
  <path
4
- d="M896 704H128v320h768V704z m0-320H128v256h768v-256z m-128-192l-256-192-256 192 192 0.032V320h128V192h192z"
5
- ></path>
4
+ 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"
5
+ />
6
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5 4L8 1L11 4L5 4Z" fill-opacity="0.3" />
6
7
  </svg>
7
8
  </template>
@@ -1,7 +1,8 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
3
  <path
4
- d="M320 128v768H0V128h320z m320 0v768h-256V128h256z m192 128l192 256-192 256-0.032-192H704v-128h128V256z"
5
- ></path>
4
+ 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"
5
+ />
6
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12 5L15 8L12 11L12 5Z" fill-opacity="0.3" />
6
7
  </svg>
7
8
  </template>
@@ -1,7 +1,8 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
3
  <path
4
- d="M704 128v768h320V128H704zM384 128v768h256V128h-256zM192 256l-192 256 192 256 0.032-192H320v-128H192V256z"
5
- ></path>
4
+ 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"
5
+ />
6
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4 11L1 8L4 5L4 11Z" fill-opacity="0.3" />
6
7
  </svg>
7
8
  </template>
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
3
- <path d="M480 1024V0h64v1024h-64z m128-64V64h320v896H608zM96 960V64h320v896H96z"></path>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
+ <path
4
+ 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"
5
+ />
6
+ <rect x="7.5" y="2" width="1" height="12" rx="0.5" fill-opacity="0.3" style="fill: black; fill-opacity: 0.3" />
4
7
  </svg>
5
8
  </template>
@@ -1,5 +1,18 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
3
- <path d="M416 160H96v704h320V160z m384 0H480v704h320V160z m128-160h-64v1024h64V0z"></path>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
+ <path
4
+ 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"
5
+ />
6
+ <rect
7
+ x="14.25"
8
+ y="2.25"
9
+ width="0.5"
10
+ height="11.5"
11
+ rx="0.25"
12
+ stroke="black"
13
+ stroke-opacity="0.3"
14
+ style="stroke: black; stroke-opacity: 0.3"
15
+ stroke-width="0.5"
16
+ />
4
17
  </svg>
5
18
  </template>
@@ -1,5 +1,18 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
3
- <path d="M608 160h320v704H608V160zM224 160h320v704H224V160zM96 0h64v1024H96V0z"></path>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
+ <path
4
+ 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"
5
+ />
6
+ <rect
7
+ x="1.25"
8
+ y="2.25"
9
+ width="0.5"
10
+ height="11.5"
11
+ rx="0.25"
12
+ stroke="white"
13
+ stroke-opacity="0.3"
14
+ style="stroke: white; stroke-opacity: 0.3"
15
+ stroke-width="0.5"
16
+ />
4
17
  </svg>
5
18
  </template>
@@ -1,7 +1,32 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
3
  <path
4
- d="M320 864H192v160H128v-160H0V160h128V0h64v160h128v704z m704 0h-128v160h-64v-160h-128V160h128V0h64v160h128v704z"
5
- ></path>
4
+ 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"
5
+ />
6
+ <path
7
+ 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"
8
+ />
9
+ <rect
10
+ x="11.25"
11
+ y="2.25"
12
+ width="0.5"
13
+ height="11.5"
14
+ rx="0.25"
15
+ stroke="black"
16
+ stroke-opacity="0.3"
17
+ style="stroke: black; stroke-opacity: 0.3"
18
+ stroke-width="0.5"
19
+ />
20
+ <rect
21
+ x="4.25"
22
+ y="2.25"
23
+ width="0.5"
24
+ height="11.5"
25
+ rx="0.25"
26
+ stroke="black"
27
+ stroke-opacity="0.3"
28
+ style="stroke: black; stroke-opacity: 0.3"
29
+ stroke-width="0.5"
30
+ />
6
31
  </svg>
7
32
  </template>
@@ -1,5 +1,31 @@
1
1
  <template>
2
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
3
- <path d="M64 1024H0V0h64v1024z m384-160H128V160h320v704z m448 0H576V160h320v704z m128 160h-64V0h64v1024z"></path>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
3
+ <path
4
+ 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"
5
+ />
6
+ <path
7
+ 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"
8
+ />
9
+ <rect
10
+ x="14.25"
11
+ y="2.25"
12
+ width="0.5"
13
+ height="11.5"
14
+ rx="0.25"
15
+ stroke="black"
16
+ stroke-opacity="0.3"
17
+ stroke-width="0.5"
18
+ />
19
+ <rect
20
+ x="1.25"
21
+ y="2.25"
22
+ width="0.5"
23
+ height="11.5"
24
+ rx="0.25"
25
+ stroke="black"
26
+ stroke-opacity="0.3"
27
+ style="stroke: black; stroke-opacity: 0.3"
28
+ stroke-width="0.5"
29
+ />
4
30
  </svg>
5
31
  </template>
@@ -26,6 +26,7 @@ defineProps<{
26
26
  isCompare?: boolean;
27
27
  disabled?: boolean;
28
28
  size?: 'large' | 'default' | 'small';
29
+ theme?: string;
29
30
  }>();
30
31
 
31
32
  const emit = defineEmits<{
@@ -57,7 +58,7 @@ const config = defineFormItem({
57
58
  name: 'backgroundSize',
58
59
  text: '背景尺寸',
59
60
  type: 'radioGroup',
60
- childType: 'button',
61
+ childType: 'default',
61
62
  labelWidth: '68px',
62
63
  options: [
63
64
  { value: 'auto', text: '默认', tooltip: '默认 auto' },
@@ -72,10 +73,15 @@ const config = defineFormItem({
72
73
  childType: 'button',
73
74
  labelWidth: '68px',
74
75
  options: [
75
- { value: 'repeat', icon: markRaw(BackgroundRepeat), tooltip: '垂直和水平方向重复 repeat' },
76
- { value: 'repeat-x', icon: markRaw(BackgroundRepeatX), tooltip: '水平方向重复 repeat-x' },
77
- { value: 'repeat-y', icon: markRaw(BackgroundRepeatY), tooltip: '垂直方向重复 repeat-y' },
78
- { value: 'no-repeat', icon: markRaw(BackgroundNoRepeat), tooltip: '不重复 no-repeat' },
76
+ {
77
+ value: 'repeat',
78
+ icon: markRaw(BackgroundRepeat),
79
+ tooltip: '垂直和水平方向重复 repeat',
80
+ text: '垂直与水平重复',
81
+ },
82
+ { value: 'repeat-x', icon: markRaw(BackgroundRepeatX), tooltip: '水平方向重复 repeat-x', text: '水平方向重复' },
83
+ { value: 'repeat-y', icon: markRaw(BackgroundRepeatY), tooltip: '垂直方向重复 repeat-y', text: '垂直方向重复' },
84
+ { value: 'no-repeat', icon: markRaw(BackgroundNoRepeat), tooltip: '不重复 no-repeat', text: '不重复' },
79
85
  ],
80
86
  },
81
87
  {
@@ -92,9 +92,9 @@ const config = defineFormItem({
92
92
  childType: 'button',
93
93
  labelWidth: '68px',
94
94
  options: [
95
- { value: 'left', icon: markRaw(AlignLeft), tooltip: '左对齐 row' },
96
- { value: 'center', icon: markRaw(AlignCenter), tooltip: '居中对齐 center' },
97
- { value: 'right', icon: markRaw(AlignRight), tooltip: '右对齐 right' },
95
+ { value: 'left', icon: markRaw(AlignLeft), tooltip: '左对齐 row', text: '左对齐' },
96
+ { value: 'center', icon: markRaw(AlignCenter), tooltip: '居中对齐 center', text: '居中对齐' },
97
+ { value: 'right', icon: markRaw(AlignRight), tooltip: '右对齐 right', text: '右对齐' },
98
98
  ],
99
99
  },
100
100
  ],
@@ -23,11 +23,19 @@
23
23
  <script lang="ts" setup>
24
24
  import { markRaw } from 'vue';
25
25
 
26
+ import { useTheme } from '@tmagic/design';
26
27
  import type { ChildConfig, ContainerChangeEventData } from '@tmagic/form';
27
28
  import { defineFormItem, MContainer } from '@tmagic/form';
28
29
  import type { StyleSchema } from '@tmagic/schema';
29
30
 
30
31
  import Box from '../components/Box.vue';
32
+ import {
33
+ AlignItemsCenter,
34
+ AlignItemsFlexEnd,
35
+ AlignItemsFlexStart,
36
+ AlignItemsSpaceAround,
37
+ AlignItemsSpaceBetween,
38
+ } from '../icons/align-items';
31
39
  import { DisplayBlock, DisplayFlex, DisplayInline, DisplayInlineBlock, DisplayNone } from '../icons/display';
32
40
  import {
33
41
  FlexDirectionColumn,
@@ -43,12 +51,13 @@ import {
43
51
  JustifyContentSpaceBetween,
44
52
  } from '../icons/justify-content';
45
53
 
46
- defineProps<{
54
+ const props = defineProps<{
47
55
  values: Partial<StyleSchema>;
48
56
  lastValues?: Partial<StyleSchema>;
49
57
  isCompare?: boolean;
50
58
  disabled?: boolean;
51
59
  size?: 'large' | 'default' | 'small';
60
+ theme?: string;
52
61
  }>();
53
62
 
54
63
  const emit = defineEmits<{
@@ -56,20 +65,47 @@ const emit = defineEmits<{
56
65
  addDiffCount: [];
57
66
  }>();
58
67
 
68
+ const displayTheme = useTheme(props);
69
+
59
70
  const config = defineFormItem({
60
71
  items: [
61
72
  {
62
73
  name: 'display',
63
74
  text: '模式',
64
75
  type: 'radioGroup',
65
- childType: 'button',
76
+ childType: displayTheme.value !== 'magic-admin' ? 'button' : 'default',
66
77
  labelWidth: '68px',
67
78
  options: [
68
- { value: 'inline', icon: markRaw(DisplayInline), tooltip: '内联布局 inline' },
69
- { value: 'flex', icon: markRaw(DisplayFlex), tooltip: '弹性布局 flex' },
70
- { value: 'block', icon: markRaw(DisplayBlock), tooltip: '块级布局 block' },
71
- { value: 'inline-block', icon: markRaw(DisplayInlineBlock), tooltip: '内联块布局 inline-block' },
72
- { value: 'none', icon: markRaw(DisplayNone), tooltip: '隐藏 none' },
79
+ {
80
+ value: 'inline',
81
+ icon: displayTheme.value !== 'magic-admin' ? markRaw(DisplayInline) : undefined,
82
+ tooltip: '内联布局 inline',
83
+ text: '内联布局\n inline',
84
+ },
85
+ {
86
+ value: 'flex',
87
+ icon: displayTheme.value !== 'magic-admin' ? markRaw(DisplayFlex) : undefined,
88
+ tooltip: '弹性布局 flex',
89
+ text: '弹性布局\n flex',
90
+ },
91
+ {
92
+ value: 'block',
93
+ icon: displayTheme.value !== 'magic-admin' ? markRaw(DisplayBlock) : undefined,
94
+ tooltip: '块级布局 block',
95
+ text: '块级布局\n block',
96
+ },
97
+ {
98
+ value: 'inline-block',
99
+ icon: displayTheme.value !== 'magic-admin' ? markRaw(DisplayInlineBlock) : undefined,
100
+ tooltip: '内联块布局 inline-block',
101
+ text: '内联块布局\n inline-block',
102
+ },
103
+ {
104
+ value: 'none',
105
+ icon: displayTheme.value !== 'magic-admin' ? markRaw(DisplayNone) : undefined,
106
+ tooltip: '隐藏 none',
107
+ text: '隐藏\n none',
108
+ },
73
109
  ],
74
110
  },
75
111
  {
@@ -79,13 +115,24 @@ const config = defineFormItem({
79
115
  childType: 'button',
80
116
  labelWidth: '68px',
81
117
  options: [
82
- { value: 'row', icon: markRaw(FlexDirectionRow), tooltip: '水平方向 起点在左侧 row' },
83
- { value: 'row-reverse', icon: markRaw(FlexDirectionRowReverse), tooltip: '水平方向 起点在右侧 row-reverse' },
84
- { value: 'column', icon: markRaw(FlexDirectionColumn), tooltip: '垂直方向 起点在上沿 column' },
118
+ { value: 'row', icon: markRaw(FlexDirectionRow), tooltip: '水平方向 起点在左侧 row', text: '左起点' },
119
+ {
120
+ value: 'row-reverse',
121
+ icon: markRaw(FlexDirectionRowReverse),
122
+ tooltip: '水平方向 起点在右侧 row-reverse',
123
+ text: '右起点',
124
+ },
125
+ {
126
+ value: 'column',
127
+ icon: markRaw(FlexDirectionColumn),
128
+ tooltip: '垂直方向 起点在上沿 column',
129
+ text: '顶部起点',
130
+ },
85
131
  {
86
132
  value: 'column-reverse',
87
133
  icon: markRaw(FlexDirectionColumnReverse),
88
134
  tooltip: '垂直方向 起点在下沿 column-reverse',
135
+ text: '底部起点',
89
136
  },
90
137
  ],
91
138
  display: (_mForm, { model }: { model: Record<any, any> }) => model.display === 'flex',
@@ -97,11 +144,21 @@ const config = defineFormItem({
97
144
  childType: 'button',
98
145
  labelWidth: '68px',
99
146
  options: [
100
- { value: 'flex-start', icon: markRaw(JustifyContentFlexStart), tooltip: '左对齐 flex-start' },
101
- { value: 'flex-end', icon: markRaw(JustifyContentFlexEnd), tooltip: '右对齐 flex-end' },
102
- { value: 'center', icon: markRaw(JustifyContentCenter), tooltip: '居中 center' },
103
- { value: 'space-between', icon: markRaw(JustifyContentSpaceBetween), tooltip: '两端对齐 space-between' },
104
- { value: 'space-around', icon: markRaw(JustifyContentSpaceAround), tooltip: '横向平分 space-around' },
147
+ { value: 'flex-start', icon: markRaw(JustifyContentFlexStart), tooltip: '左对齐 flex-start', text: '左对齐' },
148
+ { value: 'flex-end', icon: markRaw(JustifyContentFlexEnd), tooltip: '右对齐 flex-end', text: '右对齐' },
149
+ { value: 'center', icon: markRaw(JustifyContentCenter), tooltip: '居中 center', text: '居中' },
150
+ {
151
+ value: 'space-between',
152
+ icon: markRaw(JustifyContentSpaceBetween),
153
+ tooltip: '两端对齐 space-between',
154
+ text: '左右对齐',
155
+ },
156
+ {
157
+ value: 'space-around',
158
+ icon: markRaw(JustifyContentSpaceAround),
159
+ tooltip: '横向平分 space-around',
160
+ text: '横向等分',
161
+ },
105
162
  ],
106
163
  display: (_mForm, { model }: { model: Record<any, any> }) => model.display === 'flex',
107
164
  },
@@ -112,11 +169,21 @@ const config = defineFormItem({
112
169
  childType: 'button',
113
170
  labelWidth: '68px',
114
171
  options: [
115
- { value: 'flex-start', icon: markRaw(JustifyContentFlexStart), tooltip: '左对齐 flex-start' },
116
- { value: 'flex-end', icon: markRaw(JustifyContentFlexEnd), tooltip: '右对齐 flex-end' },
117
- { value: 'center', icon: markRaw(JustifyContentCenter), tooltip: '居中 center' },
118
- { value: 'space-between', icon: markRaw(JustifyContentSpaceBetween), tooltip: '两端对齐 space-between' },
119
- { value: 'space-around', icon: markRaw(JustifyContentSpaceAround), tooltip: '横向平分 space-around' },
172
+ { value: 'flex-start', icon: markRaw(AlignItemsFlexStart), tooltip: '左对齐 flex-start', text: '上对齐' },
173
+ { value: 'flex-end', icon: markRaw(AlignItemsFlexEnd), tooltip: '右对齐 flex-end', text: '下对齐' },
174
+ { value: 'center', icon: markRaw(AlignItemsCenter), tooltip: '居中 center', text: '居中' },
175
+ {
176
+ value: 'space-between',
177
+ icon: markRaw(AlignItemsSpaceBetween),
178
+ tooltip: '两端对齐 space-between',
179
+ text: '上下对齐',
180
+ },
181
+ {
182
+ value: 'space-around',
183
+ icon: markRaw(AlignItemsSpaceAround),
184
+ tooltip: '横向平分 space-around',
185
+ text: '纵向等分',
186
+ },
120
187
  ],
121
188
  display: (_mForm, { model }: { model: Record<any, any> }) => model.display === 'flex',
122
189
  },
@@ -124,7 +191,7 @@ const config = defineFormItem({
124
191
  name: 'flexWrap',
125
192
  text: '换行',
126
193
  type: 'radioGroup',
127
- childType: 'button',
194
+ childType: displayTheme.value !== 'magic-admin' ? 'button' : 'default',
128
195
  labelWidth: '68px',
129
196
  options: [
130
197
  { value: 'nowrap', text: '不换行', tooltip: '不换行 nowrap' },
@@ -138,17 +205,22 @@ const config = defineFormItem({
138
205
  items: [
139
206
  {
140
207
  name: 'width',
141
- text: '宽度',
142
- labelWidth: '68px',
208
+ text: '宽度(px)',
209
+ labelWidth: '90px',
143
210
  type: 'data-source-field-select',
144
211
  fieldConfig: {
145
212
  type: 'text',
146
213
  },
147
214
  },
215
+ ],
216
+ },
217
+ {
218
+ type: 'row',
219
+ items: [
148
220
  {
149
221
  name: 'height',
150
- text: '高度',
151
- labelWidth: '68px',
222
+ text: '高度(px)',
223
+ labelWidth: '90px',
152
224
  type: 'data-source-field-select',
153
225
  fieldConfig: {
154
226
  type: 'text',
@@ -163,7 +235,7 @@ const config = defineFormItem({
163
235
  type: 'data-source-field-select',
164
236
  text: 'overflow',
165
237
  name: 'overflow',
166
- labelWidth: '68px',
238
+ labelWidth: '90px',
167
239
  checkStrictly: false,
168
240
  dataSourceFieldType: ['string'],
169
241
  fieldConfig: {
@@ -181,11 +253,16 @@ const config = defineFormItem({
181
253
  ],
182
254
  },
183
255
  },
256
+ ],
257
+ },
258
+ {
259
+ type: 'row',
260
+ items: [
184
261
  {
185
262
  type: 'data-source-field-select',
186
- text: '透明度',
263
+ text: '透明度(%)',
187
264
  name: 'opacity',
188
- labelWidth: '68px',
265
+ labelWidth: '90px',
189
266
  dataSourceFieldType: ['string', 'number'],
190
267
  fieldConfig: {
191
268
  type: 'text',
@@ -135,7 +135,7 @@ const unhighlight = () => {
135
135
  margin-right: 3px;
136
136
  }
137
137
  span {
138
- color: #2882e0;
138
+ color: var(--el-color-primary, #2882e0);
139
139
  }
140
140
  }
141
141
  </style>