@ninebone/table 0.0.485 → 0.0.487
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/nine-table.js
CHANGED
|
@@ -518,16 +518,15 @@ const Me = class Me {
|
|
|
518
518
|
}, "#adjustBufferRows"));
|
|
519
519
|
d(this, lt, /* @__PURE__ */ h((i) => {
|
|
520
520
|
var u;
|
|
521
|
-
U.log("#handleScroll");
|
|
522
521
|
const e = t(this, M);
|
|
523
522
|
if (!e || e <= 0) return;
|
|
524
|
-
const r = (t(this, D).data.get() || []).length, n = Math.max(0, Math.floor(i / e)), o = n * e, a = ((u = t(this, z).get(".ng-container-body")) == null ? void 0 : u.length) || 1, c = t(this, S).querySelector(".ng-container-body"), l = c == null ? void 0 : c.querySelector(".ng-part-body tbody.bindable-tbody tr:not(.nodata)"), f = l && l.dataset.row !== void 0 ? parseInt(l.dataset.row, 10) :
|
|
523
|
+
const r = (t(this, D).data.get() || []).length, n = Math.max(0, Math.floor(i / e)), o = n * e, a = ((u = t(this, z).get(".ng-container-body")) == null ? void 0 : u.length) || 1, c = t(this, S).querySelector(".ng-container-body"), l = c == null ? void 0 : c.querySelector(".ng-part-body tbody.bindable-tbody tr:not(.nodata)"), f = l && l.dataset.row !== void 0 ? parseInt(l.dataset.row, 10) : 0;
|
|
525
524
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
|
|
526
525
|
const g = t(this, S).querySelector(b);
|
|
527
526
|
if (!g) return;
|
|
528
527
|
const m = g.querySelector(".ng-part-body tbody.bindable-tbody");
|
|
529
528
|
m && (m.style.transform = `translateY(${o}px)`);
|
|
530
|
-
}), f !== n && [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
|
|
529
|
+
}), U.log("#handleScroll", f, n), f !== n && [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
|
|
531
530
|
const g = t(this, S).querySelector(b);
|
|
532
531
|
if (!g) return;
|
|
533
532
|
const m = g.querySelector(".ng-part-body tbody.bindable-tbody");
|