quasar-factory-lib 0.1.14 → 0.1.15
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.
|
@@ -13148,13 +13148,12 @@ const q0 = Cn({
|
|
|
13148
13148
|
this.advancedFiltersData = this.columns.reduce((e, t) => (e[t.name] = "", e), {});
|
|
13149
13149
|
},
|
|
13150
13150
|
handleInfiniteScrollTableCompositionAPi() {
|
|
13151
|
-
const e = this.showIconAdvancedFilter && this.smallDevice ? document.getElementsByClassName("q-table__control")[0].offsetHeight : 0;
|
|
13152
13151
|
this.$nextTick(() => {
|
|
13153
|
-
const
|
|
13154
|
-
const { scrollHeight:
|
|
13155
|
-
Math.abs(
|
|
13152
|
+
const e = this.smallDevice ? "q-table__grid-content" : "q-table__middle scroll", t = this.smallDevice ? "Grid" : "Table", n = document.getElementsByClassName(e), o = n.length > 0 ? n[0] : window, a = (l) => {
|
|
13153
|
+
const { scrollHeight: r, scrollTop: i, clientHeight: s } = l.target;
|
|
13154
|
+
Math.abs(r - s - i) <= 1 && (console.log(`[${t}] You are at the bottom!`, this.totalPage), this.totalPage++);
|
|
13156
13155
|
};
|
|
13157
|
-
window.removeEventListener("scroll",
|
|
13156
|
+
window.removeEventListener("scroll", a), o.removeEventListener("scroll", a), o.addEventListener("scroll", a);
|
|
13158
13157
|
});
|
|
13159
13158
|
}
|
|
13160
13159
|
}
|