pb-sxp-ui 1.15.38 → 1.15.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 +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -4
- 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 +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +6 -4
- 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/ExpandableText.js +3 -2
- package/es/materials/sxp/popup/CommodityDetail/index.js +1 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/lib/core/components/SxpPageRender/ExpandableText.js +3 -2
- package/lib/materials/sxp/popup/CommodityDetail/index.js +1 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -10201,10 +10201,12 @@
|
|
10201
10201
|
if (!realRef.current || !clampRef.current || !isPost || !text || isShowMore)
|
10202
10202
|
return;
|
10203
10203
|
requestAnimationFrame(() => {
|
10204
|
+
realRef.current.style.position = 'relative';
|
10204
10205
|
const realHeight = realRef.current.getBoundingClientRect().height;
|
10205
10206
|
const clampHeight = clampRef.current.getBoundingClientRect().height;
|
10206
10207
|
const isActuallyClamped = realHeight > clampHeight + 1;
|
10207
10208
|
setIsShow(isActuallyClamped);
|
10209
|
+
realRef.current.style.position = 'absolute';
|
10208
10210
|
});
|
10209
10211
|
}, [isPost, text, isShowMore]);
|
10210
10212
|
// 增强版监听(同时监听字体加载)
|
@@ -10239,8 +10241,8 @@
|
|
10239
10241
|
visibility: 'hidden',
|
10240
10242
|
opacity: 0,
|
10241
10243
|
clipPath: 'inset(100%)',
|
10242
|
-
transform: 'translateX(-9999px)'
|
10243
|
-
position: 'absolute'
|
10244
|
+
transform: 'translateX(-9999px)'
|
10245
|
+
// position: 'absolute'
|
10244
10246
|
}, dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
|
10245
10247
|
text && isPost && isShow && (React.createElement("button", { "aria-label": isShowMore ? unfoldText || 'show less' : foldText || 'show more', style: { textDecoration: 'underline', cursor: 'pointer' }, onClick: onClick !== null && onClick !== void 0 ? onClick : handleClick, dangerouslySetInnerHTML: {
|
10246
10248
|
__html: setFontForText(isShowMore ? unfoldText || 'show less' : foldText || 'show more', textStyle)
|
@@ -10555,7 +10557,7 @@
|
|
10555
10557
|
React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
|
10556
10558
|
renderBtn(),
|
10557
10559
|
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
|
10558
|
-
React.createElement("div", { style: { paddingBottom: '80px' } }, renderContent({ isPost: false })),
|
10560
|
+
React.createElement("div", { style: { paddingTop: '34px', paddingBottom: '80px' } }, renderContent({ isPost: false })),
|
10559
10561
|
renderBtn()),
|
10560
10562
|
React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
|
10561
10563
|
React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
|
@@ -11516,7 +11518,7 @@ Made in Italy` })));
|
|
11516
11518
|
} }))),
|
11517
11519
|
productInfoText({ isPost }))),
|
11518
11520
|
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
|
11519
|
-
React.createElement("div", { style: { paddingTop: '
|
11521
|
+
React.createElement("div", { style: { paddingTop: '34px' } }, productInfoText({ isPost: false }))),
|
11520
11522
|
React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
|
11521
11523
|
React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
|
11522
11524
|
React.createElement("iframe", { src: iframeUrl, style: {
|