]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix type issue
authorEvan You <yyx990803@gmail.com>
Mon, 19 Jul 2021 15:11:17 +0000 (11:11 -0400)
committerEvan You <yyx990803@gmail.com>
Mon, 19 Jul 2021 15:11:17 +0000 (11:11 -0400)
packages/shared/src/normalizeProp.ts

index ec765be0f9e4d2d24941a26a09d147870889b388..cab8090692e6cfcb326c0ef7da7928f2adfbaa05 100644 (file)
@@ -41,9 +41,11 @@ export function parseStringStyle(cssText: string): NormalizedStyle {
   return ret
 }
 
-export function stringifyStyle(styles: NormalizedStyle | undefined): string {
+export function stringifyStyle(
+  styles: NormalizedStyle | string | undefined
+): string {
   let ret = ''
-  if (!styles) {
+  if (!styles || isString(styles)) {
     return ret
   }
   for (const key in styles) {