From 5885b4e260d9fe1d1c615df9372a6de23dc9fc92 Mon Sep 17 00:00:00 2001 From: Boomkaa <173308582@qq.com> Date: Thu, 8 May 2025 15:04:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE?= =?UTF-8?q?scroll-into-view=E4=B8=8D=E7=94=9F=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #2387 --- src/pull-down-refresh/pull-down-refresh.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pull-down-refresh/pull-down-refresh.ts b/src/pull-down-refresh/pull-down-refresh.ts index f09588e55..c39c0a969 100644 --- a/src/pull-down-refresh/pull-down-refresh.ts +++ b/src/pull-down-refresh/pull-down-refresh.ts @@ -26,6 +26,8 @@ export default class PullDownRefresh extends SuperComponent { externalClasses = [`${prefix}-class`, `${prefix}-class-loading`, `${prefix}-class-text`, `${prefix}-class-indicator`]; + behaviors = ['wx://proxy-scroll-view']; + options = { multipleSlots: true, pureDataPattern: /^_/, From 16fe76513fa3a1a6251bd15f6f4b0d4edb009c3c Mon Sep 17 00:00:00 2001 From: jarmywang Date: Fri, 9 May 2025 10:08:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dpull-down-refresh?= =?UTF-8?q?=E5=8D=95=E6=B5=8B=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pull-down-refresh/pull-down-refresh.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pull-down-refresh/pull-down-refresh.ts b/src/pull-down-refresh/pull-down-refresh.ts index c39c0a969..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,7 +27,7 @@ export default class PullDownRefresh extends SuperComponent { externalClasses = [`${prefix}-class`, `${prefix}-class-loading`, `${prefix}-class-text`, `${prefix}-class-indicator`]; - behaviors = ['wx://proxy-scroll-view']; + behaviors = canUseProxyScrollView() ? ['wx://proxy-scroll-view'] : []; options = { multipleSlots: true,