StickySection
吸顶布局容器,仅支持作为 scroll-view 自定义模式下的直接子节点。仅 Skyline 支持。
支持情况:

类型
ComponentType<StickySectionProps>
StickySectionProps
| 参数 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| pushPinnedHeader | boolean | true | 否 | 吸顶元素重叠时是否继续上推 |
| padding | [number, number, number, number] | [0, 0, 0, 0] | 否 | 长度为 4 的数组,按 top、right、bottom、left 顺序指定内边距 |
API 支持度
| API | 微信小程序 | H5 | React Native | Harmony |
|---|---|---|---|---|
| StickySectionProps.pushPinnedHeader | ✔️ | |||
| StickySectionProps.padding | ✔️ |