@fonixtree/magic-design 2.0.126 → 2.0.127

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.
@@ -134,8 +134,8 @@ function (_super) {
134
134
  rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
135
135
 
136
136
  var promotions = (0, _businessUtil.getPromotionList)(data);
137
- var price = (0, _currencyUtil.formatCurrency)(data.salesPrice);
138
- price = data.specialPrice !== null ? (0, _currencyUtil.formatCurrency)(data.specialPrice) : (0, _currencyUtil.formatCurrency)(data.salesPrice);
137
+ var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
138
+ price = data.specialPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.specialPrice) : (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
139
139
  var oldPrice = data.specialPrice !== null && data.marketPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.marketPrice) : null; // const discount = Number(data.discountPercent) || 0;
140
140
 
141
141
  var salePercent = Number(data.salePercent) / 100 || 0;
@@ -75,7 +75,7 @@ function (_super) {
75
75
  SearchBarConfigContent.prototype.render = function () {
76
76
  var _this = this;
77
77
 
78
- var _a, _b, _c, _d;
78
+ var _a, _b, _c, _d, _e;
79
79
 
80
80
  var panelProps = this.props.panelProps;
81
81
  var source = [{
@@ -155,7 +155,7 @@ function (_super) {
155
155
 
156
156
  _this.selfRender();
157
157
  },
158
- value: panelProps.placeholder.text
158
+ value: (_e = panelProps.placeholder) === null || _e === void 0 ? void 0 : _e.text
159
159
  }))),
160
160
  metaOption: panelProps.placeholder
161
161
  }, {
@@ -25,6 +25,7 @@
25
25
  .BundleItemWrap .prodList {
26
26
  display: flex;
27
27
  align-items: center;
28
+ justify-content: center;
28
29
  overflow: scroll;
29
30
  }
30
31
  .BundleItemWrap .prodList img {
@@ -134,8 +134,8 @@ function (_super) {
134
134
  rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
135
135
 
136
136
  var promotions = (0, _businessUtil.getPromotionList)(data);
137
- var price = (0, _currencyUtil.formatCurrency)(data.salesPrice);
138
- price = data.specialPrice !== null ? (0, _currencyUtil.formatCurrency)(data.specialPrice) : (0, _currencyUtil.formatCurrency)(data.salesPrice);
137
+ var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
138
+ price = data.specialPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.specialPrice) : (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
139
139
  var oldPrice = data.specialPrice !== null && data.marketPrice !== null ? (0, _currencyUtil.formatCurrencyWithSymbol)(data.marketPrice) : null; // const discount = Number(data.discountPercent) || 0;
140
140
 
141
141
  var salePercent = Number(data.salePercent) / 100 || 0;
@@ -75,7 +75,7 @@ function (_super) {
75
75
  SearchBarConfigContent.prototype.render = function () {
76
76
  var _this = this;
77
77
 
78
- var _a, _b, _c, _d;
78
+ var _a, _b, _c, _d, _e;
79
79
 
80
80
  var panelProps = this.props.panelProps;
81
81
  var source = [{
@@ -155,7 +155,7 @@ function (_super) {
155
155
 
156
156
  _this.selfRender();
157
157
  },
158
- value: panelProps.placeholder.text
158
+ value: (_e = panelProps.placeholder) === null || _e === void 0 ? void 0 : _e.text
159
159
  }))),
160
160
  metaOption: panelProps.placeholder
161
161
  }, {
@@ -25,6 +25,7 @@
25
25
  .BundleItemWrap .prodList {
26
26
  display: flex;
27
27
  align-items: center;
28
+ justify-content: center;
28
29
  overflow: scroll;
29
30
  }
30
31
  .BundleItemWrap .prodList img {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.126",
4
+ "version": "2.0.127",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",