pb-sxp-ui 1.0.54 → 1.0.55
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 +41 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +41 -40
- 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 +41 -40
- 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/index.js +5 -0
- package/lib/core/components/SxpPageRender/index.js +5 -0
- package/package.json +1 -1
@@ -21,6 +21,7 @@ import './index.less';
|
|
21
21
|
import { useEventReport } from '../../../core/hooks/useEventReport';
|
22
22
|
import withBindDataSource from '../../../core/hoc/withBindDataSource';
|
23
23
|
import { getFeUserId } from '../../../core/utils/localStore';
|
24
|
+
import Tagbar from './Tagbar';
|
24
25
|
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
|
25
26
|
var _a, _b, _c, _d, _e, _f, _g;
|
26
27
|
const { schema } = useEditor();
|
@@ -169,6 +170,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
169
170
|
if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
|
170
171
|
minusHeight += 45;
|
171
172
|
}
|
173
|
+
if (tagList.length > 0) {
|
174
|
+
minusHeight += 45;
|
175
|
+
}
|
172
176
|
return containerHeight - minusHeight;
|
173
177
|
}, [globalConfig, containerHeight, tagList]);
|
174
178
|
const renderLogo = useMemo(() => {
|
@@ -394,6 +398,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
394
398
|
setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
|
395
399
|
} })),
|
396
400
|
renderLogo,
|
401
|
+
React.createElement(Tagbar, { tagList: tagList, setActiveIndex: setActiveIndex }),
|
397
402
|
isShowFingerTip ? React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon }) : null,
|
398
403
|
React.createElement(Swiper, { ref: swiperRef, onSlideChange: () => {
|
399
404
|
swiperRef.current.swiper.allowTouchMove = false;
|
@@ -24,6 +24,7 @@ require("./index.less");
|
|
24
24
|
const useEventReport_1 = require("../../../core/hooks/useEventReport");
|
25
25
|
const withBindDataSource_1 = tslib_1.__importDefault(require("../../../core/hoc/withBindDataSource"));
|
26
26
|
const localStore_1 = require("../../../core/utils/localStore");
|
27
|
+
const Tagbar_1 = tslib_1.__importDefault(require("./Tagbar"));
|
27
28
|
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
|
28
29
|
var _a, _b, _c, _d, _e, _f, _g;
|
29
30
|
const { schema } = (0, hooks_1.useEditor)();
|
@@ -172,6 +173,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
172
173
|
if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
|
173
174
|
minusHeight += 45;
|
174
175
|
}
|
176
|
+
if (tagList.length > 0) {
|
177
|
+
minusHeight += 45;
|
178
|
+
}
|
175
179
|
return containerHeight - minusHeight;
|
176
180
|
}, [globalConfig, containerHeight, tagList]);
|
177
181
|
const renderLogo = (0, react_1.useMemo)(() => {
|
@@ -397,6 +401,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
397
401
|
setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
|
398
402
|
} })),
|
399
403
|
renderLogo,
|
404
|
+
react_1.default.createElement(Tagbar_1.default, { tagList: tagList, setActiveIndex: setActiveIndex }),
|
400
405
|
isShowFingerTip ? react_1.default.createElement(FingerSwipeTip_1.default, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon }) : null,
|
401
406
|
react_1.default.createElement(react_2.Swiper, { ref: swiperRef, onSlideChange: () => {
|
402
407
|
swiperRef.current.swiper.allowTouchMove = false;
|