(...styles: Record<string, string | number>[])
| 54 | } |
| 55 | |
| 56 | export function parseStyle2String (...styles: Record<string, string | number>[]) { |
| 57 | const style = Object.assign({}, ...styles) |
| 58 | return Object.entries(style).map(([key, value]) => `${key}: ${value};`).join('') |
| 59 | } |