(styleText string, params map[string]any)
| 274 | } |
| 275 | |
| 276 | func styleAttrStrToStyleMap(styleText string, params map[string]any) (map[string]any, error) { |
| 277 | parser := cssparser.MakeParser(styleText) |
| 278 | m, err := parser.Parse() |
| 279 | if err != nil { |
| 280 | return nil, err |
| 281 | } |
| 282 | return convertStyleToReactStyles(m, params), nil |
| 283 | } |
| 284 | |
| 285 | func fixStyleAttribute(elem *VDomElem, params map[string]any, elemPath []string) error { |
| 286 | styleText, ok := elem.Props["style"].(string) |
no test coverage detected