Skip to content

Commit

Permalink
fix(pagination): judge pagecount and close #668
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Aug 11, 2022
1 parent 10d836c commit 4f8135f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/pagination/Pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export default defineComponent({
pageList.value = list
if (oldCurrent !== undefined) onChange?.(newCurrent, newSize)
if (oldCurrent !== undefined && pageCount.value > 0) onChange?.(newCurrent, newSize)
props['onUpdate:current']?.(newCurrent)
props['onUpdate:size']?.(newSize)
},
Expand Down

0 comments on commit 4f8135f

Please sign in to comment.