|
@@ -2135,7 +2135,7 @@ function processExp(exp: string, dir?: string): string {
|
|
|
if (dir === 'slot') {
|
|
if (dir === 'slot') {
|
|
|
exp = `(${exp})=>{}`
|
|
exp = `(${exp})=>{}`
|
|
|
} else if (dir === 'on') {
|
|
} else if (dir === 'on') {
|
|
|
- exp = `()=>{${exp}}`
|
|
|
|
|
|
|
+ exp = `()=>{return ${exp}}`
|
|
|
} else if (dir === 'for') {
|
|
} else if (dir === 'for') {
|
|
|
const inMatch = exp.match(forAliasRE)
|
|
const inMatch = exp.match(forAliasRE)
|
|
|
if (inMatch) {
|
|
if (inMatch) {
|