Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/10.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
elf-mouse committed Jun 6, 2023
2 parents 69622dd + 99fc671 commit 81b4472
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

- [`balm-ui@8`](https://github.com/balmjs/balm-ui/tree/8.x) for Vue 2

## v10.21.2 / 2023-06-06

### Bug Fixes

- `<ui-pagination>`: fix `total` watcher bug

## v10.21.0 / 2023-06-05

### Features
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "balm-ui",
"version": "10.21.1",
"version": "10.21.2",
"description": "A modular and customizable UI library based on Material Design and Vue 3",
"keywords": [
"balm",
Expand Down
9 changes: 9 additions & 0 deletions src/scripts/components/pagination/pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@ watch(
}
);
watch(
() => props.total,
() => {
if (currentMinRow.value > currentMaxRow.value) {
handleChange();
}
}
);
watch(
() => props.pageSize,
(val) => {
Expand Down

0 comments on commit 81b4472

Please sign in to comment.