1 | import { ComponentType } from 'react'
|
2 | import { StandardProps } from './common'
|
3 | interface StickyHeaderProps extends StandardProps {
|
4 | /**
|
5 | * 吸顶时与顶部的距(px)
|
6 | * @supported weapp
|
7 | * @default 0
|
8 | */
|
9 | offsetTop?: number
|
10 | /**
|
11 | * 长度为 4 的数组,按 top、right、bottom、left 顺序指定内边距
|
12 | * @supported weapp
|
13 | * @default [0, 0, 0, 0]
|
14 | */
|
15 | padding?: [number, number, number, number]
|
16 | }
|
17 |
|
18 | /**
|
19 | * 吸顶布局容器,仅支持作为 scroll-view 自定义模式下的直接子节点或 sticky-section 组件直接子节点。仅 Skyline 支持。
|
20 | * @classification skyline
|
21 | * @supported weapp, harmony
|
22 | * @see https://developers.weixin.qq.com/miniprogram/dev/component/sticky-header.html
|
23 | */
|
24 | declare const StickyHeader: ComponentType<StickyHeaderProps>
|
25 | export { StickyHeader, StickyHeaderProps }
|