venus-design 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/VirtTable/config.js
CHANGED
|
@@ -444,13 +444,16 @@ var Body = /*#__PURE__*/function () {
|
|
|
444
444
|
rows.push(row);
|
|
445
445
|
}
|
|
446
446
|
if (this.ctx.config.ENABLE_ADD_ROW_BUTTON) {
|
|
447
|
-
var
|
|
447
|
+
var yPos = this.ctx.header.height; // 默认放在表头下方
|
|
448
|
+
if (rows.length > 0) {
|
|
449
|
+
var lastRow = rows[rows.length - 1];
|
|
450
|
+
yPos = lastRow.y + lastRow.height;
|
|
451
|
+
}
|
|
448
452
|
this.addRowBtnRect = {
|
|
449
453
|
x: 0,
|
|
450
|
-
y:
|
|
451
|
-
// 即使 0 也要记录
|
|
454
|
+
y: yPos,
|
|
452
455
|
w: this.width,
|
|
453
|
-
h: this.ctx.config.CELL_HEIGHT
|
|
456
|
+
h: this.ctx.config.CELL_HEIGHT
|
|
454
457
|
};
|
|
455
458
|
}
|
|
456
459
|
this.renderRows = rows;
|