From 0ae9acdfd6b69247445763f6418af59f7e97bbcb Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Wed, 18 Dec 2024 21:18:55 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=BC=BA=E9=99=B7=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91Simple=20=E6=B5=81=E7=A8=8B=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=EF=BC=8C=E5=BD=93=E6=A8=AA=E5=90=91=E5=86=85=E5=AE=B9=E8=BF=87?= =?UTF-8?q?=E5=A4=9A=E6=97=B6=EF=BC=8C=E5=B7=A6=E4=BE=A7=E4=BC=9A=E8=A2=AB?= =?UTF-8?q?=E9=A1=B6=E5=87=BA=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/nodes-config/ConditionNodeConfig.vue | 2 +- .../theme/simple-process-designer.scss | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/ConditionNodeConfig.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/ConditionNodeConfig.vue index 49e5d9f6..ae931724 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/ConditionNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/ConditionNodeConfig.vue @@ -381,7 +381,7 @@ const fieldOptions = computed(() => { /** 获取字段名称 */ const getFieldTitle = (field: string) => { - const item = fieldsInfo.find((item) => item.field === field) + const item = fieldOptions.value.find((item) => item.field === field) return item?.title } diff --git a/src/components/SimpleProcessDesignerV2/theme/simple-process-designer.scss b/src/components/SimpleProcessDesignerV2/theme/simple-process-designer.scss index 516756e2..8cf2681d 100644 --- a/src/components/SimpleProcessDesignerV2/theme/simple-process-designer.scss +++ b/src/components/SimpleProcessDesignerV2/theme/simple-process-designer.scss @@ -173,13 +173,16 @@ height: 100%; padding-top: 32px; background-color: #fafafa; + overflow-x: auto; + width: 100%; + .simple-process-model { display: flex; flex-direction: column; justify-content: center; align-items: center; transform-origin: 50% 0 0; - overflow: auto; + min-width: fit-content; transform: scale(1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); background: url(@/assets/svgs/bpm/simple-process-bg.svg) 0 0 repeat; @@ -473,6 +476,7 @@ .branch-node-container { position: relative; display: flex; + min-width: fit-content; &::before { position: absolute; @@ -548,6 +552,7 @@ background: transparent; border-top: 2px solid #dedede; border-bottom: 2px solid #dedede; + flex-shrink: 0; &::before { position: absolute;