@tmagic/editor 1.8.0-beta.13 → 1.8.0-beta.14
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.
- package/dist/es/Editor.vue_vue_type_script_setup_true_lang.js +15 -3
- package/dist/es/components/ContentMenu.vue_vue_type_script_setup_true_lang.js +11 -4
- package/dist/es/components/FloatingBox.vue_vue_type_script_setup_true_lang.js +7 -2
- package/dist/es/fields/Code.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/CodeLink.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/CodeSelect.vue_vue_type_script_setup_true_lang.js +80 -55
- package/dist/es/fields/CodeSelectCol.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/es/fields/CondOpSelect.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DataSourceFieldSelect/Index.vue_vue_type_script_setup_true_lang.js +10 -7
- package/dist/es/fields/DataSourceFields.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DataSourceInput.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DataSourceMethodSelect.vue_vue_type_script_setup_true_name_true_lang.js +4 -1
- package/dist/es/fields/DataSourceMethods.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DataSourceMocks.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DataSourceSelect.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DisplayConds.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/es/fields/EventSelect.vue_vue_type_script_setup_true_lang.js +99 -64
- package/dist/es/fields/KeyValue.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/PageFragmentSelect.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/StyleSetter/Index.vue_vue_type_script_setup_true_lang.js +5 -4
- package/dist/es/fields/StyleSetter/components/BackgroundPosition.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/StyleSetter/components/Border.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/StyleSetter/icons/align-items/Center.js +31 -0
- package/dist/es/fields/StyleSetter/icons/align-items/FlexEnd.js +31 -0
- package/dist/es/fields/StyleSetter/icons/align-items/FlexStart.js +31 -0
- package/dist/es/fields/StyleSetter/icons/align-items/SpaceAround.js +50 -0
- package/dist/es/fields/StyleSetter/icons/align-items/SpaceBetween.js +50 -0
- package/dist/es/fields/StyleSetter/icons/background-repeat/NoRepeat.js +6 -6
- package/dist/es/fields/StyleSetter/icons/background-repeat/Repeat.js +5 -2
- package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatX.js +28 -5
- package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatY.js +31 -5
- package/dist/es/fields/StyleSetter/icons/flex-direction/Column.js +10 -2
- package/dist/es/fields/StyleSetter/icons/flex-direction/ColumnReverse.js +10 -2
- package/dist/es/fields/StyleSetter/icons/flex-direction/Row.js +10 -2
- package/dist/es/fields/StyleSetter/icons/flex-direction/RowReverse.js +10 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/Center.js +16 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/FlexEnd.js +18 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/FlexStart.js +18 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/SpaceAround.js +36 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/SpaceBetween.js +32 -2
- package/dist/es/fields/StyleSetter/pro/Background.vue_vue_type_script_setup_true_lang.js +7 -6
- package/dist/es/fields/StyleSetter/pro/Font.vue_vue_type_script_setup_true_lang.js +6 -3
- package/dist/es/fields/StyleSetter/pro/Layout.vue_vue_type_script_setup_true_lang.js +47 -25
- package/dist/es/fields/UISelect.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/icons/DatasourceIcon.js +17 -0
- package/dist/es/index.js +2 -2
- package/dist/es/layouts/Framework.vue_vue_type_script_setup_true_lang.js +14 -10
- package/dist/es/layouts/props-panel/PropsPanel.vue_vue_type_script_setup_true_lang.js +10 -1
- package/dist/es/layouts/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/es/plugin.js +2 -1
- package/dist/es/services/editor.js +54 -13
- package/dist/es/services/ui.js +5 -3
- package/dist/es/style.css +303 -40
- package/dist/es/utils/config.js +4 -1
- package/dist/es/utils/const.js +2 -2
- package/dist/es/utils/props.js +43 -29
- package/dist/style.css +303 -40
- package/dist/themes/magic-admin.css +3000 -0
- package/dist/tmagic-editor.umd.cjs +1066 -449
- package/package.json +7 -7
- package/src/Editor.vue +22 -1
- package/src/components/ContentMenu.vue +10 -2
- package/src/components/FloatingBox.vue +8 -2
- package/src/editorProps.ts +4 -0
- package/src/fields/CodeSelect.vue +54 -43
- package/src/fields/CodeSelectCol.vue +1 -0
- package/src/fields/DataSourceFieldSelect/Index.vue +14 -5
- package/src/fields/DisplayConds.vue +4 -1
- package/src/fields/EventSelect.vue +56 -32
- package/src/fields/StyleSetter/Index.vue +1 -4
- package/src/fields/StyleSetter/components/Border.vue +1 -1
- package/src/fields/StyleSetter/icons/align-items/Center.vue +19 -0
- package/src/fields/StyleSetter/icons/align-items/FlexEnd.vue +19 -0
- package/src/fields/StyleSetter/icons/align-items/FlexStart.vue +19 -0
- package/src/fields/StyleSetter/icons/align-items/SpaceAround.vue +34 -0
- package/src/fields/StyleSetter/icons/align-items/SpaceBetween.vue +34 -0
- package/src/fields/StyleSetter/icons/align-items/index.ts +5 -0
- package/src/fields/StyleSetter/icons/background-repeat/NoRepeat.vue +20 -4
- package/src/fields/StyleSetter/icons/background-repeat/Repeat.vue +10 -28
- package/src/fields/StyleSetter/icons/background-repeat/RepeatX.vue +4 -5
- package/src/fields/StyleSetter/icons/background-repeat/RepeatY.vue +4 -5
- package/src/fields/StyleSetter/icons/flex-direction/Column.vue +4 -3
- package/src/fields/StyleSetter/icons/flex-direction/ColumnReverse.vue +4 -3
- package/src/fields/StyleSetter/icons/flex-direction/Row.vue +4 -3
- package/src/fields/StyleSetter/icons/flex-direction/RowReverse.vue +4 -3
- package/src/fields/StyleSetter/icons/justify-content/Center.vue +5 -2
- package/src/fields/StyleSetter/icons/justify-content/FlexEnd.vue +15 -2
- package/src/fields/StyleSetter/icons/justify-content/FlexStart.vue +15 -2
- package/src/fields/StyleSetter/icons/justify-content/SpaceAround.vue +28 -3
- package/src/fields/StyleSetter/icons/justify-content/SpaceBetween.vue +28 -2
- package/src/fields/StyleSetter/pro/Background.vue +7 -2
- package/src/fields/StyleSetter/pro/Font.vue +3 -3
- package/src/fields/StyleSetter/pro/Layout.vue +98 -28
- package/src/icons/DatasourceIcon.vue +7 -0
- package/src/index.ts +3 -0
- package/src/layouts/Framework.vue +7 -1
- package/src/layouts/props-panel/PropsPanel.vue +19 -1
- package/src/layouts/sidebar/Sidebar.vue +3 -3
- package/src/plugin.ts +3 -2
- package/src/services/editor.ts +54 -11
- package/src/services/ui.ts +20 -5
- package/src/theme/code-block.scss +37 -0
- package/src/theme/common/var.scss +1 -1
- package/src/theme/component-list-panel.scss +2 -2
- package/src/theme/data-source-field.scss +4 -0
- package/src/theme/display-conds.scss +11 -0
- package/src/theme/event.scss +58 -4
- package/src/theme/framework.scss +4 -1
- package/src/theme/history-list-panel.scss +9 -9
- package/src/theme/nav-menu.scss +5 -1
- package/src/theme/props-panel.scss +2 -1
- package/src/theme/style-setter/border.scss +14 -5
- package/src/theme/theme.scss +1 -0
- package/src/theme/themes/magic-admin/index.scss +214 -0
- package/src/theme/ui-select.scss +1 -1
- package/src/type.ts +27 -6
- package/src/utils/config.ts +9 -1
- package/src/utils/const.ts +3 -2
- package/src/utils/props.ts +22 -9
- package/types/index.d.ts +88 -35
|
@@ -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 8C12.5523 8 13 8.44772 13 9V12C13 12.5523 12.5523 13 12 13H4C3.44772 13 3 12.5523 3 12V9C3 8.44772 3.44772 8 4 8H12ZM4.5 9C4.22386 9 4 9.22386 4 9.5V11.5C4 11.7761 4.22386 12 4.5 12H11.5C11.7761 12 12 11.7761 12 11.5V9.5C12 9.22386 11.7761 9 11.5 9H4.5Z"
|
|
5
|
+
/>
|
|
6
|
+
<path
|
|
7
|
+
d="M12 2C12.5523 2 13 2.44772 13 3V6C13 6.55228 12.5523 7 12 7H4C3.44772 7 3 6.55228 3 6V3C3 2.44772 3.44772 2 4 2H12ZM4.5 3C4.22386 3 4 3.22386 4 3.5V5.5C4 5.77614 4.22386 6 4.5 6H11.5C11.7761 6 12 5.77614 12 5.5V3.5C12 3.22386 11.7761 3 11.5 3H4.5Z"
|
|
8
|
+
/>
|
|
9
|
+
<rect
|
|
10
|
+
x="13.75"
|
|
11
|
+
y="10.25"
|
|
12
|
+
width="0.5"
|
|
13
|
+
height="11.5"
|
|
14
|
+
rx="0.25"
|
|
15
|
+
transform="rotate(90 13.75 10.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="4.25"
|
|
24
|
+
width="0.5"
|
|
25
|
+
height="11.5"
|
|
26
|
+
rx="0.25"
|
|
27
|
+
transform="rotate(90 13.75 4.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,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 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
|
|
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="
|
|
5
|
-
fill="
|
|
6
|
-
|
|
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
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
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="
|
|
5
|
-
|
|
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
|
|
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="
|
|
5
|
-
|
|
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
|
|
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="
|
|
5
|
-
|
|
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
|
|
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="
|
|
5
|
-
|
|
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
|
|
3
|
-
<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
|
|
3
|
-
<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
|
|
3
|
-
<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
|
|
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="
|
|
5
|
-
|
|
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
|
|
3
|
-
<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>
|
|
@@ -29,6 +29,7 @@ defineProps<{
|
|
|
29
29
|
isCompare?: boolean;
|
|
30
30
|
disabled?: boolean;
|
|
31
31
|
size?: 'large' | 'default' | 'small';
|
|
32
|
+
theme?: string;
|
|
32
33
|
prop?: string;
|
|
33
34
|
}>();
|
|
34
35
|
|
|
@@ -112,10 +113,14 @@ const formConfig = defineFormConfig([
|
|
|
112
113
|
childType: 'button',
|
|
113
114
|
labelWidth: '68px',
|
|
114
115
|
options: [
|
|
115
|
-
{ value: 'repeat', icon: markRaw(
|
|
116
|
+
{ value: 'no-repeat', icon: markRaw(BackgroundNoRepeat), tooltip: '不重复 no-repeat' },
|
|
116
117
|
{ value: 'repeat-x', icon: markRaw(BackgroundRepeatX), tooltip: '水平方向重复 repeat-x' },
|
|
117
118
|
{ value: 'repeat-y', icon: markRaw(BackgroundRepeatY), tooltip: '垂直方向重复 repeat-y' },
|
|
118
|
-
{
|
|
119
|
+
{
|
|
120
|
+
value: 'repeat',
|
|
121
|
+
icon: markRaw(BackgroundRepeat),
|
|
122
|
+
tooltip: '垂直和水平方向重复 repeat',
|
|
123
|
+
},
|
|
119
124
|
],
|
|
120
125
|
},
|
|
121
126
|
{
|
|
@@ -95,9 +95,9 @@ const formConfig = defineFormConfig([
|
|
|
95
95
|
childType: 'button',
|
|
96
96
|
labelWidth: '68px',
|
|
97
97
|
options: [
|
|
98
|
-
{ value: 'left', icon: markRaw(AlignLeft), tooltip: '左对齐 row' },
|
|
99
|
-
{ value: 'center', icon: markRaw(AlignCenter), tooltip: '居中对齐 center' },
|
|
100
|
-
{ value: 'right', icon: markRaw(AlignRight), tooltip: '右对齐 right' },
|
|
98
|
+
{ value: 'left', icon: markRaw(AlignLeft), tooltip: '左对齐 row', text: '左对齐' },
|
|
99
|
+
{ value: 'center', icon: markRaw(AlignCenter), tooltip: '居中对齐 center', text: '居中对齐' },
|
|
100
|
+
{ value: 'right', icon: markRaw(AlignRight), tooltip: '右对齐 right', text: '右对齐' },
|
|
101
101
|
],
|
|
102
102
|
},
|
|
103
103
|
]);
|
|
@@ -26,11 +26,19 @@
|
|
|
26
26
|
<script lang="ts" setup>
|
|
27
27
|
import { markRaw } from 'vue';
|
|
28
28
|
|
|
29
|
+
import { useTheme } from '@tmagic/design';
|
|
29
30
|
import type { ContainerChangeEventData } from '@tmagic/form';
|
|
30
31
|
import { defineFormConfig, MContainer } from '@tmagic/form';
|
|
31
32
|
import type { StyleSchema } from '@tmagic/schema';
|
|
32
33
|
|
|
33
34
|
import Box from '../components/Box.vue';
|
|
35
|
+
import {
|
|
36
|
+
AlignItemsCenter,
|
|
37
|
+
AlignItemsFlexEnd,
|
|
38
|
+
AlignItemsFlexStart,
|
|
39
|
+
AlignItemsSpaceAround,
|
|
40
|
+
AlignItemsSpaceBetween,
|
|
41
|
+
} from '../icons/align-items';
|
|
34
42
|
import { DisplayBlock, DisplayFlex, DisplayInline, DisplayInlineBlock, DisplayNone } from '../icons/display';
|
|
35
43
|
import {
|
|
36
44
|
FlexDirectionColumn,
|
|
@@ -46,12 +54,13 @@ import {
|
|
|
46
54
|
JustifyContentSpaceBetween,
|
|
47
55
|
} from '../icons/justify-content';
|
|
48
56
|
|
|
49
|
-
defineProps<{
|
|
57
|
+
const props = defineProps<{
|
|
50
58
|
values: Partial<StyleSchema>;
|
|
51
59
|
lastValues?: Partial<StyleSchema>;
|
|
52
60
|
isCompare?: boolean;
|
|
53
61
|
disabled?: boolean;
|
|
54
62
|
size?: 'large' | 'default' | 'small';
|
|
63
|
+
theme?: string;
|
|
55
64
|
prop?: string;
|
|
56
65
|
}>();
|
|
57
66
|
|
|
@@ -60,19 +69,42 @@ const emit = defineEmits<{
|
|
|
60
69
|
addDiffCount: [];
|
|
61
70
|
}>();
|
|
62
71
|
|
|
72
|
+
const displayTheme = useTheme(props);
|
|
73
|
+
|
|
63
74
|
const formConfig = defineFormConfig([
|
|
64
75
|
{
|
|
65
76
|
name: 'display',
|
|
66
77
|
text: '模式',
|
|
67
78
|
type: 'radioGroup',
|
|
68
79
|
childType: 'button',
|
|
69
|
-
labelWidth: '
|
|
80
|
+
labelWidth: '90px',
|
|
81
|
+
iconSize: '24px',
|
|
70
82
|
options: [
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
{
|
|
84
|
+
value: 'inline',
|
|
85
|
+
icon: markRaw(DisplayInline),
|
|
86
|
+
tooltip: '内联布局 inline',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
value: 'flex',
|
|
90
|
+
icon: markRaw(DisplayFlex),
|
|
91
|
+
tooltip: '弹性布局 flex',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
value: 'block',
|
|
95
|
+
icon: markRaw(DisplayBlock),
|
|
96
|
+
tooltip: '块级布局 block',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
value: 'inline-block',
|
|
100
|
+
icon: markRaw(DisplayInlineBlock),
|
|
101
|
+
tooltip: '内联块布局 inline-block',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
value: 'none',
|
|
105
|
+
icon: markRaw(DisplayNone),
|
|
106
|
+
tooltip: '隐藏 none',
|
|
107
|
+
},
|
|
76
108
|
],
|
|
77
109
|
},
|
|
78
110
|
{
|
|
@@ -80,11 +112,20 @@ const formConfig = defineFormConfig([
|
|
|
80
112
|
text: '主轴方向',
|
|
81
113
|
type: 'radioGroup',
|
|
82
114
|
childType: 'button',
|
|
83
|
-
labelWidth: '
|
|
115
|
+
labelWidth: '90px',
|
|
116
|
+
iconSize: '24px',
|
|
84
117
|
options: [
|
|
85
118
|
{ value: 'row', icon: markRaw(FlexDirectionRow), tooltip: '水平方向 起点在左侧 row' },
|
|
86
|
-
{
|
|
87
|
-
|
|
119
|
+
{
|
|
120
|
+
value: 'row-reverse',
|
|
121
|
+
icon: markRaw(FlexDirectionRowReverse),
|
|
122
|
+
tooltip: '水平方向 起点在右侧 row-reverse',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
value: 'column',
|
|
126
|
+
icon: markRaw(FlexDirectionColumn),
|
|
127
|
+
tooltip: '垂直方向 起点在上沿 column',
|
|
128
|
+
},
|
|
88
129
|
{
|
|
89
130
|
value: 'column-reverse',
|
|
90
131
|
icon: markRaw(FlexDirectionColumnReverse),
|
|
@@ -98,13 +139,22 @@ const formConfig = defineFormConfig([
|
|
|
98
139
|
text: '主轴对齐',
|
|
99
140
|
type: 'radioGroup',
|
|
100
141
|
childType: 'button',
|
|
101
|
-
labelWidth: '
|
|
142
|
+
labelWidth: '90px',
|
|
143
|
+
iconSize: '24px',
|
|
102
144
|
options: [
|
|
103
145
|
{ value: 'flex-start', icon: markRaw(JustifyContentFlexStart), tooltip: '左对齐 flex-start' },
|
|
104
146
|
{ value: 'flex-end', icon: markRaw(JustifyContentFlexEnd), tooltip: '右对齐 flex-end' },
|
|
105
147
|
{ value: 'center', icon: markRaw(JustifyContentCenter), tooltip: '居中 center' },
|
|
106
|
-
{
|
|
107
|
-
|
|
148
|
+
{
|
|
149
|
+
value: 'space-between',
|
|
150
|
+
icon: markRaw(JustifyContentSpaceBetween),
|
|
151
|
+
tooltip: '两端对齐 space-between',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
value: 'space-around',
|
|
155
|
+
icon: markRaw(JustifyContentSpaceAround),
|
|
156
|
+
tooltip: '横向平分 space-around',
|
|
157
|
+
},
|
|
108
158
|
],
|
|
109
159
|
display: (_mForm, { model }: { model: Record<any, any> }) => model.display === 'flex',
|
|
110
160
|
},
|
|
@@ -113,13 +163,22 @@ const formConfig = defineFormConfig([
|
|
|
113
163
|
text: '辅轴对齐',
|
|
114
164
|
type: 'radioGroup',
|
|
115
165
|
childType: 'button',
|
|
116
|
-
labelWidth: '
|
|
166
|
+
labelWidth: '90px',
|
|
167
|
+
iconSize: '24px',
|
|
117
168
|
options: [
|
|
118
|
-
{ value: 'flex-start', icon: markRaw(
|
|
119
|
-
{ value: 'flex-end', icon: markRaw(
|
|
120
|
-
{ value: 'center', icon: markRaw(
|
|
121
|
-
{
|
|
122
|
-
|
|
169
|
+
{ value: 'flex-start', icon: markRaw(AlignItemsFlexStart), tooltip: '左对齐 flex-start' },
|
|
170
|
+
{ value: 'flex-end', icon: markRaw(AlignItemsFlexEnd), tooltip: '右对齐 flex-end' },
|
|
171
|
+
{ value: 'center', icon: markRaw(AlignItemsCenter), tooltip: '居中 center' },
|
|
172
|
+
{
|
|
173
|
+
value: 'space-between',
|
|
174
|
+
icon: markRaw(AlignItemsSpaceBetween),
|
|
175
|
+
tooltip: '两端对齐 space-between',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
value: 'space-around',
|
|
179
|
+
icon: markRaw(AlignItemsSpaceAround),
|
|
180
|
+
tooltip: '横向平分 space-around',
|
|
181
|
+
},
|
|
123
182
|
],
|
|
124
183
|
display: (_mForm, { model }: { model: Record<any, any> }) => model.display === 'flex',
|
|
125
184
|
},
|
|
@@ -127,8 +186,9 @@ const formConfig = defineFormConfig([
|
|
|
127
186
|
name: 'flexWrap',
|
|
128
187
|
text: '换行',
|
|
129
188
|
type: 'radioGroup',
|
|
130
|
-
childType: 'button',
|
|
131
|
-
labelWidth: '
|
|
189
|
+
childType: displayTheme.value !== 'magic-admin' ? 'button' : 'default',
|
|
190
|
+
labelWidth: '90px',
|
|
191
|
+
iconSize: '24px',
|
|
132
192
|
options: [
|
|
133
193
|
{ value: 'nowrap', text: '不换行', tooltip: '不换行 nowrap' },
|
|
134
194
|
{ value: 'wrap', text: '正换行', tooltip: '第一行在上方 wrap' },
|
|
@@ -141,17 +201,22 @@ const formConfig = defineFormConfig([
|
|
|
141
201
|
items: [
|
|
142
202
|
{
|
|
143
203
|
name: 'width',
|
|
144
|
-
text: '
|
|
145
|
-
labelWidth: '
|
|
204
|
+
text: '宽度(px)',
|
|
205
|
+
labelWidth: '90px',
|
|
146
206
|
type: 'data-source-field-select',
|
|
147
207
|
fieldConfig: {
|
|
148
208
|
type: 'text',
|
|
149
209
|
},
|
|
150
210
|
},
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
type: 'row',
|
|
215
|
+
items: [
|
|
151
216
|
{
|
|
152
217
|
name: 'height',
|
|
153
|
-
text: '
|
|
154
|
-
labelWidth: '
|
|
218
|
+
text: '高度(px)',
|
|
219
|
+
labelWidth: '90px',
|
|
155
220
|
type: 'data-source-field-select',
|
|
156
221
|
fieldConfig: {
|
|
157
222
|
type: 'text',
|
|
@@ -166,7 +231,7 @@ const formConfig = defineFormConfig([
|
|
|
166
231
|
type: 'data-source-field-select',
|
|
167
232
|
text: 'overflow',
|
|
168
233
|
name: 'overflow',
|
|
169
|
-
labelWidth: '
|
|
234
|
+
labelWidth: '90px',
|
|
170
235
|
checkStrictly: false,
|
|
171
236
|
dataSourceFieldType: ['string'],
|
|
172
237
|
fieldConfig: {
|
|
@@ -184,11 +249,16 @@ const formConfig = defineFormConfig([
|
|
|
184
249
|
],
|
|
185
250
|
},
|
|
186
251
|
},
|
|
252
|
+
],
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
type: 'row',
|
|
256
|
+
items: [
|
|
187
257
|
{
|
|
188
258
|
type: 'data-source-field-select',
|
|
189
|
-
text: '
|
|
259
|
+
text: '透明度(%)',
|
|
190
260
|
name: 'opacity',
|
|
191
|
-
labelWidth: '
|
|
261
|
+
labelWidth: '90px',
|
|
192
262
|
dataSourceFieldType: ['string', 'number'],
|
|
193
263
|
fieldConfig: {
|
|
194
264
|
type: 'text',
|