pb-sxp-ui 1.15.43 → 1.15.44

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
@@ -18248,8 +18248,9 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
18248
18248
  };
18249
18249
  });
18250
18250
  React.useEffect(() => {
18251
+ let timerId;
18251
18252
  if (isLoad && isActive && isDiyH5) {
18252
- setTimeout(() => {
18253
+ timerId = setTimeout(() => {
18253
18254
  var _a, _b, _c, _d, _e, _f;
18254
18255
  if (!loopPlayRef.current)
18255
18256
  return;
@@ -18262,6 +18263,10 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
18262
18263
  }
18263
18264
  }, 3000);
18264
18265
  }
18266
+ return () => {
18267
+ if (timerId)
18268
+ clearTimeout(timerId);
18269
+ };
18265
18270
  }, [isLoad, isActive, isDiyH5, data, index, swiperRef]);
18266
18271
  React.useEffect(() => {
18267
18272
  if (isLoad && isActive) {