weex自帶的image組件必須設(shè)置width和height才能顯示。如:<image style="widht:100px;height:100px;" src="http://xxx.png"></image>我想用ios和android寫一個圖片組件,在圖片加載成功后根據(jù)圖片實際大小來設(shè)置組件的width和height,但是不起作用??吹接幸粋€setNeedsLayout方法,調(diào)用了也沒有效果。
weex自定義圖片組件如何異步設(shè)置圖片寬高
有只小跳蛙
2018-07-06 11:22:53