From b7f96b4d8e8291d5f4e130e00f2f30bed7cb91bf Mon Sep 17 00:00:00 2001 From: elf-mouse Date: Tue, 6 Jun 2023 10:20:01 +0800 Subject: [PATCH 1/2] fix: pagination total watcher bug --- src/scripts/components/pagination/pagination.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/scripts/components/pagination/pagination.vue b/src/scripts/components/pagination/pagination.vue index a5b2e77d7..173d24500 100644 --- a/src/scripts/components/pagination/pagination.vue +++ b/src/scripts/components/pagination/pagination.vue @@ -282,6 +282,15 @@ watch( } ); +watch( + () => props.total, + () => { + if (currentMinRow.value > currentMaxRow.value) { + handleChange(); + } + } +); + watch( () => props.pageSize, (val) => { From 99fc671ad2cf53cb33b4f0dfcecc064019420260 Mon Sep 17 00:00:00 2001 From: elf-mouse Date: Tue, 6 Jun 2023 10:21:28 +0800 Subject: [PATCH 2/2] 10.21.2 --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0af45b9b1..23174929a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 + +- ``: fix `total` watcher bug + ## v10.21.0 / 2023-06-05 ### Features diff --git a/package.json b/package.json index 4efc17ca2..c546b6137 100644 --- a/package.json +++ b/package.json @@ -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",