@fonixtree/magic-design 2.0.94 → 2.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.
Files changed (79) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +11 -3
  2. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  3. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  6. package/es/common/index.js +8 -0
  7. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  8. package/es/composite-comp/common/components/ProductItem/index.js +36 -22
  9. package/es/composite-comp/common/components/ProductItem/index.less +9 -0
  10. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +1 -1
  11. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -1
  12. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  13. package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +232 -0
  14. package/es/composite-comp/dito/components/GroupBuy/index.js +86 -0
  15. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg.png +0 -0
  16. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg1.png +0 -0
  17. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg2.png +0 -0
  18. package/es/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg3.png +0 -0
  19. package/es/composite-comp/dito/components/GroupBuy/mobile/index.js +341 -0
  20. package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +87 -0
  21. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +11 -0
  22. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  23. package/es/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
  24. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +4 -0
  25. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +13 -1
  26. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  27. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +5 -3
  28. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +174 -0
  29. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +38 -0
  30. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigTitle/index.js +103 -0
  31. package/es/composite-comp/dito/config-panels/GroupBuyConfig/imgs/layout1.png +0 -0
  32. package/es/composite-comp/dito/config-panels/GroupBuyConfig/index.js +73 -0
  33. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +7 -2
  34. package/es/constants/component-types.js +6 -2
  35. package/es/constants/index.js +4 -0
  36. package/es/core/Renderer/index.js +27 -10
  37. package/es/locale/en/en.json +5 -1
  38. package/es/locale/es/es.json +4 -0
  39. package/es/locale/id/id.json +5 -1
  40. package/lib/assets/fonts/magic-box-iconfont.css +11 -3
  41. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  42. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  43. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  44. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  45. package/lib/common/index.js +8 -0
  46. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  47. package/lib/composite-comp/common/components/ProductItem/index.js +36 -22
  48. package/lib/composite-comp/common/components/ProductItem/index.less +9 -0
  49. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +1 -1
  50. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -1
  51. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  52. package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +232 -0
  53. package/lib/composite-comp/dito/components/GroupBuy/index.js +86 -0
  54. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg.png +0 -0
  55. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg1.png +0 -0
  56. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg2.png +0 -0
  57. package/lib/composite-comp/dito/components/GroupBuy/mobile/imgs/defImg3.png +0 -0
  58. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.js +341 -0
  59. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +87 -0
  60. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +11 -0
  61. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
  62. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
  63. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +4 -0
  64. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +13 -1
  65. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  66. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +5 -3
  67. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +174 -0
  68. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.less +38 -0
  69. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigTitle/index.js +103 -0
  70. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/imgs/layout1.png +0 -0
  71. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/index.js +73 -0
  72. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +7 -2
  73. package/lib/constants/component-types.js +6 -2
  74. package/lib/constants/index.js +4 -0
  75. package/lib/core/Renderer/index.js +27 -10
  76. package/lib/locale/en/en.json +5 -1
  77. package/lib/locale/es/es.json +4 -0
  78. package/lib/locale/id/id.json +5 -1
  79. package/package.json +1 -1
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _antd = require("antd");
11
+
12
+ var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
13
+
14
+ var _TextConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/TextConfig"));
15
+
16
+ var _coreUtil = require("../../../../../utils/coreUtil");
17
+
18
+ var _common = require("../../../../../common");
19
+
20
+ var _locale = require("../../../../../locale");
21
+
22
+ require("./index.less");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ var __extends = void 0 && (void 0).__extends || function () {
27
+ var _extendStatics = function extendStatics(d, b) {
28
+ _extendStatics = Object.setPrototypeOf || {
29
+ __proto__: []
30
+ } instanceof Array && function (d, b) {
31
+ d.__proto__ = b;
32
+ } || function (d, b) {
33
+ for (var p in b) {
34
+ if (b.hasOwnProperty(p)) d[p] = b[p];
35
+ }
36
+ };
37
+
38
+ return _extendStatics(d, b);
39
+ };
40
+
41
+ return function (d, b) {
42
+ _extendStatics(d, b);
43
+
44
+ function __() {
45
+ this.constructor = d;
46
+ }
47
+
48
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
+ };
50
+ }();
51
+
52
+ var AComponent =
53
+ /** @class */
54
+ function (_super) {
55
+ __extends(AComponent, _super);
56
+
57
+ function AComponent() {
58
+ var _this = _super !== null && _super.apply(this, arguments) || this;
59
+
60
+ _this.state = {};
61
+
62
+ _this.reRender = function () {
63
+ (0, _coreUtil.renderPreview)();
64
+
65
+ _this.setState({});
66
+ };
67
+
68
+ return _this;
69
+ }
70
+
71
+ AComponent.prototype.render = function () {
72
+ var _this = this;
73
+
74
+ var _a, _b;
75
+
76
+ var panelProps = this.props.panelProps;
77
+ return /*#__PURE__*/_react["default"].createElement("div", {
78
+ className: "group_buy_content"
79
+ }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
80
+ title: (0, _locale.i18n)('PRODUCT_SORT_BY')
81
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
82
+ onChange: function onChange(v) {
83
+ panelProps.sortType = v;
84
+
85
+ _this.reRender();
86
+ },
87
+ value: panelProps.sortType
88
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
89
+ value: "3"
90
+ }, (0, _locale.i18n)('PRICE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
91
+ value: "1"
92
+ }, (0, _locale.i18n)('SALES')))), /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
93
+ headerSize: "middle",
94
+ onRefresh: this.reRender,
95
+ source: [{
96
+ key: '1',
97
+ name: (0, _locale.i18n)('GROUP_LABEL'),
98
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
99
+ data: panelProps.label
100
+ }),
101
+ metaOption: panelProps.label
102
+ }, {
103
+ key: '2',
104
+ name: (0, _locale.i18n)('PRODUCT_NAME'),
105
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
106
+ data: panelProps.productName
107
+ }),
108
+ metaOption: panelProps.productName
109
+ }, {
110
+ key: '3',
111
+ name: (0, _locale.i18n)('ACTIVITY_PRICE'),
112
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
113
+ data: panelProps.activityPrice
114
+ }),
115
+ metaOption: panelProps.activityPrice
116
+ }, {
117
+ key: '4',
118
+ name: (0, _locale.i18n)('SALES_PRICE'),
119
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
120
+ data: panelProps.salesPrice
121
+ }),
122
+ metaOption: panelProps.salesPrice
123
+ }],
124
+ type: "switch"
125
+ }), /*#__PURE__*/_react["default"].createElement("div", {
126
+ className: "sales_progress_wrap"
127
+ }, /*#__PURE__*/_react["default"].createElement("div", {
128
+ className: "title"
129
+ }, /*#__PURE__*/_react["default"].createElement("span", {
130
+ className: "label"
131
+ }, (0, _locale.i18n)('SALES_PROGRESS')), /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
132
+ checked: (_a = panelProps.salesProgress) === null || _a === void 0 ? void 0 : _a.open,
133
+ onChange: function onChange(v) {
134
+ panelProps.salesProgress = {
135
+ open: v
136
+ };
137
+
138
+ _this.reRender();
139
+ }
140
+ })), /*#__PURE__*/_react["default"].createElement("div", {
141
+ className: "content"
142
+ }, /*#__PURE__*/_react["default"].createElement("p", {
143
+ className: "name"
144
+ }, (0, _locale.i18n)('PROGRESS_BAR_COLOR')), /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
145
+ colorType: "rgba",
146
+ onChange: function onChange(v) {
147
+ panelProps.salesProgress = {
148
+ color: v
149
+ };
150
+
151
+ _this.reRender();
152
+ },
153
+ value: (_b = panelProps.salesProgress) === null || _b === void 0 ? void 0 : _b.color
154
+ }))));
155
+ };
156
+
157
+ AComponent.defaultProps = {
158
+ panelProps: {
159
+ sortType: '1',
160
+ label: {},
161
+ productName: {},
162
+ activityPrice: {},
163
+ salesPrice: {},
164
+ salesProgress: {
165
+ open: false,
166
+ color: '#000'
167
+ }
168
+ }
169
+ };
170
+ return AComponent;
171
+ }(_react["default"].Component);
172
+
173
+ var _default = AComponent;
174
+ exports["default"] = _default;
@@ -0,0 +1,38 @@
1
+ .group_buy_content {
2
+
3
+ .sales_progress_wrap {
4
+ border-top: 1px solid #EDF0F4;
5
+ padding-top: 20px;
6
+ padding-bottom: 10px;
7
+
8
+ .title {
9
+ display: flex;
10
+ justify-content: space-between;
11
+
12
+ .label {
13
+ font-size: 16px !important;
14
+ line-height: 24px !important;
15
+ height: 24px !important;
16
+ font-weight: 600 !important;
17
+ color: hsl(219, 33%, 21%);
18
+ font-family: 'Open Sans';
19
+ font-style: normal;
20
+ }
21
+ }
22
+
23
+ .content {
24
+ position: relative;
25
+
26
+ .name {
27
+ font-size: 14px;
28
+ font-family: 'Open Sans';
29
+ font-weight: 600;
30
+ color: #232F46;
31
+ margin-top: 20px;
32
+ margin-bottom: 10px;
33
+ }
34
+
35
+ }
36
+
37
+ }
38
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _TextConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/TextConfig"));
11
+
12
+ var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
13
+
14
+ var _coreUtil = require("../../../../../utils/coreUtil");
15
+
16
+ var _common = require("../../../../../common");
17
+
18
+ var _locale = require("../../../../../locale");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ var __extends = void 0 && (void 0).__extends || function () {
23
+ var _extendStatics = function extendStatics(d, b) {
24
+ _extendStatics = Object.setPrototypeOf || {
25
+ __proto__: []
26
+ } instanceof Array && function (d, b) {
27
+ d.__proto__ = b;
28
+ } || function (d, b) {
29
+ for (var p in b) {
30
+ if (b.hasOwnProperty(p)) d[p] = b[p];
31
+ }
32
+ };
33
+
34
+ return _extendStatics(d, b);
35
+ };
36
+
37
+ return function (d, b) {
38
+ _extendStatics(d, b);
39
+
40
+ function __() {
41
+ this.constructor = d;
42
+ }
43
+
44
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
+ };
46
+ }();
47
+
48
+ var AComponent =
49
+ /** @class */
50
+ function (_super) {
51
+ __extends(AComponent, _super);
52
+
53
+ function AComponent() {
54
+ var _this = _super !== null && _super.apply(this, arguments) || this;
55
+
56
+ _this.state = {};
57
+
58
+ _this.reRender = function () {
59
+ (0, _coreUtil.renderPreview)();
60
+
61
+ _this.setState({});
62
+ };
63
+
64
+ return _this;
65
+ }
66
+
67
+ AComponent.prototype.render = function () {
68
+ var panelProps = this.props.panelProps;
69
+ return /*#__PURE__*/_react["default"].createElement("div", {
70
+ className: "group_buy_title"
71
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
72
+ headerSize: "middle",
73
+ onRefresh: this.reRender,
74
+ source: [{
75
+ key: '1',
76
+ name: (0, _locale.i18n)('HEADLINE'),
77
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
78
+ data: panelProps.headline
79
+ }),
80
+ metaOption: panelProps.headline
81
+ }, {
82
+ key: '2',
83
+ name: (0, _locale.i18n)('BUTTON'),
84
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
85
+ data: panelProps.button
86
+ }),
87
+ metaOption: panelProps.button
88
+ }],
89
+ type: "switch"
90
+ }));
91
+ };
92
+
93
+ AComponent.defaultProps = {
94
+ panelProps: {
95
+ headline: {},
96
+ button: {}
97
+ }
98
+ };
99
+ return AComponent;
100
+ }(_react["default"].Component);
101
+
102
+ var _default = AComponent;
103
+ exports["default"] = _default;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = GroupBuyConfig;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _GroupBuyConfigTitle = _interopRequireDefault(require("./GroupBuyConfigTitle"));
11
+
12
+ var _GroupBuyConfigContent = _interopRequireDefault(require("./GroupBuyConfigContent"));
13
+
14
+ var _layout = _interopRequireDefault(require("./imgs/layout1.png"));
15
+
16
+ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
17
+
18
+ var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
19
+
20
+ var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
21
+
22
+ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
23
+
24
+ var _locale = require("../../../../locale");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ function GroupBuyConfig(props) {
29
+ var data = props.data;
30
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
31
+ divider: "bold",
32
+ headerSize: "large",
33
+ source: [{
34
+ key: '1',
35
+ name: (0, _locale.i18n)('TITLE'),
36
+ value: /*#__PURE__*/_react["default"].createElement(_GroupBuyConfigTitle["default"], {
37
+ panelProps: data.title
38
+ })
39
+ }, {
40
+ key: '2',
41
+ name: (0, _locale.i18n)('CONTENT'),
42
+ value: /*#__PURE__*/_react["default"].createElement(_GroupBuyConfigContent["default"], {
43
+ panelProps: data.content
44
+ })
45
+ }, {
46
+ key: '3',
47
+ name: (0, _locale.i18n)('SPACING'),
48
+ value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
49
+ configCompSpace: true,
50
+ data: data.spacing
51
+ })
52
+ }, {
53
+ key: '4',
54
+ name: (0, _locale.i18n)('CUSTOMIZE'),
55
+ value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
56
+ data: data.customize,
57
+ isHideAlign: true,
58
+ layoutSource: [{
59
+ id: 'layout1',
60
+ name: 'layout1',
61
+ image: _layout["default"]
62
+ }]
63
+ })
64
+ }, {
65
+ key: '5',
66
+ name: (0, _locale.i18n)('BACKGROUND'),
67
+ value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
68
+ data: data.background
69
+ })
70
+ }],
71
+ type: "triangle"
72
+ }));
73
+ }
@@ -83,11 +83,11 @@ function (_super) {
83
83
  }, {
84
84
  key: 'search2',
85
85
  name: (0, _locale.i18n)('SEARCH_BOX'),
86
- value: /*#__PURE__*/_react["default"].createElement(_common.Field, {
86
+ value: /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
87
87
  style: {
88
88
  marginTop: 20
89
89
  },
90
- title: (0, _locale.i18n)('COLOR')
90
+ title: (0, _locale.i18n)('BOX_COLOR')
91
91
  }, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
92
92
  colorType: "rgba",
93
93
  onChange: function onChange(v) {
@@ -100,6 +100,11 @@ function (_super) {
100
100
  _this.selfRender();
101
101
  },
102
102
  value: (0, _coreUtil.isPc)() ? panelProps.box.color.pc : panelProps.box.color.mobile
103
+ })), /*#__PURE__*/_react["default"].createElement(_common.Field, {
104
+ style: {
105
+ marginTop: 20
106
+ },
107
+ title: (0, _locale.i18n)('BOX_BACKGROUND')
103
108
  })),
