@tarojs/components
Version:
26 lines (24 loc) • 847 B
TypeScript
import { ComponentType } from 'react'
import { StandardProps } from './common'
interface StickyHeaderProps extends StandardProps {
/**
* 吸顶时与顶部的距(px)
* @supported weapp
* @default 0
*/
offsetTop?: number
/**
* 长度为 4 的数组,按 top、right、bottom、left 顺序指定内边距
* @supported weapp
* @default [0, 0, 0, 0]
*/
padding?: [number, number, number, number]
}
/**
* 吸顶布局容器,仅支持作为 scroll-view 自定义模式下的直接子节点或 sticky-section 组件直接子节点。仅 Skyline 支持。
* @classification skyline
* @supported weapp, harmony
* @see https://developers.weixin.qq.com/miniprogram/dev/component/sticky-header.html
*/
declare const StickyHeader: ComponentType<StickyHeaderProps>
export { StickyHeader, StickyHeaderProps }