From 3460351ce396bb418408ddbfad462ddac8ef9477 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Fri, 9 Oct 2020 19:20:17 +0800 Subject: [PATCH] fix(Pagination): incorrect emit change --- src/pagination/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pagination/index.js b/src/pagination/index.js index f1d8b281a..f58622818 100644 --- a/src/pagination/index.js +++ b/src/pagination/index.js @@ -110,7 +110,13 @@ export default createComponent({ } }; - watch(() => props.modelValue, select, { immediate: true }); + watch( + () => props.modelValue, + (value) => { + select(value); + }, + { immediate: true } + ); const renderDesc = () => { if (props.mode !== 'multi') {