mirror of
https://github.com/vuejs/vue.git
synced 2024-11-22 04:39:46 +00:00
fix addStyleBinding helper
This commit is contained in:
parent
da42ca8203
commit
3f2fb1fb03
@ -15,7 +15,7 @@ export function addDirective (el, name, value, arg, modifiers) {
|
||||
export function addStyleBinding (el, name, value) {
|
||||
const code = `"${name}":${value}`
|
||||
el.styleBinding = el.styleBinding
|
||||
? el.styleBinding.replace(/}\s?$/, `${code},}`)
|
||||
? el.styleBinding.replace(/}\s?$/, `,${code}}`)
|
||||
: `{${code}}`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user