Skip to content

Commit

Permalink
fix(runtime): 修复设置 Webkit 前缀 style 失败的问题,fix NervJS#8805
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj authored and ywmail committed Mar 8, 2021
1 parent afa69bd commit 791a228
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/taro-runtime/src/dom/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ export class Style {
}

public setProperty (propertyName: string, value?: string | null) {
if (isCssVariable(propertyName)) {
if (propertyName[0] === '-') {
// 支持 webkit 属性或 css 变量
this.setCssVariables(propertyName)
} else {
propertyName = toCamelCase(propertyName)
Expand Down

0 comments on commit 791a228

Please sign in to comment.