quasar-factory-lib 0.1.1 → 0.1.3
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/layouts/PdaLayoutVueCompositionApi.vue.d.ts +1681 -0
- package/dist/quasar-factory-lib.js +5 -4
- package/dist/quasar-factory-lib.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/Table/Table.vue +2 -1
- package/src/layouts/PdaLayoutVueCompositionApi.vue +16 -2
- package/src/router/routes.ts +1 -1
- package/dist/layouts/PdaLayout.vue.d.ts +0 -1945
|
@@ -13136,12 +13136,13 @@ const q0 = xn({
|
|
|
13136
13136
|
this.advancedFiltersData = this.columns.reduce((e, t) => (e[t.name] = "", e), {});
|
|
13137
13137
|
},
|
|
13138
13138
|
handleInfiniteScrollTableCompositionAPi() {
|
|
13139
|
+
const e = this.showIconAdvancedFilter && this.smallDevice ? document.getElementsByClassName("q-table__control")[0].offsetHeight : 0;
|
|
13139
13140
|
this.$nextTick(() => {
|
|
13140
|
-
const
|
|
13141
|
-
const { scrollHeight:
|
|
13142
|
-
Math.abs(
|
|
13141
|
+
const t = this.smallDevice ? "q-table__grid-content" : "q-table__middle scroll", n = this.smallDevice ? "Grid" : "Table", o = document.getElementsByClassName(t), a = o.length > 0 ? o[0] : window, l = (r) => {
|
|
13142
|
+
const { scrollHeight: i, scrollTop: s, clientHeight: c } = r.target;
|
|
13143
|
+
Math.abs(i - c - s - e) < 1 && (console.log(`[${n}] You are at the bottom!`, this.totalPage), this.totalPage++);
|
|
13143
13144
|
};
|
|
13144
|
-
window.removeEventListener("scroll",
|
|
13145
|
+
window.removeEventListener("scroll", l), a.removeEventListener("scroll", l), a.addEventListener("scroll", l);
|
|
13145
13146
|
});
|
|
13146
13147
|
}
|
|
13147
13148
|
}
|