MCPcopy
hub / github.com/NervJS/taro / parseStyle2String

Function parseStyle2String

packages/taro-components-react/__tests__/utils.ts:39–42  ·  view source on GitHub ↗
(...styles: Record<string, string | number>[])

Source from the content-addressed store, hash-verified

37}
38
39export function parseStyle2String(...styles: Record<string, string | number>[]) {
40 const style = Object.assign({}, ...styles)
41 return Object.entries(style).map(([key, value]) => `${key}: ${value};`).join('')
42}
43
44// React 测试工具函数
45export function renderWithProviders(

Callers

nothing calls this directly

Calls 2

assignMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected