Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc committed Nov 29, 2024
1 parent a56af11 commit 2c8c5c6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/amis-editor-core/src/layout/flex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,11 @@ export default class FlexLayout implements LayoutInterface {
}
if (position === 'left') {
row = beforeRow;
}
if (position === 'right') {
} else if (position === 'right') {
row = preRow;
}
if (position === 'top') {
} else if (position === 'top') {
row = preRow + 1 || 0; // 如果往第一个元素上边插入,preRow为undefined,所以设置0
}

if (position === 'bottom') {
} else if (position === 'bottom') {
row = preRow + 1;
}
}
Expand Down

0 comments on commit 2c8c5c6

Please sign in to comment.