@tmagic/editor 1.8.0-beta.8 → 1.8.0-manmanyu.10
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 -5
- package/dist/es/components/CodeBlockEditor.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/es/components/CodeParams.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/components/CompareForm.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/components/ContentMenu.vue_vue_type_script_setup_true_lang.js +12 -5
- package/dist/es/components/FloatingBox.vue_vue_type_script_setup_true_lang.js +11 -6
- package/dist/es/components/Icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/components/Resizer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/components/ScrollBar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/components/ScrollViewer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/components/SearchInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/components/SplitView.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/components/ToolButton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/components/Tree.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/components/TreeNode.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/Code.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/CodeLink.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/CodeSelect.vue_vue_type_script_setup_true_lang.js +69 -44
- package/dist/es/fields/CodeSelectCol.vue_vue_type_script_setup_true_lang.js +6 -2
- package/dist/es/fields/CondOpSelect.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/DataSourceFieldSelect/FieldSelect.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/es/fields/DataSourceFieldSelect/Index.vue_vue_type_script_setup_true_lang.js +11 -8
- package/dist/es/fields/DataSourceFields.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/es/fields/DataSourceInput.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/DataSourceMethodSelect.vue_vue_type_script_setup_true_name_true_lang.js +5 -2
- package/dist/es/fields/DataSourceMethods.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/DataSourceMocks.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/es/fields/DataSourceSelect.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/DisplayConds.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/es/fields/EventSelect.vue_vue_type_script_setup_true_lang.js +102 -65
- package/dist/es/fields/KeyValue.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/PageFragmentSelect.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/StyleSetter/Index.vue_vue_type_script_setup_true_lang.js +6 -5
- package/dist/es/fields/StyleSetter/components/BackgroundPosition.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/fields/StyleSetter/components/Border.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/es/fields/StyleSetter/components/Box.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 +7 -7
- package/dist/es/fields/StyleSetter/icons/background-repeat/Repeat.js +6 -3
- package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatX.js +29 -6
- package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatY.js +32 -6
- package/dist/es/fields/StyleSetter/icons/display/Block.js +1 -1
- package/dist/es/fields/StyleSetter/icons/display/Flex.js +1 -1
- package/dist/es/fields/StyleSetter/icons/display/Inline.js +1 -1
- package/dist/es/fields/StyleSetter/icons/display/InlineBlock.js +1 -1
- package/dist/es/fields/StyleSetter/icons/display/None.js +1 -1
- package/dist/es/fields/StyleSetter/icons/flex-direction/Column.js +11 -3
- package/dist/es/fields/StyleSetter/icons/flex-direction/ColumnReverse.js +11 -3
- package/dist/es/fields/StyleSetter/icons/flex-direction/Row.js +11 -3
- package/dist/es/fields/StyleSetter/icons/flex-direction/RowReverse.js +11 -3
- package/dist/es/fields/StyleSetter/icons/justify-content/Center.js +17 -3
- package/dist/es/fields/StyleSetter/icons/justify-content/FlexEnd.js +19 -3
- package/dist/es/fields/StyleSetter/icons/justify-content/FlexStart.js +19 -3
- package/dist/es/fields/StyleSetter/icons/justify-content/SpaceAround.js +37 -3
- package/dist/es/fields/StyleSetter/icons/justify-content/SpaceBetween.js +33 -3
- package/dist/es/fields/StyleSetter/icons/text-align/Center.js +1 -1
- package/dist/es/fields/StyleSetter/icons/text-align/Left.js +1 -1
- package/dist/es/fields/StyleSetter/icons/text-align/Right.js +1 -1
- package/dist/es/fields/StyleSetter/pro/Background.vue_vue_type_script_setup_true_lang.js +12 -7
- package/dist/es/fields/StyleSetter/pro/Border.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/StyleSetter/pro/Font.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/es/fields/StyleSetter/pro/Layout.vue_vue_type_script_setup_true_lang.js +83 -47
- package/dist/es/fields/StyleSetter/pro/Position.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/StyleSetter/pro/Transform.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/UISelect.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/icons/CenterIcon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/icons/CodeIcon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/icons/DatasourceIcon.js +17 -0
- package/dist/es/icons/FolderMinusIcon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/AddPageBox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/CodeEditor.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/Framework.vue_vue_type_script_setup_true_lang.js +15 -11
- package/dist/es/layouts/NavMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/NavMenuColumn.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/history-list/Bucket.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/history-list/BucketTab.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/history-list/GroupRow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/history-list/HistoryDiffDialog.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/history-list/HistoryListPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/history-list/InitialRow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/history-list/PageTab.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/page-bar/AddButton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/page-bar/PageBar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/page-bar/PageBarScrollContainer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/page-bar/PageList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/page-bar/Search.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/es/layouts/props-panel/FormPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/props-panel/PropsPanel.vue_vue_type_script_setup_true_lang.js +11 -2
- package/dist/es/layouts/sidebar/ComponentListPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/code-block/CodeBlockList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/code-block/CodeBlockListPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/data-source/DataSourceAddButton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/data-source/DataSourceConfigPanel.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/es/layouts/sidebar/data-source/DataSourceList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/data-source/DataSourceListPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/layer/LayerMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/layer/LayerNodeTool.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/layer/LayerPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/workspace/Breadcrumb.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/workspace/Workspace.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/workspace/viewer/NodeListMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/workspace/viewer/Stage.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/workspace/viewer/StageOverlay.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/workspace/viewer/ViewerMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/style.css +294 -37
- package/dist/es/utils/const.js +1 -1
- package/dist/es/utils/dep/worker.js +1 -1
- package/dist/es/utils/props.js +48 -29
- package/dist/style.css +294 -37
- package/dist/themes/magic-admin.css +2805 -0
- package/dist/tmagic-editor.umd.cjs +3658 -3153
- package/package.json +8 -8
- package/src/Editor.vue +13 -1
- package/src/components/ContentMenu.vue +10 -2
- package/src/components/FloatingBox.vue +13 -2
- package/src/editorProps.ts +9 -0
- package/src/fields/CodeSelect.vue +51 -40
- 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 +58 -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 copy.ts +5 -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 +11 -5
- package/src/fields/StyleSetter/pro/Font.vue +3 -3
- package/src/fields/StyleSetter/pro/Layout.vue +105 -28
- package/src/fields/UISelect.vue +1 -1
- package/src/icons/DatasourceIcon.vue +7 -0
- package/src/layouts/Framework.vue +7 -1
- package/src/layouts/props-panel/PropsPanel.vue +19 -1
- 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 +55 -1
- package/src/theme/history-list-panel.scss +9 -9
- 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 +124 -0
- package/src/utils/const.ts +2 -1
- package/src/utils/props.ts +30 -9
- package/types/index.d.ts +42 -6
|
@@ -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
|
|
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>
|
|
@@ -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: '
|
|
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
|
-
{
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
{
|
|
84
|
-
|
|
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
|
-
{
|
|
104
|
-
|
|
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(
|
|
116
|
-
{ value: 'flex-end', icon: markRaw(
|
|
117
|
-
{ value: 'center', icon: markRaw(
|
|
118
|
-
{
|
|
119
|
-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
265
|
+
labelWidth: '90px',
|
|
189
266
|
dataSourceFieldType: ['string', 'number'],
|
|
190
267
|
fieldConfig: {
|
|
191
268
|
type: 'text',
|