fix(shared): normalizeStyle should handle strings

fix #4138
This commit is contained in:
Evan You 2021-07-19 10:37:12 -04:00
parent 84f6791e89
commit a8c3a8ad61

View File

@ -18,6 +18,8 @@ export function normalizeStyle(value: unknown): NormalizedStyle | undefined {
} }
} }
return res return res
} else if (isString(value)) {
return parseStringStyle(value)
} else if (isObject(value)) { } else if (isObject(value)) {
return value return value
} }