Skip to content

Commit 0ae9acd

Browse files
committed
【缺陷修复】Simple 流程设计器,当横向内容过多时,左侧会被顶出去
1 parent 5e38633 commit 0ae9acd

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/SimpleProcessDesignerV2/src/nodes-config/ConditionNodeConfig.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ const fieldOptions = computed(() => {
381381
382382
/** 获取字段名称 */
383383
const getFieldTitle = (field: string) => {
384-
const item = fieldsInfo.find((item) => item.field === field)
384+
const item = fieldOptions.value.find((item) => item.field === field)
385385
return item?.title
386386
}
387387

src/components/SimpleProcessDesignerV2/theme/simple-process-designer.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,16 @@
173173
height: 100%;
174174
padding-top: 32px;
175175
background-color: #fafafa;
176+
overflow-x: auto;
177+
width: 100%;
178+
176179
.simple-process-model {
177180
display: flex;
178181
flex-direction: column;
179182
justify-content: center;
180183
align-items: center;
181184
transform-origin: 50% 0 0;
182-
overflow: auto;
185+
min-width: fit-content;
183186
transform: scale(1);
184187
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
185188
background: url(@/assets/svgs/bpm/simple-process-bg.svg) 0 0 repeat;
@@ -473,6 +476,7 @@
473476
.branch-node-container {
474477
position: relative;
475478
display: flex;
479+
min-width: fit-content;
476480

477481
&::before {
478482
position: absolute;
@@ -548,6 +552,7 @@
548552
background: transparent;
549553
border-top: 2px solid #dedede;
550554
border-bottom: 2px solid #dedede;
555+
flex-shrink: 0;
551556

552557
&::before {
553558
position: absolute;

0 commit comments

Comments
 (0)