From 6ce83d38a7384100f07c19dd4f3a3bc70e94d984 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Tue, 27 Aug 2024 09:03:06 +0800 Subject: [PATCH] fix(components): [pagination] global size dynamic modification error (#18004) --- packages/components/pagination/src/pagination.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/components/pagination/src/pagination.ts b/packages/components/pagination/src/pagination.ts index 1ebf4667b4..14481dffdc 100644 --- a/packages/components/pagination/src/pagination.ts +++ b/packages/components/pagination/src/pagination.ts @@ -194,8 +194,9 @@ export default defineComponent({ const { t } = useLocale() const ns = useNamespace('pagination') const vnodeProps = getCurrentInstance()!.vnode.props || {} + const _globalSize = useGlobalSize() const _size = computed(() => - props.small ? 'small' : props.size ?? useGlobalSize().value + props.small ? 'small' : props.size ?? _globalSize.value ) useDeprecated( {