UNPKG

817 BTypeScriptView Raw
1import { ComponentType } from 'react'
2import { StandardProps } from './common'
3interface StickySectionProps extends StandardProps {
4 /** 吸顶元素重叠时是否继续上推
5 * @supported weapp
6 * @default true
7 */
8 pushPinnedHeader?: boolean
9 /**
10 * 长度为 4 的数组,按 top、right、bottom、left 顺序指定内边距
11 * @supported weapp
12 * @default [0, 0, 0, 0]
13 */
14 padding?: [number, number, number, number]
15}
16/**
17 * 吸顶布局容器,仅支持作为 scroll-view 自定义模式下的直接子节点。仅 Skyline 支持。
18 * @classification skyline
19 * @supported weapp, harmony
20 * @see https://developers.weixin.qq.com/miniprogram/dev/component/sticky-section.html
21 */
22declare const StickySection: ComponentType<StickySectionProps>
23export { StickySection, StickySectionProps }