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/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-13 15:06:44
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;
@@ -10416,7 +10418,6 @@ Made in Italy` })));
10416
10418
  commodityStyles: {
10417
10419
  price: {
10418
10420
  color: '#000',
10419
- fontWeight: 'bold',
10420
10421
  fontSize: 13
10421
10422
  },
10422
10423
  title: {
@@ -10866,7 +10867,7 @@ Made in Italy` })));
10866
10867
  * @Author: binruan@chatlabs.com
10867
10868
  * @Date: 2024-03-20 10:27:31
10868
10869
  * @LastEditors: binruan@chatlabs.com
10869
- * @LastEditTime: 2024-07-26 17:33:03
10870
+ * @LastEditTime: 2024-09-18 10:52:20
10870
10871
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityList\material.tsx
10871
10872
  *
10872
10873
  */
@@ -10889,7 +10890,6 @@ Made in Italy` })));
10889
10890
  commodityStyles: {
10890
10891
  price: {
10891
10892
  color: '#000',
10892
- fontWeight: 'bold',
10893
10893
  fontSize: 14
10894
10894
  },
10895
10895
  title: {
@@ -13803,7 +13803,8 @@ Made in Italy` })));
13803
13803
  const priceText = getPriceText({
13804
13804
  product: rec === null || rec === void 0 ? void 0 : rec.product,
13805
13805
  enableFormattedPrice: (_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice,
13806
- globalConfig
13806
+ globalConfig,
13807
+ isHiddenDef: true
13807
13808
  });
13808
13809
  React.useEffect(() => {
13809
13810
  if (imgDom.current === null || src === '') {
@@ -14119,7 +14120,8 @@ Made in Italy` })));
14119
14120
  const priceText = getPriceText({
14120
14121
  product: rec === null || rec === void 0 ? void 0 : rec.product,
14121
14122
  enableFormattedPrice: (_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice,
14122
- globalConfig
14123
+ globalConfig,
14124
+ isHiddenDef: true
14123
14125
  });
14124
14126
  // useEffect(() => {
14125
14127
  // if (imgDom.current === null || src === '') {
@@ -14428,7 +14430,7 @@ Made in Italy` })));
14428
14430
  * @Author: binruan@chatlabs.com
14429
14431
  * @Date: 2023-07-28 18:29:57
14430
14432
  * @LastEditors: binruan@chatlabs.com
14431
- * @LastEditTime: 2024-07-04 18:38:10
14433
+ * @LastEditTime: 2024-09-18 10:48:44
14432
14434
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
14433
14435
  *
14434
14436
  */
@@ -14468,7 +14470,6 @@ Made in Italy` })));
14468
14470
  },
14469
14471
  price: {
14470
14472
  fontSize: 12,
14471
- fontWeight: 'bold',
14472
14473
  color: '#000'
14473
14474
  }
14474
14475
  },