@fonixtree/magic-design 2.0.32 → 2.0.35

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 (69) hide show
  1. package/es/common/AffiliateProductModal/index.js +582 -0
  2. package/es/common/AffiliateProductModal/index.less +146 -0
  3. package/es/common/ProductModal/index.js +1 -2
  4. package/es/common/ProductSource/index.js +42 -10
  5. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  6. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  7. package/es/composite-comp/common/components/AffiliateProductItem/index.js +175 -0
  8. package/es/composite-comp/common/components/AffiliateProductItem/index.less +107 -0
  9. package/es/composite-comp/common/components/ProductItem/index.js +8 -6
  10. package/es/composite-comp/common/components/ProductItem/index.less +28 -22
  11. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  12. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  13. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +656 -0
  14. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +76 -0
  15. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +725 -0
  16. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  17. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  18. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  19. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  20. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +145 -0
  21. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  22. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  23. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  24. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +10 -9
  25. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  26. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  27. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  28. package/es/constants/component-types.js +9 -3
  29. package/es/constants/index.js +4 -0
  30. package/es/core/Designer/ConfigPanel/index.js +7 -2
  31. package/es/core/Designer/LeftTitle/index.js +1 -1
  32. package/es/core/Renderer/index.js +20 -21
  33. package/es/meta-comp/components/Text/index.js +16 -0
  34. package/es/utils/businessUtil.js +6 -1
  35. package/lib/common/AffiliateProductModal/index.js +582 -0
  36. package/lib/common/AffiliateProductModal/index.less +146 -0
  37. package/lib/common/ProductModal/index.js +1 -2
  38. package/lib/common/ProductSource/index.js +42 -10
  39. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  40. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  41. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +175 -0
  42. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +107 -0
  43. package/lib/composite-comp/common/components/ProductItem/index.js +8 -6
  44. package/lib/composite-comp/common/components/ProductItem/index.less +28 -22
  45. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  46. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  47. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +656 -0
  48. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +76 -0
  49. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +725 -0
  50. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  51. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  52. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  53. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  54. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +145 -0
  55. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  56. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  57. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  58. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +10 -9
  59. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  60. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  61. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  62. package/lib/constants/component-types.js +9 -3
  63. package/lib/constants/index.js +4 -0
  64. package/lib/core/Designer/ConfigPanel/index.js +7 -2
  65. package/lib/core/Designer/LeftTitle/index.js +1 -1
  66. package/lib/core/Renderer/index.js +20 -21
  67. package/lib/meta-comp/components/Text/index.js +16 -0
  68. package/lib/utils/businessUtil.js +6 -1
  69. package/package.json +1 -1
