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 +7 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +7 -6
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/Hashtag/index.js +3 -2
- package/es/materials/sxp/template/components/Scroll.d.ts +0 -1
- package/es/materials/sxp/template/components/Scroll.js +2 -2
- package/lib/core/components/SxpPageRender/Hashtag/index.js +3 -2
- package/lib/materials/sxp/template/components/Scroll.d.ts +0 -1
- package/lib/materials/sxp/template/components/Scroll.js +2 -2
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -9183,11 +9183,11 @@
|
|
9183
9183
|
* @Author: binruan@chatlabs.com
|
9184
9184
|
* @Date: 2024-03-20 10:27:32
|
9185
9185
|
* @LastEditors: binruan@chatlabs.com
|
9186
|
-
* @LastEditTime: 2024-10-17
|
9186
|
+
* @LastEditTime: 2024-10-17 18:02:56
|
9187
9187
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Scroll.tsx
|
9188
9188
|
*
|
9189
9189
|
*/
|
9190
|
-
const Scroll = ({ children, isPadding = true, style, enableSlideActive = false
|
9190
|
+
const Scroll = ({ children, isPadding = true, style, enableSlideActive = false }) => {
|
9191
9191
|
const ref = React.useRef();
|
9192
9192
|
const { popupDetailData } = useSxpDataSource();
|
9193
9193
|
React.useEffect(() => {
|
@@ -9195,7 +9195,7 @@
|
|
9195
9195
|
if (enableSlideActive)
|
9196
9196
|
(_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);
|
9197
9197
|
}, [popupDetailData, enableSlideActive]);
|
9198
|
-
return (React.createElement(Swiper, { ref: ref, direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: Object.assign(
|
9198
|
+
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));
|
9199
9199
|
};
|
9200
9200
|
var Scroll$1 = React.memo(Scroll);
|
9201
9201
|
|
@@ -16061,7 +16061,7 @@ Made in Italy` })));
|
|
16061
16061
|
* @Author: binruan@chatlabs.com
|
16062
16062
|
* @Date: 2024-01-15 19:03:09
|
16063
16063
|
* @LastEditors: binruan@chatlabs.com
|
16064
|
-
* @LastEditTime: 2024-10-17
|
16064
|
+
* @LastEditTime: 2024-10-17 18:02:31
|
16065
16065
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
|
16066
16066
|
*
|
16067
16067
|
*/
|
@@ -16099,9 +16099,10 @@ Made in Italy` })));
|
|
16099
16099
|
return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
|
16100
16100
|
}, [isShowMore, tags]);
|
16101
16101
|
return (React.createElement("div", { className: 'clc-sxp-bottom-hashtag', style: {
|
16102
|
-
marginTop: `${(_a = hashTagStyle === null || hashTagStyle === void 0 ? void 0 : hashTagStyle.marginTop) !== null && _a !== void 0 ? _a : 16}px
|
16102
|
+
marginTop: `${(_a = hashTagStyle === null || hashTagStyle === void 0 ? void 0 : hashTagStyle.marginTop) !== null && _a !== void 0 ? _a : 16}px`,
|
16103
|
+
width: hashTagRightMargin
|
16103
16104
|
} },
|
16104
|
-
React.createElement(Scroll$1,
|
16105
|
+
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 },
|
16105
16106
|
React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
|
16106
16107
|
};
|
16107
16108
|
var Hashtag$1 = React.memo(Hashtag);
|