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.js CHANGED
@@ -9168,11 +9168,11 @@ var FormatImage$1 = memo(FormatImage);
9168
9168
  * @Author: binruan@chatlabs.com
9169
9169
  * @Date: 2024-03-20 10:27:32
9170
9170
  * @LastEditors: binruan@chatlabs.com
9171
- * @LastEditTime: 2024-10-17 17:05:11
9171
+ * @LastEditTime: 2024-10-17 18:02:56
9172
9172
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Scroll.tsx
9173
9173
  *
9174
9174
  */
9175
- const Scroll = ({ children, isPadding = true, style, enableSlideActive = false, width }) => {
9175
+ const Scroll = ({ children, isPadding = true, style, enableSlideActive = false }) => {
9176
9176
  const ref = useRef();
9177
9177
  const { popupDetailData } = useSxpDataSource();
9178
9178
  useEffect(() => {
@@ -9180,7 +9180,7 @@ const Scroll = ({ children, isPadding = true, style, enableSlideActive = false,
9180
9180
  if (enableSlideActive)
9181
9181
  (_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);
9182
9182
  }, [popupDetailData, enableSlideActive]);
9183
- 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));
9183
+ 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));
9184
9184
  };
9185
9185
  var Scroll$1 = memo(Scroll);
9186
9186
 
@@ -16046,7 +16046,7 @@ var PictureGroup$3 = memo(PictureGroup$2);
16046
16046
  * @Author: binruan@chatlabs.com
16047
16047
  * @Date: 2024-01-15 19:03:09
16048
16048
  * @LastEditors: binruan@chatlabs.com
16049
- * @LastEditTime: 2024-10-17 17:00:33
16049
+ * @LastEditTime: 2024-10-17 18:02:31
16050
16050
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
16051
16051
  *
16052
16052
  */
@@ -16084,9 +16084,10 @@ const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle, hashTagRigh
16084
16084
  return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
16085
16085
  }, [isShowMore, tags]);
16086
16086
  return (React.createElement("div", { className: 'clc-sxp-bottom-hashtag', style: {
16087
- marginTop: `${(_a = hashTagStyle === null || hashTagStyle === void 0 ? void 0 : hashTagStyle.marginTop) !== null && _a !== void 0 ? _a : 16}px`
16087
+ marginTop: `${(_a = hashTagStyle === null || hashTagStyle === void 0 ? void 0 : hashTagStyle.marginTop) !== null && _a !== void 0 ? _a : 16}px`,
16088
+ width: hashTagRightMargin
16088
16089
  } },
16089
- 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 },
16090
+ 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 },
16090
16091
  React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
16091
16092
  };
16092
16093
  var Hashtag$1 = memo(Hashtag);