@@ -0,0 +1,124 @@
1
+ .m-recommend-pc {
2
+ display: flex;
3
+ flex-direction: column;
4
+ position: relative;
5
+
6
+ .cylon-tabs-nav-operations {
7
+ display: none !important;
8
+ }
9
+
10
+ // ::-webkit-scrollbar {
11
+ // width: 0;
12
+ // height: 0;
13
+ // display: none;
14
+ // }
15
+
16
+ .tab-select-wrap {
17
+ display: flex;
18
+ align-items: center;
19
+ height: 50px;
20
+ background: rgb(255 255 255);
21
+ overflow: auto;
22
+ position: relative;
23
+ margin-bottom: 15px;
24
+
25
+ .tabTitle {
26
+ display: flex;
27
+ align-items: center;
28
+ text-align: center;
29
+ padding: 0 24px;
30
+ width: fit-content;
31
+ height: 100%;
32
+ justify-content: center;
33
+ white-space: nowrap;
34
+ flex-direction: column;
35
+ cursor: pointer;
36
+
37
+ img {
38
+ height: 24px;
39
+ width: 24px;
40
+ margin-bottom: 2px;
41
+ }
42
+ }
43
+
44
+ .active-line {
45
+ position: absolute;
46
+ bottom: 0;
47
+ width: 200px;
48
+ height: 3px;
49
+ background-color: #fff;
50
+ transition: .2s all linear;
51
+ border-radius: 1.5px;
52
+ }
53
+ }
54
+
55
+ .tab-content {
56
+ display: flex;
57
+ flex-direction: row;
58
+ align-items: center;
59
+
60
+ .tab-list {
61
+ width: 100%;
62
+ }
63
+ }
64
+
65
+ .arrow-icon {
66
+ display: block;
67
+ width: 36px;
68
+ height: 36px;
69
+ line-height: 42px;
70
+ text-align: center;
71
+ background: #FFFFFF;
72
+ box-shadow: -1px -1px 4px rgba(45, 48, 64, 0.08), 1px 1px 4px rgba(45, 48, 64, 0.08);
73
+ border-radius: 100px;
74
+ cursor: pointer;
75
+
76
+ &.left {
77
+ margin-right: 15px;
78
+ }
79
+
80
+ &.right {
81
+ margin-left: 15px;
82
+ }
83
+ }
84
+
85
+ .macyContainer {
86
+ display: flex;
87
+ margin: 0;
88
+ }
89
+
90
+ .scrollContainer {
91
+ display: flex;
92
+ flex-direction: row;
93
+ align-items: center;
94
+ flex: 1;
95
+ margin: 0;
96
+ overflow-x: auto;
97
+ padding-bottom: 15px;
98
+
99
+ &.pl_100 {
100
+ padding-left: 100px;
101
+ }
102
+
103
+ .scrollProductList {
104
+ display: flex;
105
+ flex-direction: row;
106
+ align-items: flex-start;
107
+
108
+ .productCard {
109
+ margin-right: 20px;
110
+ }
111
+ }
112
+ }
113
+
114
+ .btnSeeAll {
115
+ display: block;
116
+ width: fit-content;
117
+ min-width: 80px;
118
+ flex: none;
119
+
120
+ &.line {
121
+ margin: 0 auto 10px auto;
122
+ }
123
+ }
124
+ }
@@ -387,7 +387,7 @@ function (_super) {
387
387
  className: "store-info-wrap"
388
388
  }, /*#__PURE__*/_react["default"].createElement("div", {
389
389
  className: "number"
390
- }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) ? Number(storeInfo.storeEvalValue / 100).toFixed(1) : '5', " "), /*#__PURE__*/_react["default"].createElement("img", {
390
+ }, /*#__PURE__*/_react["default"].createElement("span", null, (storeInfo === null || storeInfo === void 0 ? void 0 : storeInfo.storeEvalValue) ? Number(storeInfo.storeEvalValue / 100).toFixed(1) : '5。0', " "), /*#__PURE__*/_react["default"].createElement("img", {
391
391
  alt: "star",
392
392
  src: _star["default"]
393
393
  })), /*#__PURE__*/_react["default"].createElement("div", {
@@ -0,0 +1,102 @@
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 _coreUtil = require("../../../../../utils/coreUtil");
13
+
14
+ var _common = require("../../../../../common");
15
+
16
+ var _locale = require("../../../../../locale");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ var __extends = void 0 && (void 0).__extends || function () {
21
+ var _extendStatics = function extendStatics(d, b) {
22
+ _extendStatics = Object.setPrototypeOf || {
23
+ __proto__: []
24
+ } instanceof Array && function (d, b) {
25
+ d.__proto__ = b;
26
+ } || function (d, b) {
27
+ for (var p in b) {
28
+ if (b.hasOwnProperty(p)) d[p] = b[p];
29
+ }
30
+ };
31
+
32
+ return _extendStatics(d, b);
33
+ };
34
+
35
+ return function (d, b) {
36
+ _extendStatics(d, b);
37
+
38
+ function __() {
39
+ this.constructor = d;
40
+ }
41
+
42
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
+ };
44
+ }();
45
+
46
+ var AComponent =
47
+ /** @class */
48
+ function (_super) {
49
+ __extends(AComponent, _super);
50
+
51
+ function AComponent() {
52
+ var _this = _super !== null && _super.apply(this, arguments) || this;
53
+
54
+ _this.state = {};
55
+
56
+ _this.reRender = function () {
57
+ (0, _coreUtil.renderPreview)();
58
+
59
+ _this.setState({});
60
+ };
61
+
62
+ return _this;
63
+ }
64
+
65
+ AComponent.prototype.render = function () {
66
+ var panelProps = this.props.panelProps;
67
+ return /*#__PURE__*/_react["default"].createElement("div", {
68
+ className: "recommend_content"
69
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
70
+ headerSize: "middle",
71
+ onRefresh: this.reRender,
72
+ source: [{
73
+ key: panelProps.productName.id,
74
+ name: (0, _locale.i18n)('PRODUCT_NAME'),
75
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
76
+ data: panelProps.productName
77
+ }),
78
+ metaOption: panelProps.productName
79
+ }, {
80
+ key: panelProps.salesPrice.id,
81
+ name: (0, _locale.i18n)('SALES_PRICE'),
82
+ value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
83
+ data: panelProps.salesPrice
84
+ }),
85
+ metaOption: panelProps.salesPrice
86
+ }],
87
+ type: "switch"
88
+ }));
89
+ };
90
+
91
+ AComponent.defaultProps = {
92
+ panelProps: {
93
+ sortType: '1',
94
+ productName: {},
95
+ salesPrice: {}
96
+ }
97
+ };
98
+ return AComponent;
99
+ }(_react["default"].Component);
100
+
101
+ var _default = AComponent;
102
+ exports["default"] = _default;
@@ -0,0 +1,145 @@
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 _mobxReact = require("mobx-react");
11
+
12
+ var _defaultImg = _interopRequireDefault(require("../imgs/defaultImg.png"));
13
+
14
+ var _Button = _interopRequireDefault(require("../../../../../common/Button"));
15
+
16
+ var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
17
+
18
+ var _defaultJSON = require("../../../components/Recommend/defaultJSON");
19
+
20
+ var _coreUtil = require("../../../../../utils/coreUtil");
21
+
22
+ require("./index.less");
23
+
24
+ var _locale = require("../../../../../locale");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
29
+
30
+ var __extends = void 0 && (void 0).__extends || function () {
31
+ var _extendStatics = function extendStatics(d, b) {
32
+ _extendStatics = Object.setPrototypeOf || {
33
+ __proto__: []
34
+ } instanceof Array && function (d, b) {
35
+ d.__proto__ = b;
36
+ } || function (d, b) {
37
+ for (var p in b) {
38
+ if (b.hasOwnProperty(p)) d[p] = b[p];
39
+ }
40
+ };
41
+
42
+ return _extendStatics(d, b);
43
+ };
44
+
45
+ return function (d, b) {
46
+ _extendStatics(d, b);
47
+
48
+ function __() {
49
+ this.constructor = d;
50
+ }
51
+
52
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53
+ };
54
+ }();
55
+
56
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
57
+ var c = arguments.length,
58
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
59
+ d;
60
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
61
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
62
+ }
63
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
64
+ };
65
+
66
+ var notice = '';
67
+
68
+ var AComponent =
69
+ /** @class */
70
+ function (_super) {
71
+ __extends(AComponent, _super);
72
+
73
+ function AComponent() {
74
+ var _this = _super !== null && _super.apply(this, arguments) || this;
75
+
76
+ _this.state = {};
77
+
78
+ _this.onClickItem = function (node) {
79
+ _this.props.store.setState({
80
+ clickedGroup: node.id
81
+ });
82
+ };
83
+
84
+ _this.onAddClick = function () {
85
+ var json = (0, _defaultJSON.recommendGroupSourceJSON)(_this.props.id, '', 'Tab');
86
+
87
+ _this.props.source.push(json);
88
+
89
+ _this.setState({});
90
+
91
+ (0, _coreUtil.renderPreview)();
92
+ };
93
+
94
+ _this.reRender = function () {
95
+ _this.setState({});
96
+ };
97
+
98
+ return _this;
99
+ }
100
+
101
+ AComponent.prototype.render = function () {
102
+ var source = this.props.source;
103
+
104
+ var _renderCard = function renderCard(src) {
105
+ return /*#__PURE__*/_react["default"].createElement("div", {
106
+ className: "card_wrap"
107
+ }, /*#__PURE__*/_react["default"].createElement("img", {
108
+ alt: "",
109
+ src: ((0, _coreUtil.isPc)() ? src.image.content.pcImgSrc : src.image.content.h5ImgSrc) || _defaultImg["default"]
110
+ }), /*#__PURE__*/_react["default"].createElement("div", {
111
+ className: "name"
112
+ }, src.groupName.text));
113
+ };
114
+
115
+ return /*#__PURE__*/_react["default"].createElement("div", {
116
+ className: "group_wrap"
117
+ }, /*#__PURE__*/_react["default"].createElement("div", {
118
+ className: "node_list"
119
+ }, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
120
+ className: "notice"
121
+ }, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
122
+ onClickItem: this.onClickItem,
123
+ renderCard: function renderCard(v) {
124
+ return _renderCard(v);
125
+ },
126
+ reRender: this.reRender,
127
+ source: source
128
+ })), /*#__PURE__*/_react["default"].createElement("div", {
129
+ className: "btn_wrap"
130
+ }, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
131
+ icon: "icon-add",
132
+ onClick: this.onAddClick,
133
+ type: "primary"
134
+ }, (0, _locale.i18n)('ADD_GROUP'))));
135
+ };
136
+
137
+ AComponent.defaultProps = {
138
+ source: []
139
+ };
140
+ AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], AComponent);
141
+ return AComponent;
142
+ }(_react["default"].Component);
143
+
144
+ var _default = AComponent;
145
+ exports["default"] = _default;
@@ -0,0 +1,16 @@
1
+ .group_wrap {
2
+ margin-bottom: 20px;
3
+
4
+ .node_list {
5
+ margin-bottom: 12px;
6
+
7
+ .notice {
8
+ font-family: 'Open Sans';
9
+ font-style: normal;
10
+ font-weight: 400;
11
+ font-size: 16px;
12
+ line-height: 24px;
13
+ color: #232F46;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,141 @@
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 _RecommendConfigGroup = _interopRequireDefault(require("./RecommendConfigGroup"));
11
+
12
+ var _RecommendConfigContent = _interopRequireDefault(require("./RecommendConfigContent"));
13
+
14
+ var _coreUtil = require("../../../../utils/coreUtil");
15
+
16
+ var _layout = require("../../../../constants/layout");
17
+
18
+ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
19
+
20
+ var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
21
+
22
+ var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
23
+
24
+ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
25
+
26
+ var _locale = require("../../../../locale");
27
+
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
+
30
+ var __extends = void 0 && (void 0).__extends || function () {
31
+ var _extendStatics = function extendStatics(d, b) {
32
+ _extendStatics = Object.setPrototypeOf || {
33
+ __proto__: []
34
+ } instanceof Array && function (d, b) {
35
+ d.__proto__ = b;
36
+ } || function (d, b) {
37
+ for (var p in b) {
38
+ if (b.hasOwnProperty(p)) d[p] = b[p];
39
+ }
40
+ };
41
+
42
+ return _extendStatics(d, b);
43
+ };
44
+
45
+ return function (d, b) {
46
+ _extendStatics(d, b);
47
+
48
+ function __() {
49
+ this.constructor = d;
50
+ }
51
+
52
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53
+ };
54
+ }();
55
+
56
+ var RecommendConfig =
57
+ /** @class */
58
+ function (_super) {
59
+ __extends(RecommendConfig, _super);
60
+
61
+ function RecommendConfig() {
62
+ var _this = _super !== null && _super.apply(this, arguments) || this;
63
+
64
+ _this.selfRender = function () {
65
+ (0, _coreUtil.renderPreview)();
66
+
67
+ _this.setState({});
68
+ };
69
+
70
+ _this.getLayout = function (v) {
71
+ var data = _this.props.data;
72
+
73
+ if ((0, _coreUtil.isPc)()) {
74
+ data.customize.layout.pcLayout = v;
75
+ } else {
76
+ data.customize.layout.h5Layout = v;
77
+ }
78
+
79
+ _this.selfRender();
80
+ };
81
+
82
+ return _this;
83
+ }
84
+
85
+ RecommendConfig.prototype.render = function () {
86
+ var _this = this;
87
+
88
+ var data = this.props.data;
89
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
90
+ divider: "bold",
91
+ headerSize: "large",
92
+ source: [{
93
+ key: data.id,
94
+ name: (0, _locale.i18n)('GROUP'),
95
+ value: /*#__PURE__*/_react["default"].createElement(_RecommendConfigGroup["default"], {
96
+ id: data.id,
97
+ source: data.groupSource
98
+ })
99
+ }, {
100
+ key: 'content',
101
+ name: (0, _locale.i18n)('CONTENT'),
102
+ value: /*#__PURE__*/_react["default"].createElement(_RecommendConfigContent["default"], {
103
+ panelProps: data.content
104
+ })
105
+ }, {
106
+ key: 'spacing',
107
+ name: (0, _locale.i18n)('SPACING'),
108
+ value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
109
+ configCompSpace: true,
110
+ data: data.spacing
111
+ })
112
+ }, {
113
+ key: 'customize',
114
+ name: (0, _locale.i18n)('CUSTOMIZE'),
115
+ value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
116
+ data: data.customize,
117
+ isHideAlign: true,
118
+ layoutSource: (0, _coreUtil.isPc)() ? _layout.recommendLayoutPc : _layout.recommendLayoutMobile,
119
+ selectedLayoutFun: function selectedLayoutFun(v) {
120
+ _this.getLayout(v);
121
+ }
122
+ })
123
+ }, {
124
+ key: 'background',
125
+ name: (0, _locale.i18n)('BACKGROUND'),
126
+ value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
127
+ data: data.background
128
+ })
129
+ }],
130
+ type: "triangle"
131
+ }));
132
+ };
133
+
134
+ RecommendConfig.defaultProps = {
135
+ data: {}
136
+ };
137
+ return RecommendConfig;
138
+ }(_react["default"].Component);
139
+
140
+ var _default = RecommendConfig;
141
+ exports["default"] = _default;
@@ -65,12 +65,12 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
65
65
 
