Skip to content

Commit

Permalink
feat: 修改事件绑定
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackgan3 committed Dec 4, 2024
1 parent aa73eea commit ef0197f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/webpack-plugin/lib/template-compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1226,14 +1226,8 @@ function processEventReact (el) {
])
} else {
const { name, value } = configs[0]
getAndRemoveAttr(el, name)
if (name && value) {
addAttrs(el, [
{
name,
value: `{{${value}}}`
}
])
modifyAttr(el, name, `{{${value}}}`)
}
}

Expand Down

0 comments on commit ef0197f

Please sign in to comment.