@fonixtree/magic-design 2.0.136 → 2.0.137

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.
@@ -97,6 +97,10 @@ function (_super) {
97
97
  };
98
98
 
99
99
  _this.onSwitchChange = function (checked, panelInfo) {
100
+ if (!panelInfo.metaOption) {
101
+ panelInfo.metaOption = {};
102
+ }
103
+
100
104
  panelInfo.metaOption.open = checked;
101
105
 
102
106
  if (checked) {
@@ -15,6 +15,7 @@
15
15
  .product-img {
16
16
  width: 140px;
17
17
  height: 140px;
18
+ border-radius: 8px;
18
19
  object-fit: cover;
19
20
  }
20
21
 
@@ -240,6 +241,7 @@
240
241
  width: 100px;
241
242
  height: 100%;
242
243
  min-height: 100px;
244
+ border-radius: 8px 0 0 8px;
243
245
  }
244
246
  }
245
247
 
@@ -377,16 +377,16 @@ function (_super) {
377
377
  };
378
378
 
379
379
  FlashDealMobile.prototype.render = function () {
380
- var _a;
380
+ var _a, _b;
381
381
 
382
382
  var panelProps = this.props.panelProps;
383
383
  console.log('flash deal panelProps: ', panelProps);
384
- var _b = this.state,
385
- list = _b.list,
386
- effDate = _b.effDate,
387
- expDate = _b.expDate,
388
- now = _b.now,
389
- isWill = _b.isWill;
384
+ var _c = this.state,
385
+ list = _c.list,
386
+ effDate = _c.effDate,
387
+ expDate = _c.expDate,
388
+ now = _c.now,
389
+ isWill = _c.isWill;
390
390
 
391
391
  var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
392
392
 
@@ -405,7 +405,7 @@ function (_super) {
405
405
  data: panelProps.title.headline
406
406
  }), isWill && /*#__PURE__*/_react["default"].createElement("span", {
407
407
  className: "sub-title"
408
- }, (0, _locale.i18n)('NEXT')), ((_a = panelProps.title) === null || _a === void 0 ? void 0 : _a.countDown.open) && /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
408
+ }, (0, _locale.i18n)('NEXT')), ((_a = panelProps.title) === null || _a === void 0 ? void 0 : _a.countDown) && ((_b = panelProps.title.countDown) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
409
409
  effDate: effDate,
410
410
  expDate: expDate,
411
411
  now: now,
@@ -410,10 +410,7 @@ function (_super) {
410
410
  now: now,
411
411
  refresh: this.getNextFlashSale
412
412
  })), /*#__PURE__*/_react["default"].createElement("div", {
413
- className: "right",
414
- onClick: function onClick() {
415
- return (0, _coreUtil.clickUrl)('/flash-sale');
416
- }
413
+ className: "right"
417
414
  }, panelProps.title.button.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
418
415
  className: "btn",
419
416
  data: panelProps.title.button
@@ -97,6 +97,10 @@ function (_super) {
97
97
  };
98
98
 
99
99
  _this.onSwitchChange = function (checked, panelInfo) {
100
+ if (!panelInfo.metaOption) {
101
+ panelInfo.metaOption = {};
102
+ }
103
+
100
104
  panelInfo.metaOption.open = checked;
101
105
 
102
106
  if (checked) {
@@ -15,6 +15,7 @@
15
15
  .product-img {
16
16
  width: 140px;
17
17
  height: 140px;
18
+ border-radius: 8px;
18
19
  object-fit: cover;
19
20
  }
20
21
 
@@ -240,6 +241,7 @@
240
241
  width: 100px;
241
242
  height: 100%;
242
243
  min-height: 100px;
244
+ border-radius: 8px 0 0 8px;
243
245
  }
244
246
  }
245
247
 
@@ -377,16 +377,16 @@ function (_super) {
377
377
  };
378
378
 
379
379
  FlashDealMobile.prototype.render = function () {
380
- var _a;
380
+ var _a, _b;
381
381
 
382
382
  var panelProps = this.props.panelProps;
383
383
  console.log('flash deal panelProps: ', panelProps);
384
- var _b = this.state,
385
- list = _b.list,
386
- effDate = _b.effDate,
387
- expDate = _b.expDate,
388
- now = _b.now,
389
- isWill = _b.isWill;
384
+ var _c = this.state,
385
+ list = _c.list,
386
+ effDate = _c.effDate,
387
+ expDate = _c.expDate,
388
+ now = _c.now,
389
+ isWill = _c.isWill;
390
390
 
391
391
  var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
392
392
 
@@ -405,7 +405,7 @@ function (_super) {
405
405
  data: panelProps.title.headline
406
406
  }), isWill && /*#__PURE__*/_react["default"].createElement("span", {
407
407
  className: "sub-title"
408
- }, (0, _locale.i18n)('NEXT')), ((_a = panelProps.title) === null || _a === void 0 ? void 0 : _a.countDown.open) && /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
408
+ }, (0, _locale.i18n)('NEXT')), ((_a = panelProps.title) === null || _a === void 0 ? void 0 : _a.countDown) && ((_b = panelProps.title.countDown) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement(_CountDown["default"], {
409
409
  effDate: effDate,
410
410
  expDate: expDate,
411
411
  now: now,
@@ -410,10 +410,7 @@ function (_super) {
410
410
  now: now,
411
411
  refresh: this.getNextFlashSale
412
412
  })), /*#__PURE__*/_react["default"].createElement("div", {
413
- className: "right",
414
- onClick: function onClick() {
415
- return (0, _coreUtil.clickUrl)('/flash-sale');
416
- }
413
+ className: "right"
417
414
  }, panelProps.title.button.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
418
415
  className: "btn",
419
416
  data: panelProps.title.button
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.136",
4
+ "version": "2.0.137",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",