fix(components): [pagination] global size dynamic modification error (#18004)

This commit is contained in:
btea
2024-08-27 09:03:06 +08:00
committed by GitHub
parent bb4cf0370f
commit 6ce83d38a7

View File

@@ -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(
{