chore(compiler-core): fix typo in transformElement (#4649) [ci skip]

This commit is contained in:
Ziwen Mei 2021-09-22 22:12:52 +08:00 committed by GitHub
parent bf267b1ce3
commit 1873f0f48c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -472,7 +472,7 @@ export function buildProps(
hasRef = true hasRef = true
// in inline mode there is no setupState object, so we can't use string // in inline mode there is no setupState object, so we can't use string
// keys to set the ref. Instead, we need to transform it to pass the // keys to set the ref. Instead, we need to transform it to pass the
// acrtual ref instead. // actual ref instead.
if (!__BROWSER__ && context.inline && value?.content) { if (!__BROWSER__ && context.inline && value?.content) {
valueNode = createFunctionExpression(['_value', '_refs']) valueNode = createFunctionExpression(['_value', '_refs'])
valueNode.body = createBlockStatement( valueNode.body = createBlockStatement(