UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

25 lines (24 loc) 696 B
/** * * 下拉刷新 */ import type { PropsWithChildren } from 'react'; import React from 'react'; export interface PullRefreshProps extends PropsWithChildren { disabled?: boolean; pullingText?: string; loosingText?: string; loadingText?: string; successText?: string; onRefresh?: () => void; loading?: boolean; successDuration?: number; loadingDuration?: number; } type statusText = 'normal' | 'pulling' | 'loosing' | 'success' | 'loading'; export interface PullRefreshState { status: statusText; offsetY: number; } declare const PullRefresh: React.ForwardRefExoticComponent<PullRefreshProps & React.RefAttributes<{}>>; export default PullRefresh;