Skip to content

Commit da2a3c2

Browse files
Boomkaajarmywang
andauthored
fix(PullDownRefresh): 修复配置scroll-into-view不生效问题 (#3633)
* fix: 修复配置scroll-into-view不生效问题 #2387 * fix: 修复pull-down-refresh单测报错 --------- Co-authored-by: jarmywang <awangjianjun9@gmail.com>
1 parent ff5a22b commit da2a3c2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/pull-down-refresh/pull-down-refresh.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index';
1+
import { RelationsOptions, SuperComponent, wxComponent } from '../common/src/index';
22
import config from '../common/config';
33
import props from './props';
4-
import { unitConvert, systemInfo, getRect } from '../common/utils';
4+
import { getRect, systemInfo, unitConvert } from '../common/utils';
5+
import { canUseProxyScrollView } from '../common/version';
56

67
const { prefix } = config;
78
const name = `${prefix}-pull-down-refresh`;
@@ -26,6 +27,8 @@ export default class PullDownRefresh extends SuperComponent {
2627

2728
externalClasses = [`${prefix}-class`, `${prefix}-class-loading`, `${prefix}-class-text`, `${prefix}-class-indicator`];
2829

30+
behaviors = canUseProxyScrollView() ? ['wx://proxy-scroll-view'] : [];
31+
2932
options = {
3033
multipleSlots: true,
3134
pureDataPattern: /^_/,

0 commit comments

Comments
 (0)