Skip to content

Commit

Permalink
fix(shared): normalizeStyle should handle strings
Browse files Browse the repository at this point in the history
fix #4138
  • Loading branch information
yyx990803 committed Jul 19, 2021
1 parent 84f6791 commit a8c3a8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/shared/src/normalizeProp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export function normalizeStyle(value: unknown): NormalizedStyle | undefined {
}
}
return res
} else if (isString(value)) {
return parseStringStyle(value)
} else if (isObject(value)) {
return value
}
Expand Down

0 comments on commit a8c3a8a

Please sign in to comment.