@fonixtree/magic-design 1.0.92 → 1.0.95

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) {
@@ -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,
@@ -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) {
@@ -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,
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.92",
4
+ "version": "1.0.95",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",