From d288a4198cc1c7bcd9bd6c4232ea86a2e17f8ffc Mon Sep 17 00:00:00 2001 From: NobodyZheng <2821084381@qq.com> Date: Fri, 20 Sep 2024 15:24:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D4.0.5=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=B8=8BScrollView=E5=86=85=E5=B5=8CSwiper=E6=97=B6?= =?UTF-8?q?=EF=BC=8CSwiper=E6=BB=91=E5=8A=A8=E6=97=A0=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#16563)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-components-react/src/components/swiper/index.tsx | 1 + packages/taro-components/src/components/swiper/swiper.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/taro-components-react/src/components/swiper/index.tsx b/packages/taro-components-react/src/components/swiper/index.tsx index 48eed57f7b7..0043ecb15c2 100644 --- a/packages/taro-components-react/src/components/swiper/index.tsx +++ b/packages/taro-components-react/src/components/swiper/index.tsx @@ -186,6 +186,7 @@ class SwiperInner extends React.Component { speed: parseInt(String(duration), 10), observer: true, observeParents: true, + nested: true, loopAdditionalSlides, centeredSlides, ...effectsProps, diff --git a/packages/taro-components/src/components/swiper/swiper.tsx b/packages/taro-components/src/components/swiper/swiper.tsx index 0da251e53d4..c56b9a88ffd 100644 --- a/packages/taro-components/src/components/swiper/swiper.tsx +++ b/packages/taro-components/src/components/swiper/swiper.tsx @@ -324,6 +324,7 @@ export class Swiper implements ComponentInterface { observer: true, centeredSlides: centeredSlides, zoom: this.zoom, + nested: true, ...effectsProps, on: { changeTransitionEnd(e) {