diff --git a/packages/taro-components-react/src/components/swiper/index.tsx b/packages/taro-components-react/src/components/swiper/index.tsx index 48eed57f7b7c..0043ecb15c21 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 0da251e53d48..c56b9a88ffd0 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) {