@fonixtree/magic-design 1.0.95 → 1.0.97

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.
@@ -158,6 +158,10 @@ function (_super) {
158
158
  _this.onSwitchChange = function (checked, panelInfo) {
159
159
  var _a;
160
160
 
161
+ if (!panelInfo.metaOption) {
162
+ panelInfo.metaOption = {};
163
+ }
164
+
161
165
  panelInfo.metaOption.open = checked;
162
166
 
163
167
  if (checked) {
@@ -7,6 +7,8 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
 
10
+ var _uuid = require("uuid");
11
+
10
12
  var _mobile = _interopRequireDefault(require("./mobile"));
11
13
 
12
14
  var _pc = _interopRequireDefault(require("./pc"));
@@ -72,6 +74,14 @@ function (_super) {
72
74
 
73
75
  FlashDeal.prototype.render = function () {
74
76
  var nodeData = this.props.nodeData;
77
+
78
+ if (!nodeData.title.countDown) {
79
+ nodeData.title.countDown = {
80
+ open: true,
81
+ id: (0, _uuid.v4)()
82
+ };
83
+ }
84
+
75
85
  return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
76
86
  panelProps: nodeData
77
87
  }) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
@@ -380,7 +380,6 @@ function (_super) {
380
380
  var _a, _b;
381
381
 
382
382
  var panelProps = this.props.panelProps;
383
- console.log('flash deal panelProps: ', panelProps);
384
383
  var _c = this.state,
385
384
  list = _c.list,
386
385
  effDate = _c.effDate,
@@ -87,6 +87,8 @@
87
87
  display: flex;
88
88
  flex-direction: column;
89
89
  gap: 0.16rem;
90
+ max-height: 4.36rem;
91
+ overflow-y: auto;
90
92
  }
91
93
  .m-flash-deal-mobile .flash-deal-list-horizontal .m-product-item-wrap {
92
94
  width: 100%;
@@ -158,6 +158,10 @@ function (_super) {
158
158
  _this.onSwitchChange = function (checked, panelInfo) {
159
159
  var _a;
160
160
 
161
+ if (!panelInfo.metaOption) {
162
+ panelInfo.metaOption = {};
163
+ }
164
+
161
165
  panelInfo.metaOption.open = checked;
162
166
 
163
167
  if (checked) {
@@ -7,6 +7,8 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
 
10
+ var _uuid = require("uuid");
11
+
10
12
  var _mobile = _interopRequireDefault(require("./mobile"));
11
13
 
12
14
  var _pc = _interopRequireDefault(require("./pc"));
@@ -72,6 +74,14 @@ function (_super) {
72
74
 
73
75
  FlashDeal.prototype.render = function () {
74
76
  var nodeData = this.props.nodeData;
77
+
78
+ if (!nodeData.title.countDown) {
79
+ nodeData.title.countDown = {
80
+ open: true,
81
+ id: (0, _uuid.v4)()
82
+ };
83
+ }
84
+
75
85
  return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
76
86
  panelProps: nodeData
77
87
  }) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
@@ -380,7 +380,6 @@ function (_super) {
380
380
  var _a, _b;
381
381
 
382
382
  var panelProps = this.props.panelProps;
383
- console.log('flash deal panelProps: ', panelProps);
384
383
  var _c = this.state,
385
384
  list = _c.list,
386
385
  effDate = _c.effDate,
@@ -87,6 +87,8 @@
87
87
  display: flex;
88
88
  flex-direction: column;
89
89
  gap: 0.16rem;
90
+ max-height: 4.36rem;
91
+ overflow-y: auto;
90
92
  }
91
93
  .m-flash-deal-mobile .flash-deal-list-horizontal .m-product-item-wrap {
92
94
  width: 100%;
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.95",
4
+ "version": "1.0.97",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",