fix(compiler-sfc): support complex expression in CSS v-bind() (#5114)

fix #5109
This commit is contained in:
edison
2022-01-21 15:53:51 +08:00
committed by Evan You
parent 63210fe41a
commit 95d49bf7e7
3 changed files with 47 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ import hash from 'hash-sum'
export const CSS_VARS_HELPER = `useCssVars`
export const cssVarRE =
/\bv-bind\(\s*(?:'([^']+)'|"([^"]+)"|([^'"][^)]*))\s*\)/g
/\bv-bind\s*\(\s*(?:'([^']+)'|"([^"]+)"|([^'"][^;]*))\s*\)/g
export function genCssVarsFromList(
vars: string[],