diff --git a/src/pull-down-refresh/pull-down-refresh.ts b/src/pull-down-refresh/pull-down-refresh.ts index f09588e55..b262b29b4 100644 --- a/src/pull-down-refresh/pull-down-refresh.ts +++ b/src/pull-down-refresh/pull-down-refresh.ts @@ -1,7 +1,8 @@ -import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index'; +import { RelationsOptions, SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import props from './props'; -import { unitConvert, systemInfo, getRect } from '../common/utils'; +import { getRect, systemInfo, unitConvert } from '../common/utils'; +import { canUseProxyScrollView } from '../common/version'; const { prefix } = config; const name = `${prefix}-pull-down-refresh`; @@ -26,6 +27,8 @@ export default class PullDownRefresh extends SuperComponent { externalClasses = [`${prefix}-class`, `${prefix}-class-loading`, `${prefix}-class-text`, `${prefix}-class-indicator`]; + behaviors = canUseProxyScrollView() ? ['wx://proxy-scroll-view'] : []; + options = { multipleSlots: true, pureDataPattern: /^_/,