| Web | 微信小程序 | Android | iOS | HarmonyOS |
|---|---|---|---|---|
| x | 4.41 | x | x | x |
| 名称 | 类型 | 兼容性 | 描述 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| padding | Array | (Array) 长度为 4 的数组,按 top、right、bottom、left 顺序指定内边距 | ||||||||||
| type | string | (string) 类型,默认为定高模式 | ||||||||||
| ||||||||||||
| list | Array | (Array) 需要用于渲染的列表 | ||||||||||
| child-count | Array | (Array) 完整列表的长度,如果不传则取 list 的长度作为其值 | ||||||||||
| child-height | Array | (Array) 列表项的高度,当 type 为 static 时必须传入 | ||||||||||
| @itembuild | eventhandle | (eventhandle) 列表项创建时触发,event.detail = {index},index 即被创建的列表项序号 | ||||||||||
| @itemdispose | eventhandle | (eventhandle) 列表项回收时触发,event.detail = {index},index 即被回收的列表项序号 | ||||||||||