Skip to content

Commit

Permalink
fix(components): h5组件的 style 支持设置 css 变量,fix #7452
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Jan 28, 2021
1 parent e61b204 commit 7e2f546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-components/h5/react/utils/reactify-wc.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const reactifyWebComponent = WC => {
return this.ref.current.setAttribute(prop, val)
} else if (val && typeof val === 'object') {
for (const key in val) {
this.ref.current.style[key] = val[key]
this.ref.current.style.setProperty(key, val[key])
}
return
}
Expand Down

0 comments on commit 7e2f546

Please sign in to comment.