fix(runtime-vapor): retrieve prop value from element

This commit is contained in:
三咲智子 Kevin Deng 2024-02-07 19:24:06 +08:00
parent b7e6e1eceb
commit 94272c6163
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ function getValue(
instance: ComponentInternalInstance, instance: ComponentInternalInstance,
) { ) {
const metadata = instance.metadata.get(el) const metadata = instance.metadata.get(el)
return metadata ? metadata.props.value : el.value return (metadata && metadata.props.value) || el.value
} }
export const vModelCheckbox = {} export const vModelCheckbox = {}