104
109
  metaOption: panelProps.box,
105
110
  toggleType: 'switch'
@@ -35,6 +35,8 @@ var _Location = _interopRequireDefault(require("../composite-comp/bol/components
35
35
 
36
36
  var _FlashDeal = _interopRequireDefault(require("../composite-comp/dito/components/FlashDeal"));
37
37
 
38
+ var _GroupBuy = _interopRequireDefault(require("../composite-comp/dito/components/GroupBuy"));
39
+
38
40
  var _SearchBar = _interopRequireDefault(require("../composite-comp/dito/components/SearchBar"));
39
41
 
40
42
  var _SignBoard = _interopRequireDefault(require("../composite-comp/dito/components/SignBoard"));
@@ -87,6 +89,8 @@ var _WalletNuriConfig = _interopRequireDefault(require("../composite-comp/bol/co
87
89
 
88
90
  var _FlashDealConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/FlashDealConfig"));
89
91
 
92
+ var _GroupBuyConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/GroupBuyConfig"));
93
+
90
94
  var _SearchBarConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/SearchBarConfig"));
91
95
 
92
96
  var _SignBoardConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/SignBoardConfig"));
@@ -155,13 +159,13 @@ var _a, _b, _c; // 组件
155
159
  /**
156
160
  * 渲染组件索引
157
161
  */
158
- var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
162
+ var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_Orders["default"].type] = _Orders["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
159
163
  /**
160
164
  * 一级配置面板索引
161
165
  */
162
166
 
163
167
  exports.componentMap = componentMap;
164
- var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
168
+ var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_Orders["default"].type] = _OrdersConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
165
169
  /**
166
170
  * 二级配置面板索引
167
171
  */
@@ -145,6 +145,10 @@ var compInfoMap = {
145
145
  name: 'Flash Deal',
146
146
  icon: 'icon-flash-deal'
147
147
  },
148
+ GROUP_BUY: {
149
+ name: 'Group Buy',
150
+ icon: 'icon-group-buy'
151
+ },
148
152
  SEARCH: {
149
153
  name: 'Search',
150
154
  icon: 'icon-search'
@@ -88,19 +88,36 @@ var Renderer = function Renderer(props) {
88
88
  var filterData = [];
89
89
 
90
90
  if (pageData && pageData.childNodes && pageData.childNodes.length) {
91
+ var graduallySetFloors = function graduallySetFloors(data, step, interval, start) {
92
+ if (step === void 0) {
93
+ step = 5;
94
+ }
95
+
96
+ if (interval === void 0) {
97
+ interval = 200;
98
+ }
99
+
100
+ if (start === void 0) {
101
+ start = 0;
102
+ } // 计算这一步应该显示的最终索引
103
+
104
+
105
+ var end = Math.min(start + step, data.length); // 更新楼层数量
106
+
107
+ setFloors(data.slice(0, end)); // 如果还有更多楼层要显示,设置一个定时器来递归调用此函数
108
+
109
+ if (end < data.length) {
110
+ setTimeout(function () {
111
+ graduallySetFloors(data, step, interval, end);
112
+ }, interval);
113
+ }
114
+ };
115
+
91
116
  filterData = pageData.childNodes.filter(function (node) {
92
117
  return (0, _coreUtil.isActiveFloor)(node.activeTerminal);
93
118
  });
94
- } // 首页组建分批渲染按5个一组
95
-
96
-
97
- setFloors(filterData.slice(0, 5));
98
- setTimeout(function () {
99
- setFloors(filterData.slice(0, 10));
100
- setTimeout(function () {
101
- setFloors(filterData);
102
- }, 200);
103
- }, 200);
119
+ graduallySetFloors(filterData);
120
+ }
104
121
  }, [pageData]);
105
122
  (0, _react.useEffect)(function () {
106
123
  setTimeout(function () {
@@ -1,4 +1,8 @@
1
1
  {
2
+ "BOX_BACKGROUND": "Box Background",
3
+ "BOX_COLOR": "Box Color",
4
+ "PROGRESS_BAR_COLOR": "Progress Bar Color",
5
+ "GROUP_LABEL": "Group Label",
2
6
  "SUBMIT": "Submit",
3
7
  "CANCELLED": "Cancelled",
4
8
  "DONE": "Done",
@@ -88,7 +92,7 @@
88
92
  "CONTENT_WIDTH": "Content Width",
89
93
  "MAGNIFICATION": "Magnification",
90
94
  "RECOMMENDED_RULES": "Recommended Rules",
91
- "PRODUCT_SORT_BY": "product sort by",
95
+ "PRODUCT_SORT_BY": "Product Sort By",
92
96
  "PADDING": "Padding",
93
97
  "COMPONENT_SPACING": "Component spacing",
94
98
  "ALIGNMENT": "Alignment",
@@ -1,4 +1,8 @@
1
1
  {
2
+ "BOX_BACKGROUND": "Box Background",
3
+ "BOX_COLOR": "Box Color",
4
+ "PROGRESS_BAR_COLOR": "Progress Bar Color",
5
+ "GROUP_LABEL": "Group Label",
2
6
  "SUBMIT": "Submit",
3
7
  "CANCELLED": "Cancelled",
4
8
  "DONE": "Hecho",
@@ -1,4 +1,8 @@
1
1
  {
2
+ "BOX_BACKGROUND": "Box Background",
3
+ "BOX_COLOR": "Box Color",
4
+ "PROGRESS_BAR_COLOR": "Progress Bar Color",
5
+ "GROUP_LABEL": "Group Label",
2
6
  "SUBMIT": "Submit",
3
7
  "CANCELLED": "Cancelled",
4
8
  "DONE": "Done",
@@ -88,7 +92,7 @@
88
92
  "CONTENT_WIDTH": "Content Width",
89
93
  "MAGNIFICATION": "Magnification",
90
94
  "RECOMMENDED_RULES": "Recommended Rules",
91
- "PRODUCT_SORT_BY": "product sort by",
95
+ "PRODUCT_SORT_BY": "Product Sort By",
92
96
  "PADDING": "Padding",
93
97
  "COMPONENT_SPACING": "Component spacing",
94
98
  "ALIGNMENT": "Alignment",
@@ -1,9 +1,9 @@
1
1
  @font-face {
2
2
  font-family: "magic-box-iconfont";
3
3
  /* Project id 3317752 */
4
- src: url('magic-box-iconfont.woff2?t=1709712007938') format('woff2'),
5
- url('magic-box-iconfont.woff?t=1709712007938') format('woff'),
6
- url('magic-box-iconfont.ttf?t=1709712007938') format('truetype');
4
+ src: url('magic-box-iconfont.woff2?t=1713253836150') format('woff2'),
5
+ url('magic-box-iconfont.woff?t=1713253836150') format('woff'),
6
+ url('magic-box-iconfont.ttf?t=1713253836150') format('truetype');
7
7
  }
8
8
 
9
9
  .magic-box-iconfont {
@@ -14,6 +14,14 @@
14
14
  -moz-osx-font-smoothing: grayscale;
15
15
  }
16
16
 
17
+ .magic-box-icon-group-users:before {
18
+ content: "\e60a";
19
+ }
20
+
21
+ .magic-box-icon-group-buy:before {
22
+ content: "\e643";
23
+ }
24
+
17
25
  .magic-box-icon-orders:before {
18
26
  content: "\e64c";
19
27
  }