pb-sxp-ui 1.5.1 → 1.5.3
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 +10 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +0 -4
- package/dist/index.js +10 -9
- 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 +10 -9
- 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/WaterFall/List.js +2 -1
- package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +2 -1
- package/es/core/utils/materials.d.ts +3 -2
- package/es/core/utils/materials.js +3 -1
- package/es/materials/sxp/HashTag/material.js +0 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/material.js +0 -1
- package/es/materials/sxp/popup/CommodityList/material.js +0 -1
- package/lib/core/components/SxpPageRender/WaterFall/List.js +2 -1
- package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +2 -1
- package/lib/core/utils/materials.d.ts +3 -2
- package/lib/core/utils/materials.js +3 -1
- package/lib/materials/sxp/HashTag/material.js +0 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/material.js +0 -1
- package/lib/materials/sxp/popup/CommodityList/material.js +0 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -544,7 +544,6 @@
|
|
544
544
|
}
|
545
545
|
.pb-commondityDiroNew-content-top-right-price {
|
546
546
|
font-size: 13px;
|
547
|
-
font-weight: bold;
|
548
547
|
}
|
549
548
|
.pb-commondityDiroNew-content-collection {
|
550
549
|
font-size: 13px;
|
@@ -621,7 +620,6 @@
|
|
621
620
|
}
|
622
621
|
.pb-commondityDiroNew-content-top-right-price {
|
623
622
|
font-size: 13px;
|
624
|
-
font-weight: bold;
|
625
623
|
}
|
626
624
|
.pb-commondityDiroNew-content-collection {
|
627
625
|
font-size: 13px;
|
@@ -964,7 +962,6 @@
|
|
964
962
|
.waterFallList-content-listItem-info-price {
|
965
963
|
font-size: 13px;
|
966
964
|
line-height: 20px;
|
967
|
-
font-weight: bold;
|
968
965
|
}
|
969
966
|
.waterFallList-bottom {
|
970
967
|
position: absolute;
|
@@ -1082,7 +1079,6 @@
|
|
1082
1079
|
.list-content-listItem-info-price {
|
1083
1080
|
font-size: 13px;
|
1084
1081
|
line-height: 20px;
|
1085
|
-
font-weight: bold;
|
1086
1082
|
}
|
1087
1083
|
.list-bottom {
|
1088
1084
|
position: absolute;
|
package/dist/index.js
CHANGED
@@ -9183,7 +9183,7 @@ var CommodityGroup$1 = memo(CommodityGroup);
|
|
9183
9183
|
* @Author: binruan@chatlabs.com
|
9184
9184
|
* @Date: 2024-03-20 14:56:16
|
9185
9185
|
* @LastEditors: binruan@chatlabs.com
|
9186
|
-
* @LastEditTime: 2024-09-
|
9186
|
+
* @LastEditTime: 2024-09-14 10:07:47
|
9187
9187
|
* @FilePath: \pb-sxp-ui\src\core\utils\materials.ts
|
9188
9188
|
*
|
9189
9189
|
*/
|
@@ -9210,8 +9210,10 @@ const getMediaValueByMode = (obj) => {
|
|
9210
9210
|
return file && file.length > 0 ? (_a = file[0]) === null || _a === void 0 ? void 0 : _a.url : null;
|
9211
9211
|
}
|
9212
9212
|
};
|
9213
|
-
const getPriceText = ({ product, enableFormattedPrice, globalConfig }) => {
|
9213
|
+
const getPriceText = ({ product, enableFormattedPrice, globalConfig, isHiddenDef }) => {
|
9214
9214
|
var _a, _b, _c, _d, _e;
|
9215
|
+
if ((!(product === null || product === void 0 ? void 0 : product.currency) || !(product === null || product === void 0 ? void 0 : product.price)) && isHiddenDef)
|
9216
|
+
return null;
|
9215
9217
|
let price = (product === null || product === void 0 ? void 0 : product.currency) && (product === null || product === void 0 ? void 0 : product.price) ? product === null || product === void 0 ? void 0 : product.price : 7000;
|
9216
9218
|
let text = '';
|
9217
9219
|
let priceSymbol = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.priceSymbol;
|
@@ -10401,7 +10403,6 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
|
|
10401
10403
|
commodityStyles: {
|
10402
10404
|
price: {
|
10403
10405
|
color: '#000',
|
10404
|
-
fontWeight: 'bold',
|
10405
10406
|
fontSize: 13
|
10406
10407
|
},
|
10407
10408
|
title: {
|
@@ -10851,7 +10852,7 @@ var interactionRender$a = [
|
|
10851
10852
|
* @Author: binruan@chatlabs.com
|
10852
10853
|
* @Date: 2024-03-20 10:27:31
|
10853
10854
|
* @LastEditors: binruan@chatlabs.com
|
10854
|
-
* @LastEditTime: 2024-
|
10855
|
+
* @LastEditTime: 2024-09-18 10:52:20
|
10855
10856
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityList\material.tsx
|
10856
10857
|
*
|
10857
10858
|
*/
|
@@ -10874,7 +10875,6 @@ const CommodityList = createMaterial(CommodityListComponent, {
|
|
10874
10875
|
commodityStyles: {
|
10875
10876
|
price: {
|
10876
10877
|
color: '#000',
|
10877
|
-
fontWeight: 'bold',
|
10878
10878
|
fontSize: 14
|
10879
10879
|
},
|
10880
10880
|
title: {
|
@@ -13788,7 +13788,8 @@ const WaterfallFlowItem$1 = (props) => {
|
|
13788
13788
|
const priceText = getPriceText({
|
13789
13789
|
product: rec === null || rec === void 0 ? void 0 : rec.product,
|
13790
13790
|
enableFormattedPrice: (_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice,
|
13791
|
-
globalConfig
|
13791
|
+
globalConfig,
|
13792
|
+
isHiddenDef: true
|
13792
13793
|
});
|
13793
13794
|
useEffect(() => {
|
13794
13795
|
if (imgDom.current === null || src === '') {
|
@@ -14104,7 +14105,8 @@ const WaterfallFlowItem = (props) => {
|
|
14104
14105
|
const priceText = getPriceText({
|
14105
14106
|
product: rec === null || rec === void 0 ? void 0 : rec.product,
|
14106
14107
|
enableFormattedPrice: (_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice,
|
14107
|
-
globalConfig
|
14108
|
+
globalConfig,
|
14109
|
+
isHiddenDef: true
|
14108
14110
|
});
|
14109
14111
|
// useEffect(() => {
|
14110
14112
|
// if (imgDom.current === null || src === '') {
|
@@ -14413,7 +14415,7 @@ var HashTagComponent = memo(HashTag$1);
|
|
14413
14415
|
* @Author: binruan@chatlabs.com
|
14414
14416
|
* @Date: 2023-07-28 18:29:57
|
14415
14417
|
* @LastEditors: binruan@chatlabs.com
|
14416
|
-
* @LastEditTime: 2024-
|
14418
|
+
* @LastEditTime: 2024-09-18 10:48:44
|
14417
14419
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
|
14418
14420
|
*
|
14419
14421
|
*/
|
@@ -14453,7 +14455,6 @@ const HashTag = createMaterial(HashTagComponent, {
|
|
14453
14455
|
},
|
14454
14456
|
price: {
|
14455
14457
|
fontSize: 12,
|
14456
|
-
fontWeight: 'bold',
|
14457
14458
|
color: '#000'
|
14458
14459
|
}
|
14459
14460
|
},
|