|
|
@@ -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) {
|