fix(compiler-core): transform empty `v-bind` dynamic argument content correctly (#12554)

This commit is contained in:
山吹色御守 2025-07-18 00:56:01 -07:00 committed by GitHub
parent e0e8221d7f
commit d3af67e878
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ export const transformBind: DirectiveTransform = (dir, _node, context) => {
arg.children.unshift(`(`)
arg.children.push(`) || ""`)
} else if (!arg.isStatic) {
arg.content = `${arg.content} || ""`
arg.content = arg.content ? `${arg.content} || ""` : `""`
}
// .sync is replaced by v-model:arg