width&height
width(value: Length)
height(value: Length)
设置组件自身的宽度,缺省时使用元素自身内容需要的宽度。若子组件的宽大于父组件的宽,则会画出父组件的范围。
说明
在TextInput组件中,width设置auto表示自适应文本宽度。.width('auto')
在AlphabetIndexer组件中,width设置auto表示自适应宽度最大索引项的宽度。
在Row、Column、RelativeContainer组件中,width、height设置auto表示自适应子组件。
size
size(value: SizeOptions)