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 CHANGED
@@ -9205,7 +9205,7 @@ var CommodityGroup$1 = React.memo(CommodityGroup);
9205
9205
  * @Author: binruan@chatlabs.com
9206
9206
  * @Date: 2024-03-20 14:56:16
9207
9207
  * @LastEditors: binruan@chatlabs.com
9208
- * @LastEditTime: 2024-09-13 15:06:44
9208
+ * @LastEditTime: 2024-09-14 10:07:47
9209
9209
  * @FilePath: \pb-sxp-ui\src\core\utils\materials.ts
9210
9210
  *
9211
9211
  */
@@ -9232,8 +9232,10 @@ const getMediaValueByMode = (obj) => {
9232
9232
  return file && file.length > 0 ? (_a = file[0]) === null || _a === void 0 ? void 0 : _a.url : null;
9233
9233
  }
9234
9234
  };
9235
- const getPriceText = ({ product, enableFormattedPrice, globalConfig }) => {
9235
+ const getPriceText = ({ product, enableFormattedPrice, globalConfig, isHiddenDef }) => {
9236
9236
  var _a, _b, _c, _d, _e;
9237
+ if ((!(product === null || product === void 0 ? void 0 : product.currency) || !(product === null || product === void 0 ? void 0 : product.price)) && isHiddenDef)
9238
+ return null;
9237
9239
  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;
9238
9240
  let text = '';
9239
9241
  let priceSymbol = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.priceSymbol;
@@ -10423,7 +10425,6 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
10423
10425
  commodityStyles: {
10424
10426
  price: {
10425
10427
  color: '#000',
10426
- fontWeight: 'bold',
10427
10428
  fontSize: 13
10428
10429
  },
10429
10430
  title: {
@@ -10873,7 +10874,7 @@ var interactionRender$a = [
10873
10874
  * @Author: binruan@chatlabs.com
10874
10875
  * @Date: 2024-03-20 10:27:31
10875
10876
  * @LastEditors: binruan@chatlabs.com
10876
- * @LastEditTime: 2024-07-26 17:33:03
10877
+ * @LastEditTime: 2024-09-18 10:52:20
10877
10878
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityList\material.tsx
10878
10879
  *
10879
10880
  */
@@ -10896,7 +10897,6 @@ const CommodityList = createMaterial(CommodityListComponent, {
10896
10897
  commodityStyles: {
10897
10898
  price: {
10898
10899
  color: '#000',
10899
- fontWeight: 'bold',
10900
10900
  fontSize: 14
10901
10901
  },
10902
10902
  title: {
@@ -13810,7 +13810,8 @@ const WaterfallFlowItem$1 = (props) => {
13810
13810
  const priceText = getPriceText({
13811
13811
  product: rec === null || rec === void 0 ? void 0 : rec.product,
13812
13812
  enableFormattedPrice: (_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice,
13813
- globalConfig
13813
+ globalConfig,
13814
+ isHiddenDef: true
13814
13815
  });
13815
13816
  React.useEffect(() => {
13816
13817
  if (imgDom.current === null || src === '') {
@@ -14126,7 +14127,8 @@ const WaterfallFlowItem = (props) => {
14126
14127
  const priceText = getPriceText({
14127
14128
  product: rec === null || rec === void 0 ? void 0 : rec.product,
14128
14129
  enableFormattedPrice: (_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice,
14129
- globalConfig
14130
+ globalConfig,
14131
+ isHiddenDef: true
14130
14132
  });
14131
14133
  // useEffect(() => {
14132
14134
  // if (imgDom.current === null || src === '') {
@@ -14435,7 +14437,7 @@ var HashTagComponent = React.memo(HashTag$1);
14435
14437
  * @Author: binruan@chatlabs.com
14436
14438
  * @Date: 2023-07-28 18:29:57
14437
14439
  * @LastEditors: binruan@chatlabs.com
14438
- * @LastEditTime: 2024-07-04 18:38:10
14440
+ * @LastEditTime: 2024-09-18 10:48:44
14439
14441
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
14440
14442
  *
14441
14443
  */
@@ -14475,7 +14477,6 @@ const HashTag = createMaterial(HashTagComponent, {
14475
14477
  },
14476
14478
  price: {
14477
14479
  fontSize: 12,
14478
- fontWeight: 'bold',
14479
14480
  color: '#000'
14480
14481
  }
14481
14482
  },