From: Evan You Date: Mon, 19 Jul 2021 14:37:12 +0000 (-0400) Subject: fix(shared): normalizeStyle should handle strings X-Git-Tag: v3.2.0-beta.2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8c3a8ad61b16a31f6754066838440a59ee9db8b;p=thirdparty%2Fvuejs%2Fcore.git fix(shared): normalizeStyle should handle strings fix #4138 --- diff --git a/packages/shared/src/normalizeProp.ts b/packages/shared/src/normalizeProp.ts index 9cedafe30f..7d4ba83a92 100644 --- a/packages/shared/src/normalizeProp.ts +++ b/packages/shared/src/normalizeProp.ts @@ -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 }