pb-sxp-ui 1.6.4 → 1.6.5

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
@@ -9190,11 +9190,11 @@ var FormatImage$1 = React.memo(FormatImage);
9190
9190
  * @Author: binruan@chatlabs.com
9191
9191
  * @Date: 2024-03-20 10:27:32
9192
9192
  * @LastEditors: binruan@chatlabs.com
9193
- * @LastEditTime: 2024-10-17 17:05:11
9193
+ * @LastEditTime: 2024-10-17 18:02:56
9194
9194
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Scroll.tsx
9195
9195
  *
9196
9196
  */
9197
- const Scroll = ({ children, isPadding = true, style, enableSlideActive = false, width }) => {
9197
+ const Scroll = ({ children, isPadding = true, style, enableSlideActive = false }) => {
9198
9198
  const ref = React.useRef();
9199
9199
  const { popupDetailData } = useSxpDataSource();
9200
9200
  React.useEffect(() => {
@@ -9202,7 +9202,7 @@ const Scroll = ({ children, isPadding = true, style, enableSlideActive = false,
9202
9202
  if (enableSlideActive)
9203
9203
  (_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.swiper.slideTo((_b = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.multiCheckIndex) !== null && _b !== void 0 ? _b : 0);
9204
9204
  }, [popupDetailData, enableSlideActive]);
9205
- return (React.createElement(Swiper, { ref: ref, direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: Object.assign(Object.assign({ padding: isPadding ? '0 12px 0 20px' : 0 }, style), (width && { width })) }, children));
9205
+ return (React.createElement(Swiper, { ref: ref, direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: Object.assign({ padding: isPadding ? '0 12px 0 20px' : 0 }, style) }, children));
9206
9206
  };
9207
9207
  var Scroll$1 = React.memo(Scroll);
9208
9208
 
@@ -16068,7 +16068,7 @@ var PictureGroup$3 = React.memo(PictureGroup$2);
16068
16068
  * @Author: binruan@chatlabs.com
16069
16069
  * @Date: 2024-01-15 19:03:09
16070
16070
  * @LastEditors: binruan@chatlabs.com
16071
- * @LastEditTime: 2024-10-17 17:00:33
16071
+ * @LastEditTime: 2024-10-17 18:02:31
16072
16072
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
16073
16073
  *
16074
16074
  */
@@ -16106,9 +16106,10 @@ const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle, hashTagRigh
16106
16106
  return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
16107
16107
  }, [isShowMore, tags]);
16108
16108
  return (React.createElement("div", { className: 'clc-sxp-bottom-hashtag', style: {
16109
- marginTop: `${(_a = hashTagStyle === null || hashTagStyle === void 0 ? void 0 : hashTagStyle.marginTop) !== null && _a !== void 0 ? _a : 16}px`
16109
+ marginTop: `${(_a = hashTagStyle === null || hashTagStyle === void 0 ? void 0 : hashTagStyle.marginTop) !== null && _a !== void 0 ? _a : 16}px`,
16110
+ width: hashTagRightMargin
16110
16111
  } },
16111
- React.createElement(Scroll$1, { width: hashTagRightMargin }, tags === null || tags === void 0 ? void 0 : tags.map((item, index) => (React.createElement(SwiperSlide, { key: index, hidden: !isShowMore ? index >= 6 : false, className: 'clc-sxp-bottom-hashtag-item', style: hashTagStyle, onClick: () => handleClickTag(item), tag: 'button', "aria-label": item },
16112
+ React.createElement(Scroll$1, null, tags === null || tags === void 0 ? void 0 : tags.map((item, index) => (React.createElement(SwiperSlide, { key: index, hidden: !isShowMore ? index >= 6 : false, className: 'clc-sxp-bottom-hashtag-item', style: hashTagStyle, onClick: () => handleClickTag(item), tag: 'button', "aria-label": item },
16112
16113
  React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
16113
16114
  };
16114
16115
  var Hashtag$1 = React.memo(Hashtag);