@fonixtree/magic-design 1.0.96 → 1.0.98

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.
@@ -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%;
@@ -79,8 +79,8 @@
79
79
  border-radius: 0;
80
80
  }
81
81
  .m-group-buy-mobile .group-buy-list .m-product-item-wrap .product-img {
82
- height: 3.4rem;
83
- width: 3.4rem;
82
+ height: 2.8rem;
83
+ width: 2.8rem;
84
84
  }
85
85
  .m-group-buy-mobile .group-buy-list .m-product-item-wrap .content-wrap {
86
86
  padding: 0.24rem;
@@ -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%;
@@ -79,8 +79,8 @@
79
79
  border-radius: 0;
80
80
  }
81
81
  .m-group-buy-mobile .group-buy-list .m-product-item-wrap .product-img {
82
- height: 3.4rem;
83
- width: 3.4rem;
82
+ height: 2.8rem;
83
+ width: 2.8rem;
84
84
  }
85
85
  .m-group-buy-mobile .group-buy-list .m-product-item-wrap .content-wrap {
86
86
  padding: 0.24rem;
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.96",
4
+ "version": "1.0.98",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",