UNPKG

568 BTypeScriptView Raw
1import { ComponentType } from 'react'
2
3interface Indicator {
4 activate?: React.ReactNode
5 deactivate?: React.ReactNode
6 release?: React.ReactNode
7 finish?: React.ReactNode
8}
9
10interface PullToRefreshProps {
11 refreshing?: boolean
12 distanceToRefresh: number
13 onRefresh: () => void
14 indicator: Indicator
15 prefixCls?: string
16 className?: string
17 style?: React.CSSProperties
18 damping: number
19}
20
21/** 下拉组件
22 * @ignore
23 */
24declare const PullToRefresh: ComponentType<PullToRefreshProps>
25
26export { PullToRefresh, PullToRefreshProps }