fix(compile-sfc): generate setup prop type format error (#4506)

fix #4505
This commit is contained in:
webfansplz
2021-09-06 05:36:46 +08:00
committed by GitHub
parent 0178f4ed31
commit e6fe751b20
2 changed files with 4 additions and 3 deletions

View File

@@ -623,7 +623,8 @@ export function compileScript(
) +
', '
} else {
res += scriptSetupSource.slice(m.start!, m.end!) + `, `
res +=
scriptSetupSource.slice(m.start!, m.typeAnnotation.end!) + `, `
}
}
}