]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(shared): normalizeStyle should handle strings
authorEvan You <yyx990803@gmail.com>
Mon, 19 Jul 2021 14:37:12 +0000 (10:37 -0400)
committerEvan You <yyx990803@gmail.com>
Mon, 19 Jul 2021 14:37:12 +0000 (10:37 -0400)
fix #4138

packages/shared/src/normalizeProp.ts

index 9cedafe30f0ebf88eda7cea954e2aaa06f53e2b9..7d4ba83a92309f500de1aa3e02db0a08a7421bf3 100644 (file)
@@ -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
   }