66
66
  var notice = '';
67
67
 
68
- var AComponent =
68
+ var RecommendConfigGroup =
69
69
  /** @class */
70
70
  function (_super) {
71
- __extends(AComponent, _super);
71
+ __extends(RecommendConfigGroup, _super);
72
72
 
73
- function AComponent() {
73
+ function RecommendConfigGroup() {
74
74
  var _this = _super !== null && _super.apply(this, arguments) || this;
75
75
 
76
76
  _this.state = {};
@@ -98,7 +98,7 @@ function (_super) {
98
98
  return _this;
99
99
  }
100
100
 
101
- AComponent.prototype.render = function () {
101
+ RecommendConfigGroup.prototype.render = function () {
102
102
  var source = this.props.source;
103
103
 
104
104
  var _renderCard = function renderCard(src) {
@@ -110,7 +110,8 @@ function (_super) {
110
110
  }), /*#__PURE__*/_react["default"].createElement("div", {
111
111
  className: "name"
112
112
  }, src.groupName.text));
113
- };
113
+ }; // console.log('00 reacommend source', JSON.stringify(source));
114
+
114
115
 
115
116
  return /*#__PURE__*/_react["default"].createElement("div", {
116
117
  className: "group_wrap"
@@ -134,12 +135,12 @@ function (_super) {
134
135
  }, (0, _locale.i18n)('ADD_GROUP'))));
135
136
  };
136
137
 
137
- AComponent.defaultProps = {
138
+ RecommendConfigGroup.defaultProps = {
138
139
  source: []
139
140
  };
140
- AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], AComponent);
141
- return AComponent;
141
+ RecommendConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], RecommendConfigGroup);
142
+ return RecommendConfigGroup;
142
143
  }(_react["default"].Component);
143
144
 
144
- var _default = AComponent;
145
+ var _default = RecommendConfigGroup;
145
146
  exports["default"] = _default;