fix(v-on): transform click.right and click.middle modifiers

fix #735
This commit is contained in:
Evan You
2020-02-18 14:32:06 -05:00
parent 583f9468fa
commit 028f748c32
3 changed files with 84 additions and 1 deletions

View File

@@ -56,6 +56,9 @@ export const transformOn: DirectiveTransform = (
// handler processing
let exp: ExpressionNode | undefined = dir.exp
if (exp && !exp.content.trim()) {
exp = undefined
}
let isCacheable: boolean = !exp
if (exp) {
const isMemberExp = isMemberExpression(exp.content)