2017-02-15 30 views

回答

0

據我看到的代碼here,樣式合併:

style: prepareStyles(Object.assign({}, styles.childImg, child.props.style)) 

但也有IF語句上面,因此你需要滿足這些條件,以及:

  • 有必須只有一個孩子
  • 這個孩子必須是<img ... />
相關問題