@fonixtree/magic-design 1.0.76 → 1.0.77

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.
@@ -95,21 +95,21 @@ function (_super) {
95
95
  }
96
96
 
97
97
  ProductItem.prototype.render = function () {
98
- var _a, _b, _c;
99
-
100
- var _d = this.props,
101
- data = _d.data,
102
- type = _d.type,
103
- panelProps = _d.panelProps,
104
- onItemClick = _d.onItemClick,
105
- showProName = _d.showProName,
106
- showProgress = _d.showProgress,
107
- fixHeight = _d.fixHeight,
108
- layout = _d.layout,
109
- imgHeight = _d.imgHeight,
110
- imgWidth = _d.imgWidth,
111
- unknownPrice = _d.unknownPrice,
112
- rest = __rest(_d, ["data", "type", "panelProps", "onItemClick", "showProName", "showProgress", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
98
+ var _a, _b, _c, _d, _e;
99
+
100
+ var _f = this.props,
101
+ data = _f.data,
102
+ type = _f.type,
103
+ panelProps = _f.panelProps,
104
+ onItemClick = _f.onItemClick,
105
+ showProName = _f.showProName,
106
+ showProgress = _f.showProgress,
107
+ fixHeight = _f.fixHeight,
108
+ layout = _f.layout,
109
+ imgHeight = _f.imgHeight,
110
+ imgWidth = _f.imgWidth,
111
+ unknownPrice = _f.unknownPrice,
112
+ rest = __rest(_f, ["data", "type", "panelProps", "onItemClick", "showProName", "showProgress", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
113
113
 
114
114
  var promotions = (0, _businessUtil.getPromotionList)(data);
115
115
  var price = (0, _currencyUtil.formatCurrency)(data.salesPrice);
@@ -240,7 +240,7 @@ function (_super) {
240
240
  }
241
241
  })), !showProgress && data.salesCnt > 0 && /*#__PURE__*/_react["default"].createElement("div", {
242
242
  className: "sold-count"
243
- }, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && panelProps.salesProgress.open && /*#__PURE__*/_react["default"].createElement("div", {
243
+ }, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && ((_d = panelProps.salesProgress) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
244
244
  className: "progress-wrap"
245
245
  }, /*#__PURE__*/_react["default"].createElement("span", {
246
246
  className: "text"
@@ -250,7 +250,7 @@ function (_super) {
250
250
  className: "progress",
251
251
  style: {
252
252
  width: salePercent + "%",
253
- backgroundColor: panelProps.salesProgress.color
253
+ backgroundColor: (_e = panelProps.salesProgress) === null || _e === void 0 ? void 0 : _e.color
254
254
  }
255
255
  })))));
256
256
  };
