fix: allow initial page loading without manual click
This commit is contained in:
parent
c23e2cb8e2
commit
5b7f71a35a
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ export function usePaginator<T, P, U = T>(
|
||||||
const items = ref<U[]>([])
|
const items = ref<U[]>([])
|
||||||
const nextItems = ref<U[]>([])
|
const nextItems = ref<U[]>([])
|
||||||
const prevItems = ref<T[]>([])
|
const prevItems = ref<T[]>([])
|
||||||
const canLoadMore = ref<boolean>(false)
|
const canLoadMore = ref<boolean>(true)
|
||||||
|
|
||||||
const endAnchor = ref<HTMLDivElement>()
|
const endAnchor = ref<HTMLDivElement>()
|
||||||
const bound = useElementBounding(endAnchor)
|
const bound = useElementBounding(endAnchor)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue