Skip to content

Commit a8c3a8a

Browse files
committed
fix(shared): normalizeStyle should handle strings
fix #4138
1 parent 84f6791 commit a8c3a8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/shared/src/normalizeProp.ts

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export function normalizeStyle(value: unknown): NormalizedStyle | undefined {
1818
}
1919
}
2020
return res
21+
} else if (isString(value)) {
22+
return parseStringStyle(value)
2123
} else if (isObject(value)) {
2224
return value
2325
}

0 commit comments

Comments
 (0)