mirror of
https://github.com/vuejs/vue.git
synced 2024-11-21 12:18:54 +00:00
fix(compiler-sfc): Resolve object expression parsing errors in v-on
(#12862)
This commit is contained in:
parent
d27c128b7c
commit
b8c8b3fc7a
@ -1841,7 +1841,7 @@ function processExp(exp: string, isTS: boolean, dir?: string): string {
|
||||
if (dir === 'slot') {
|
||||
exp = `(${exp})=>{}`
|
||||
} else if (dir === 'on') {
|
||||
exp = `()=>{${exp}}`
|
||||
exp = `()=>{return ${exp}}`
|
||||
} else if (dir === 'for') {
|
||||
const inMatch = exp.match(forAliasRE)
|
||||
if (inMatch) {
|
||||
|
Loading…
Reference in New Issue
Block a user