@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.
- package/es/composite-comp/common/components/ProductItem/index.js +17 -17
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +3 -1
- package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +7 -3
- package/lib/composite-comp/common/components/ProductItem/index.js +17 -17
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +7 -3
- package/package.json +1 -1
|
@@ -95,21 +95,21 @@ function (_super) {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
ProductItem.prototype.render = function () {
|
|
98
|
-
var _a, _b, _c;
|
|
99
|
-
|
|
100
|
-
var
|
|
101
|
-
data =
|
|
102
|
-
type =
|
|
103
|
-
panelProps =
|
|
104
|
-
onItemClick =
|
|
105
|
-
showProName =
|
|
106
|
-
showProgress =
|
|
107
|
-
fixHeight =
|
|
108
|
-
layout =
|
|
109
|
-
imgHeight =
|
|
110
|
-
imgWidth =
|
|
111
|
-
unknownPrice =
|
|
112
|
-
rest = __rest(
|
|
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
|
};
|
package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
101
|
-
data =
|
|
102
|
-
type =
|
|
103
|
-
panelProps =
|
|
104
|
-
onItemClick =
|
|
105
|
-
showProName =
|
|
106
|
-
showProgress =
|
|
107
|
-
fixHeight =
|
|
108
|
-
layout =
|
|
109
|
-
imgHeight =
|
|
110
|
-
imgWidth =
|
|
111
|
-
unknownPrice =
|
|
112
|
-
rest = __rest(
|
|
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
|
};
|
package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|