diff --git a/src/base.css b/src/base.css
index f521ca7..399e6ac 100644
--- a/src/base.css
+++ b/src/base.css
@@ -382,3 +382,46 @@ body {
opacity: 1;
}
}
+
+/** flex多行容器 */
+.flex-column-container {
+ display: flex;
+ flex-direction: column;
+ flex-wrap: nowrap;
+}
+
+/** flex多列容器 */
+.flex-row-container {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+}
+
+/** flex自动填充 */
+.flex-item-fill {
+ flex-grow: 1;
+ overflow: hidden;
+}
+
+/** flex固定大小 */
+.flex-item-fixed {
+ flex-shrink: 0;
+}
+
+/** flex主轴上对齐方式 */
+.flex-justify-content-center {
+ justify-content: center;
+}
+
+/** flex交叉轴上对齐方式 */
+.flex-align-items-center {
+ align-items: center;
+}
+
+/** 内容居中 */
+.content-center {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
diff --git a/src/editor/propEditors/InOutCenterEditor.vue b/src/editor/propEditors/InOutCenterEditor.vue
new file mode 100644
index 0000000..73a96c3
--- /dev/null
+++ b/src/editor/propEditors/InOutCenterEditor.vue
@@ -0,0 +1,282 @@
+
+
+
+
+
+
+
diff --git a/src/editor/widgets/property/PropertyPanelConstant.ts b/src/editor/widgets/property/PropertyPanelConstant.ts
index f713f55..9197a78 100644
--- a/src/editor/widgets/property/PropertyPanelConstant.ts
+++ b/src/editor/widgets/property/PropertyPanelConstant.ts
@@ -3,6 +3,7 @@ import type { DataFormProps } from "@/components/data-form/DataFormTypes.ts";
import type { PropertyFieldSetter } from "@/core/base/PropertyTypes.ts";
import { dataFormInputComponents } from "@/components/data-form/DataFormConstant.ts";
import TransformEditor from "@/editor/propEditors/TransformEditor.vue";
+import InOutCenterEditor from "@/editor/propEditors/InOutCenterEditor.vue";
const defDataFormProps: DataFormProps = {
columnCount: 1,
@@ -12,6 +13,7 @@ const defDataFormProps: DataFormProps = {
};
dataFormInputComponents.TransformEditor = markRaw(TransformEditor);
+dataFormInputComponents.InOutCenterEditor = markRaw(InOutCenterEditor);
const basicFieldsSetter: Array = [
{
@@ -48,11 +50,10 @@ const basicFieldsSetter: Array = [
dataPath: 'tf', input: 'TransformEditor',
inputProps: {},
},
- // {
- // dataPath: 'dt', input: 'InOutCenterEditor',
- // inputProps: {
- // },
- // },
+ {
+ dataPath: 'dt', input: 'InOutCenterEditor',
+ inputProps: {},
+ },
];