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 CHANGED
@@ -12585,7 +12585,7 @@ const Nudge = ({ nudge }) => {
12585
12585
  * @Author: binruan@chatlabs.com
12586
12586
  * @Date: 2024-01-15 19:03:09
12587
12587
  * @LastEditors: binruan@chatlabs.com
12588
- * @LastEditTime: 2024-04-18 19:27:03
12588
+ * @LastEditTime: 2024-04-25 17:03:41
12589
12589
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12590
12590
  *
12591
12591
  */
@@ -12946,7 +12946,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12946
12946
  } })),
12947
12947
  renderLogo,
12948
12948
  isShowFingerTip ? React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon }) : null,
12949
- React.createElement(Swiper, { ref: swiperRef, onActiveIndexChange: (swiper) => {
12949
+ React.createElement(Swiper, { ref: swiperRef, onSlideChange: () => {
12950
+ swiperRef.current.swiper.allowTouchMove = false;
12951
+ setTimeout(() => {
12952
+ swiperRef.current.swiper.allowTouchMove = true;
12953
+ }, 500);
12954
+ }, onActiveIndexChange: (swiper) => {
12950
12955
  setActiveIndex(swiper.activeIndex);
12951
12956
  if (openHashtag)
12952
12957
  return;
@@ -12963,6 +12968,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12963
12968
  }
12964
12969
  }
12965
12970
  },
12971
+ // style={{
12972
+ // pointerEvents: canSwiper ? 'auto' : 'none'
12973
+ // }}
12966
12974
  // onReachEnd={() => {
12967
12975
  // // 由hashtaglist跳转过来时不执行下面的方法
12968
12976
  // if (waterFallData) return;