mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 09:39:14 +08:00
fix: directive with single param did not work
This commit is contained in:
parent
5c2ff2df70
commit
9f133858c5
@ -79,7 +79,7 @@ const parseDirectives = (args: {
|
||||
arg,
|
||||
directive: hasDirective ? [
|
||||
resolveDirective(path, state, tag, directiveName),
|
||||
val as t.Identifier,
|
||||
val || value,
|
||||
!!modifiersSet.size && t.unaryExpression('void', t.numericLiteral(0), true),
|
||||
!!modifiersSet.size && t.objectExpression(
|
||||
[...modifiersSet].map(
|
||||
|
Loading…
Reference in New Issue
Block a user