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.
@@ -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, onActiveIndexChange: (swiper) => {
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, onActiveIndexChange: (swiper) => {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",