Skip to content

Commit cf907bb

Browse files
authored
fix(pulltorefresh): 增加 catchMove 属性,用于显示控制 (#3311)
1 parent 77de439 commit cf907bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/packages/pulltorefresh/pulltorefresh.taro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export const PullToRefresh: FunctionComponent<
154154
<View
155155
className={classes}
156156
style={props.style}
157-
catchMove
157+
catchMove={props.catchMove}
158158
onTouchStart={handleTouchStart}
159159
onTouchMove={handleTouchMove}
160160
onTouchEnd={handleTouchEnd}

src/types/spec/pulltorefresh/taro.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ import { BasePullToRefresh } from './base'
22

33
export interface TaroPullToRefreshProps extends BasePullToRefresh {
44
scrollTop: number
5+
catchMove: boolean
56
}

0 commit comments

Comments
 (0)