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

This commit is contained in:
btea 2024-08-27 09:03:06 +08:00 committed by GitHub
parent bb4cf0370f
commit 6ce83d38a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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