@@ -71,6 +71,8 @@ function (_super) {
71
71
  AComponent.prototype.render = function () {
72
72
  var _this = this;
73
73
 
74
+ var _a;
75
+
74
76
  var panelProps = this.props.panelProps;
75
77
  return /*#__PURE__*/_react["default"].createElement("div", {
76
78
  className: "flash_sale_content"
@@ -125,7 +127,7 @@ function (_super) {
125
127
  }, /*#__PURE__*/_react["default"].createElement("span", {
126
128
  className: "label"
127
129
  }, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
128
- checked: panelProps.salesProgress.open,
130
+ checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
129
131
  onChange: function onChange(v) {
130
132
  panelProps.salesProgress = {
131
133
  open: v
@@ -71,6 +71,8 @@ function (_super) {
71
71
  AComponent.prototype.render = function () {
72
72
  var _this = this;
73
73
 
74
+ var _a, _b;
75
+
74
76
  var panelProps = this.props.panelProps;
75
77
  return /*#__PURE__*/_react["default"].createElement("div", {
76
78
  className: "group_buy_content"
@@ -127,7 +129,7 @@ function (_super) {
127
129
  }, /*#__PURE__*/_react["default"].createElement("span", {
128
130
  className: "label"
129
131
  }, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
130
- checked: panelProps.salesProgress.open,
132
+ checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
131
133
  onChange: function onChange(v) {
132
134
  panelProps.salesProgress = {
133
135
  open: v
@@ -142,11 +144,13 @@ function (_super) {
142
144
  }, (0, _locale.i18n)('PROGRESS_BAR_COLOR')), /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
143
145
  colorType: "rgba",
144
146
  onChange: function onChange(v) {
145
- panelProps.salesProgress.color = v;
147
+ var _a;
148
+
149
+ (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.color = v;
146
150
 
147
151
  _this.reRender();
148
152
  },
149
- value: panelProps.salesProgress.color
153
+ value: (_b = panelProps.salesProgress) === null || _b === void 0 ? void 0 : _b.color
150
154
  }))));
151
155
  };
152
156
 
@@ -95,21 +95,21 @@ function (_super) {
95
95
  }
96
96
 
97
97
  ProductItem.prototype.render = function () {
98
- var _a, _b, _c;
99
-
100
- var _d = this.props,
101
- data = _d.data,
102
- type = _d.type,
103
- panelProps = _d.panelProps,
104
- onItemClick = _d.onItemClick,
105
- showProName = _d.showProName,
106
- showProgress = _d.showProgress,
107
- fixHeight = _d.fixHeight,
108
- layout = _d.layout,
109
- imgHeight = _d.imgHeight,
110
- imgWidth = _d.imgWidth,
111
- unknownPrice = _d.unknownPrice,
112
- rest = __rest(_d, ["data", "type", "panelProps", "onItemClick", "showProName", "showProgress", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
98
+ var _a, _b, _c, _d, _e;
99
+
100
+ var _f = this.props,
101
+ data = _f.data,
102
+ type = _f.type,
103
+ panelProps = _f.panelProps,
104
+ onItemClick = _f.onItemClick,
105
+ showProName = _f.showProName,
106
+ showProgress = _f.showProgress,
107
+ fixHeight = _f.fixHeight,
108
+ layout = _f.layout,
109
+ imgHeight = _f.imgHeight,
110
+ imgWidth = _f.imgWidth,
111
+ unknownPrice = _f.unknownPrice,
112
+ rest = __rest(_f, ["data", "type", "panelProps", "onItemClick", "showProName", "showProgress", "fixHeight", "layout", "imgHeight", "imgWidth", "unknownPrice"]);
113
113
 
114
114
  var promotions = (0, _businessUtil.getPromotionList)(data);
115
115
  var price = (0, _currencyUtil.formatCurrency)(data.salesPrice);
@@ -240,7 +240,7 @@ function (_super) {
240
240
  }
241
241
  })), !showProgress && data.salesCnt > 0 && /*#__PURE__*/_react["default"].createElement("div", {
242
242
  className: "sold-count"
243
- }, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && panelProps.salesProgress.open && /*#__PURE__*/_react["default"].createElement("div", {
243
+ }, (0, _commonUtil.convertCount)(data.salesCnt), " sold")), showProgress && ((_d = panelProps.salesProgress) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
244
244
  className: "progress-wrap"
245
245
  }, /*#__PURE__*/_react["default"].createElement("span", {
246
246
  className: "text"
@@ -250,7 +250,7 @@ function (_super) {
250
250
  className: "progress",
251
251
  style: {
252
252
  width: salePercent + "%",
253
- backgroundColor: panelProps.salesProgress.color
253
+ backgroundColor: (_e = panelProps.salesProgress) === null || _e === void 0 ? void 0 : _e.color
254
254
  }
255
255
  })))));
256
256
  };
@@ -71,6 +71,8 @@ function (_super) {
71
71
  AComponent.prototype.render = function () {
72
72
  var _this = this;
73
73
 
74
+ var _a;
75
+
74
76
  var panelProps = this.props.panelProps;
75
77
  return /*#__PURE__*/_react["default"].createElement("div", {
76
78
  className: "flash_sale_content"
@@ -125,7 +127,7 @@ function (_super) {
125
127
  }, /*#__PURE__*/_react["default"].createElement("span", {
126
128
  className: "label"
127
129
  }, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
128
- checked: panelProps.salesProgress.open,
130
+ checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
129
131
  onChange: function onChange(v) {
130
132
  panelProps.salesProgress = {
131
133
  open: v
@@ -71,6 +71,8 @@ function (_super) {
71
71
  AComponent.prototype.render = function () {
72
72
  var _this = this;
73
73
 
74
+ var _a, _b;
75
+
74
76
  var panelProps = this.props.panelProps;
75
77
  return /*#__PURE__*/_react["default"].createElement("div", {
76
78
  className: "group_buy_content"
@@ -127,7 +129,7 @@ function (_super) {
127
129
  }, /*#__PURE__*/_react["default"].createElement("span", {
128
130
  className: "label"
129
131
  }, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
130
- checked: panelProps.salesProgress.open,
132
+ checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
131
133
  onChange: function onChange(v) {
132
134
  panelProps.salesProgress = {
133
135
  open: v
@@ -142,11 +144,13 @@ function (_super) {
142
144
  }, (0, _locale.i18n)('PROGRESS_BAR_COLOR')), /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
143
145
  colorType: "rgba",
144
146
  onChange: function onChange(v) {
145
- panelProps.salesProgress.color = v;
147
+ var _a;
148
+
149
+ (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.color = v;
146
150
 
147
151
  _this.reRender();
148
152
  },
149
- value: panelProps.salesProgress.color
153
+ value: (_b = panelProps.salesProgress) === null || _b === void 0 ? void 0 : _b.color
150
154
  }))));
151
155
  };
152
156
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.76",
4
+ "version": "1.0.77",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",