mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-05 00:19:59 +00:00
fix: show remaining items in buffer on pagination end
This commit is contained in:
parent
1dcaf41c0f
commit
19e4aa4ada
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ export function usePaginator<T, P>(
|
||||||
state.value = 'idle'
|
state.value = 'idle'
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
items.value.push(...nextItems.value)
|
||||||
|
nextItems.value = []
|
||||||
state.value = 'done'
|
state.value = 'done'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue