pb-sxp-ui 1.5.1 → 1.5.2
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 +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -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 +8 -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/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/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/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -9198,7 +9198,7 @@
|
|
9198
9198
|
* @Author: binruan@chatlabs.com
|
9199
9199
|
* @Date: 2024-03-20 14:56:16
|
9200
9200
|
* @LastEditors: binruan@chatlabs.com
|
9201
|
-
* @LastEditTime: 2024-09-
|
9201
|
+
* @LastEditTime: 2024-09-14 10:07:47
|
9202
9202
|
* @FilePath: \pb-sxp-ui\src\core\utils\materials.ts
|
9203
9203
|
*
|
9204
9204
|
*/
|
@@ -9225,8 +9225,10 @@
|
|
9225
9225
|
return file && file.length > 0 ? (_a = file[0]) === null || _a === void 0 ? void 0 : _a.url : null;
|
9226
9226
|
}
|
9227
9227
|
};
|
9228
|
-
const getPriceText = ({ product, enableFormattedPrice, globalConfig }) => {
|
9228
|
+
const getPriceText = ({ product, enableFormattedPrice, globalConfig, isHiddenDef }) => {
|
9229
9229
|
var _a, _b, _c, _d, _e;
|
9230
|
+
if ((!(product === null || product === void 0 ? void 0 : product.currency) || !(product === null || product === void 0 ? void 0 : product.price)) && isHiddenDef)
|
9231
|
+
return null;
|
9230
9232
|
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;
|
9231
9233
|
let text = '';
|
9232
9234
|
let priceSymbol = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.priceSymbol;
|
@@ -13803,7 +13805,8 @@ Made in Italy` })));
|
|
13803
13805
|
const priceText = getPriceText({
|
13804
13806
|
product: rec === null || rec === void 0 ? void 0 : rec.product,
|
13805
13807
|
enableFormattedPrice: (_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice,
|
13806
|
-
globalConfig
|
13808
|
+
globalConfig,
|
13809
|
+
isHiddenDef: true
|
13807
13810
|
});
|
13808
13811
|
React.useEffect(() => {
|
13809
13812
|
if (imgDom.current === null || src === '') {
|
@@ -14119,7 +14122,8 @@ Made in Italy` })));
|
|
14119
14122
|
const priceText = getPriceText({
|
14120
14123
|
product: rec === null || rec === void 0 ? void 0 : rec.product,
|
14121
14124
|
enableFormattedPrice: (_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice,
|
14122
|
-
globalConfig
|
14125
|
+
globalConfig,
|
14126
|
+
isHiddenDef: true
|
14123
14127
|
});
|
14124
14128
|
// useEffect(() => {
|
14125
14129
|
// if (imgDom.current === null || src === '') {
|