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.
package/package.json
CHANGED
|
@@ -541,7 +541,7 @@ export default defineComponent({
|
|
|
541
541
|
}, {} as { [key: string]: string })
|
|
542
542
|
},
|
|
543
543
|
handleInfiniteScrollTableCompositionAPi () {
|
|
544
|
-
const offSet = this.showIconAdvancedFilter && this.smallDevice ? document.getElementsByClassName('q-table__control')[0].offsetHeight : 0
|
|
544
|
+
// const offSet = this.showIconAdvancedFilter && this.smallDevice ? document.getElementsByClassName('q-table__control')[0].offsetHeight : 0
|
|
545
545
|
this.$nextTick(() => {
|
|
546
546
|
const elemClass = this.smallDevice ? 'q-table__grid-content' : 'q-table__middle scroll'
|
|
547
547
|
const tableType = this.smallDevice ? 'Grid' : 'Table'
|
|
@@ -550,7 +550,7 @@ export default defineComponent({
|
|
|
550
550
|
qtableScrollElem.length > 0 ? qtableScrollElem[0] : window
|
|
551
551
|
const fnAddScroll = (event: Event) => {
|
|
552
552
|
const { scrollHeight, scrollTop, clientHeight } = event.target as HTMLElement
|
|
553
|
-
if (Math.abs(scrollHeight - clientHeight - scrollTop
|
|
553
|
+
if (Math.abs(scrollHeight - clientHeight - scrollTop) <= 1) {
|
|
554
554
|
console.log(`[${tableType}] You are at the bottom!`, this.totalPage)
|
|
555
555
|
this.totalPage++
|
|
556
556
|
}
|