pb-sxp-ui 1.0.39 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +10 -2
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/index.js +6 -1
- package/lib/core/components/SxpPageRender/index.js +6 -1
- package/package.json +1 -1
@@ -349,7 +349,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
349
349
|
} })),
|
350
350
|
renderLogo,
|
351
351
|
isShowFingerTip ? React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon }) : null,
|
352
|
-
React.createElement(Swiper, { ref: swiperRef,
|
352
|
+
React.createElement(Swiper, { ref: swiperRef, onSlideChange: () => {
|
353
|
+
swiperRef.current.swiper.allowTouchMove = false;
|
354
|
+
setTimeout(() => {
|
355
|
+
swiperRef.current.swiper.allowTouchMove = true;
|
356
|
+
}, 500);
|
357
|
+
}, onActiveIndexChange: (swiper) => {
|
353
358
|
setActiveIndex(swiper.activeIndex);
|
354
359
|
if (openHashtag)
|
355
360
|
return;
|
@@ -352,7 +352,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
352
352
|
} })),
|
353
353
|
renderLogo,
|
354
354
|
isShowFingerTip ? react_1.default.createElement(FingerSwipeTip_1.default, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon }) : null,
|
355
|
-
react_1.default.createElement(react_2.Swiper, { ref: swiperRef,
|
355
|
+
react_1.default.createElement(react_2.Swiper, { ref: swiperRef, onSlideChange: () => {
|
356
|
+
swiperRef.current.swiper.allowTouchMove = false;
|
357
|
+
setTimeout(() => {
|
358
|
+
swiperRef.current.swiper.allowTouchMove = true;
|
359
|
+
}, 500);
|
360
|
+
}, onActiveIndexChange: (swiper) => {
|
356
361
|
setActiveIndex(swiper.activeIndex);
|
357
362
|
if (openHashtag)
|
358
363
|
return;
|