|
|
@@ -1130,8 +1130,8 @@ export default {
|
|
|
if (this.curRow >= -1 && this.curCol > -1 && this.curGrid <= -1) {
|
|
|
// 当拖拽组件和放置位置在同一列内,且行内组件数量为 1,将 curRow 减 1,才能正确插入
|
|
|
if ('col' in this.curParams) {
|
|
|
- const { col, row, rowNum } = this.curParams;
|
|
|
- if (col === this.curCol && row === this.curRow && rowNum === 1) {
|
|
|
+ const { row, rowNum } = this.curParams;
|
|
|
+ if (row === this.curRow && rowNum === 1) {
|
|
|
this.curRow = Math.max(0, this.curRow - 1);
|
|
|
this.calculateRowInsertedObject();
|
|
|
return;
|