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

Function parseStyle2String

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

Source from the content-addressed store, hash-verified

54}
55
56export 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}

Callers

nothing calls this directly

Calls 2

assignMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected