@fonixtree/magic-design 0.0.61 → 0.0.63

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 (68) hide show
  1. package/es/assets/less/modal.less +7 -2
  2. package/es/common/ButtonIconLayout/index.less +4 -2
  3. package/es/common/Collapse/index.js +10 -2
  4. package/es/common/ImageModal/index.less +6 -1
  5. package/es/common/UrlPicker/index.js +6 -2
  6. package/es/common/UrlPicker/index.less +12 -1
  7. package/es/composite-comp/bol/components/Banner/mobile/index.js +3 -5
  8. package/es/composite-comp/bol/components/Banner/pc/index.js +3 -2
  9. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +0 -145
  10. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -1
  11. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  12. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +8 -12
  13. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +2 -1
  14. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
  15. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
  16. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +14 -4
  17. package/es/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
  18. package/es/composite-comp/dito/components/Recommend/mobile/index.less +14 -7
  19. package/es/composite-comp/dito/components/Recommend/pc/index.js +4 -2
  20. package/es/composite-comp/dito/components/Recommend/pc/index.less +14 -7
  21. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
  22. package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +3 -3
  23. package/es/core/Designer/ConfigPanel/index.js +7 -5
  24. package/es/core/Designer/QuickMenuBar/index.js +1 -1
  25. package/es/core/Designer/index.js +6 -4
  26. package/es/decorator/metaDecorator.js +2 -2
  27. package/es/meta-comp/components/Button/index.less +4 -1
  28. package/es/meta-comp/components/Image/index.less +1 -0
  29. package/es/meta-comp/components/Text/index.js +8 -0
  30. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +12 -9
  31. package/es/meta-comp/config-panels/ImageConfig/index.js +4 -0
  32. package/es/mobx/Store.js +1 -1
  33. package/es/utils/coreUtil.js +1 -1
  34. package/lib/assets/less/modal.less +7 -2
  35. package/lib/common/ButtonIconLayout/index.less +4 -2
  36. package/lib/common/Collapse/index.js +10 -2
  37. package/lib/common/ImageModal/index.less +6 -1
  38. package/lib/common/UrlPicker/index.js +6 -2
  39. package/lib/common/UrlPicker/index.less +12 -1
  40. package/lib/composite-comp/bol/components/Banner/mobile/index.js +3 -5
  41. package/lib/composite-comp/bol/components/Banner/pc/index.js +3 -2
  42. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +0 -145
  43. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -1
  44. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  45. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +8 -12
  46. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +2 -1
  47. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +13 -3
  48. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +3 -2
  49. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +14 -4
  50. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
  51. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +14 -7
  52. package/lib/composite-comp/dito/components/Recommend/pc/index.js +4 -2
  53. package/lib/composite-comp/dito/components/Recommend/pc/index.less +14 -7
  54. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +39 -29
  55. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +3 -3
  56. package/lib/core/Designer/ConfigPanel/index.js +7 -5
  57. package/lib/core/Designer/QuickMenuBar/index.js +1 -1
  58. package/lib/core/Designer/index.js +6 -4
  59. package/lib/decorator/metaDecorator.js +2 -2
  60. package/lib/meta-comp/components/Button/index.less +4 -1
  61. package/lib/meta-comp/components/Image/index.less +1 -0
  62. package/lib/meta-comp/components/Text/index.js +8 -0
  63. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +12 -9
  64. package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -0
  65. package/lib/mobx/Store.js +1 -1
  66. package/lib/utils/coreUtil.js +1 -1
  67. package/package.json +1 -86
  68. package/README.md +0 -320
@@ -25,7 +25,8 @@
25
25
  .tabTitle {
26
26
  display: flex;
27
27
  align-items: center;
28
- padding: 0 24px;
28
+ // padding: 0 24px;
29
+ min-width: 100px;
29
30
  height: 100%;
30
31
  justify-content: center;
31
32
  white-space: nowrap;
@@ -87,18 +88,24 @@
87
88
  .scrollContainer {
88
89
  display: flex;
89
90
  flex-direction: row;
90
- align-items: flex-start;
91
+ align-items: center;
91
92
  flex: 1;
92
93
  margin: 0;
93
94
  overflow-x: auto;
94
95
  padding-bottom: 15px;
95
96
 
96
- &.pl_100 {
97
- padding-left: 100px;
98
- }
97
+ .productList {
98
+ display: flex;
99
+ flex-direction: row;
100
+ align-items: flex-start;
99
101
 
100
- .productCard {
101
- margin-right: 20px;
102
+ &.pl_100 {
103
+ padding-left: 100px;
104
+ }
105
+
106
+ .productCard {
107
+ margin-right: 20px;
108
+ }
102
109
  }
103
110
  }
104
111
 
@@ -215,17 +215,32 @@ function (_super) {
215
215
  var _this = _super !== null && _super.apply(this, arguments) || this;
216
216
 
217
217
  _this.state = {
218
- intelligentType: (0, _commonUtil.ensure)(function () {
219
- return _this.props.value.intelligentType;
220
- }, 'ALL'),
221
- intelligentValue: (0, _commonUtil.ensure)(function () {
222
- return _this.props.value.intelligentValue;
223
- }, []),
218
+ intelligentType: 'ALL',
219
+ intelligentValue: [],
224
220
  categoryData: [],
225
221
  brandData: [],
226
222
  labelData: []
227
223
  };
228
224
 
225
+ _this.onChangeIntelligentType = function (type) {
226
+ return __awaiter(_this, void 0, void 0, function () {
227
+ return __generator(this, function (_a) {
228
+ this.setState({
229
+ intelligentType: type,
230
+ intelligentValue: []
231
+ });
232
+ this.getTypeData(type);
233
+ this.props.onChange({
234
+ intelligentType: type,
235
+ intelligentValue: []
236
+ });
237
+ return [2
238
+ /*return*/
239
+ ];
240
+ });
241
+ });
242
+ };
243
+
229
244
  _this.getTypeData = function (type) {
230
245
  return __awaiter(_this, void 0, void 0, function () {
231
246
  var res, res, res;
@@ -298,34 +313,29 @@ function (_super) {
298
313
  });
299
314
  };
300
315
 
301
- _this.onChangeIntelligentType = function (type) {
302
- return __awaiter(_this, void 0, void 0, function () {
303
- return __generator(this, function (_a) {
304
- this.setState({
305
- intelligentType: type,
306
- intelligentValue: []
307
- });
308
- this.props.onChange({
309
- intelligentType: type,
310
- intelligentValue: []
311
- });
312
- this.getTypeData(type);
313
- return [2
314
- /*return*/
315
- ];
316
- });
317
- });
318
- };
319
-
320
316
  return _this;
321
317
  }
322
318
 
323
319
  AIRecommendation.prototype.componentDidMount = function () {
324
- this.props.onChange({
325
- intelligentType: this.state.intelligentType,
326
- intelligentValue: this.state.intelligentValue
320
+ var _a = this.props.value,
321
+ intelligentType = _a.intelligentType,
322
+ intelligentValue = _a.intelligentValue;
323
+ this.getTypeData(intelligentType);
324
+ this.setState({
325
+ intelligentType: intelligentType,
326
+ intelligentValue: intelligentValue
327
+ });
328
+ };
329
+
330
+ AIRecommendation.prototype.componentWillReceiveProps = function (nextProps) {
331
+ var _a = nextProps.value,
332
+ intelligentType = _a.intelligentType,
333
+ intelligentValue = _a.intelligentValue;
334
+ this.getTypeData(intelligentType);
335
+ this.setState({
336
+ intelligentType: intelligentType,
337
+ intelligentValue: intelligentValue
327
338
  });
328
- this.getTypeData(this.state.intelligentType);
329
339
  };
330
340
 
331
341
  AIRecommendation.prototype.render = function () {
@@ -17,8 +17,8 @@ function TerminalSelect(_a) {
17
17
  var value = _a.value,
18
18
  onChange = _a.onChange,
19
19
  terminalType = _a.terminalType;
20
- var isActiveMobile = ['MOBILE', 'ALL'].includes(value);
21
- var isActivePc = ['PC', 'ALL'].includes(value);
20
+ var isActiveMobile = !value || ['MOBILE', 'ALL'].includes(value);
21
+ var isActivePc = !value || ['PC', 'ALL'].includes(value);
22
22
 
23
23
  var onTerminalClick = function onTerminalClick(terminal) {
24
24
  // 至少选中一种终端
@@ -26,7 +26,7 @@ function TerminalSelect(_a) {
26
26
  return;
27
27
  }
28
28
 
29
- if (value === 'ALL') {
29
+ if (!value || value === 'ALL') {
30
30
  if (terminal === 'PC') {
31
31
  onChange('MOBILE');
32
32
  } else {
@@ -83,19 +83,19 @@ function (_super) {
83
83
  _this.setState({
84
84
  clickedGroup: _mobx.store.clickedGroup,
85
85
  selectedNode: selectedNode
86
- }); // 展开以及面板
86
+ }); // 展开一级面板
87
87
 
88
88
 
89
89
  if (selectedNode) {
90
90
  _this.openConfig();
91
91
  } else {
92
92
  _this.closeConfig();
93
- } // 展开首期二级面板
93
+ } // 展开二级面板
94
94
 
95
95
 
96
- if (!_mobx.store.clickedGroup) {
96
+ if (!_mobx.store.clickedGroup && _this.preClickedGroup) {
97
97
  _this.closeSecConfig();
98
- } else if (_mobx.store.clickedGroup !== _this.preClickedGroup) {
98
+ } else if (Boolean(_mobx.store.clickedGroup) != Boolean(_this.preClickedGroup)) {
99
99
  _this.openSecConfig();
100
100
  }
101
101
 
@@ -294,7 +294,9 @@ function (_super) {
294
294
  };
295
295
 
296
296
  ConfigPanel.prototype.componentWillReceiveProps = function (nextProps) {
297
- this.resetState(nextProps, _mobx.store.clickedFloor);
297
+ if (JSON.stringify(this.props) !== JSON.stringify(nextProps)) {
298
+ this.resetState(nextProps, _mobx.store.clickedFloor);
299
+ }
298
300
  };
299
301
 
300
302
  ConfigPanel.prototype.componentWillUnmount = function () {
@@ -82,7 +82,7 @@ function (_super) {
82
82
  var _this = _super !== null && _super.apply(this, arguments) || this;
83
83
 
84
84
  _this.onBtnClick = function (event) {
85
- var code = event.currentTarget.dataset.code;
85
+ var code = event.currentTarget.dataset.code; // 保存和发布时需要清空组件和元组件的选中状态,否则截图中会看到选中状态
86
86
 
87
87
  if (code === _constants.quickMenuCode.SAVE || code === _constants.quickMenuCode.PUBLISH) {
88
88
  _mobx.store.setState({
@@ -97,11 +97,13 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
97
97
  return r;
98
98
  };
99
99
 
100
+ window.magicDesign = {
101
+ mode: 'designer',
102
+ device: _constants.deviceTypeMap.PHONE
103
+ };
104
+
100
105
  var setDesignConfig = function setDesignConfig(data) {
101
- window.magicDesign = __assign(__assign({
102
- mode: 'designer',
103
- device: _constants.deviceTypeMap.PHONE
104
- }, data), {
106
+ window.magicDesign = __assign(__assign(__assign({}, window.magicDesign), data), {
105
107
  MBaseUrl: data.MBaseUrl || ''
106
108
  });
107
109
  };
@@ -69,7 +69,7 @@ function metaDecorator(WrappedComponent) {
69
69
  }; // 元组件点击事件
70
70
 
71
71
  _this.onMetaClick = function (event) {
72
- var _a, _b, _c;
72
+ var _a, _b;
73
73
 
74
74
  if (window.magicDesign.mode === 'renderer') {
75
75
  return;
@@ -90,7 +90,7 @@ function metaDecorator(WrappedComponent) {
90
90
  }
91
91
 
92
92
  _mobx.store.setState({
93
- clickedMeta: (_c = _this.props.data) === null || _c === void 0 ? void 0 : _c.id,
93
+ clickedMeta: metaId,
94
94
  clickedGroup: parentId,
95
95
  clickedFloor: floorId
96
96
  });
@@ -4,7 +4,7 @@
4
4
  .btnContent {
5
5
  width: 100%;
6
6
  cursor: pointer;
7
- display: inline-flex;
7
+ display: flex;
8
8
  align-items: center;
9
9
  justify-content: center;
10
10
  flex-direction: column;
@@ -15,6 +15,9 @@
15
15
 
16
16
  .item {
17
17
  width: 100%;
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
18
21
  }
19
22
 
20
23
  img {
@@ -12,6 +12,7 @@
12
12
  object-fit: contain;
13
13
  transition: all .2s linear;
14
14
  vertical-align: initial;
15
+ max-width: 100%;
15
16
  }
16
17
 
17
18
  &.backgroundImg {
@@ -439,6 +439,14 @@ function (_super) {
439
439
  textDecorationColor: data.underline.textDecorationColor,
440
440
  textDecorationStyle: data.underline.textDecorationStyle
441
441
  });
442
+ }
443
+
444
+ if (data === null || data === void 0 ? void 0 : data.spacing) {
445
+ if ((0, _coreUtil.isPc)()) {
446
+ style = __assign(__assign({}, style), data.spacing.pc);
447
+ } else {
448
+ style = __assign(__assign({}, style), data.spacing.mobile);
449
+ }
442
450
  } // const style: React.CSSProperties = {
443
451
  // ...contentStyle(data.content),
444
452
  // textDecorationLine: data?.underline.open ? 'underline' : 'none',
@@ -53,12 +53,12 @@ var __extends = void 0 && (void 0).__extends || function () {
53
53
  };
54
54
  }();
55
55
 
56
- var index =
56
+ var HotAreaConfig =
57
57
  /** @class */
58
58
  function (_super) {
59
- __extends(index, _super);
59
+ __extends(HotAreaConfig, _super);
60
60
 
61
- function index() {
61
+ function HotAreaConfig() {
62
62
  var _this = _super !== null && _super.apply(this, arguments) || this;
63
63
 
64
64
  _this.state = {
@@ -66,11 +66,14 @@ function (_super) {
66
66
  };
67
67
 
68
68
  _this.onCheckboxChange = function (e) {
69
- var option = _this.props.option;
69
+ var _a = _this.props,
70
+ option = _a.option,
71
+ onChange = _a.onChange;
70
72
  console.log(e.target.checked);
71
- option.openHotArea = e.target.checked;
73
+ option.clickUrl = '';
74
+ option.openHotArea = e.target.checked; // this.setState({});
72
75
 
73
- _this.setState({});
76
+ onChange();
74
77
  };
75
78
 
76
79
  _this.onAddArea = function () {
@@ -100,7 +103,7 @@ function (_super) {
100
103
  return _this;
101
104
  }
102
105
 
103
- index.prototype.render = function () {
106
+ HotAreaConfig.prototype.render = function () {
104
107
  var option = this.props.option;
105
108
  var visible = this.state.visible;
106
109
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -123,8 +126,8 @@ function (_super) {
123
126
  }));
124
127
  };
125
128
 
126
- return index;
129
+ return HotAreaConfig;
127
130
  }(_react.Component);
128
131
 
129
- var _default = index;
132
+ var _default = HotAreaConfig;
130
133
  exports["default"] = _default;
@@ -314,10 +314,14 @@ function (_super) {
314
314
  value: selectImg
315
315
  }), selectImg && /*#__PURE__*/_react["default"].createElement(_HotAreaConfig["default"], {
316
316
  imgUrl: selectImg,
317
+ onChange: function onChange() {
318
+ return _this.setState({});
319
+ },
317
320
  option: data.content
318
321
  }), /*#__PURE__*/_react["default"].createElement(_common.Field, {
319
322
  title: "URL"
320
323
  }, /*#__PURE__*/_react["default"].createElement(_common.UrlPicker, {
324
+ disabled: data.content.openHotArea,
321
325
  onChange: function onChange(v) {
322
326
  data.content.clickUrl = v;
323
327
 
package/es/mobx/Store.js CHANGED
@@ -26,7 +26,7 @@ function () {
26
26
 
27
27
  this.clickedMeta = ''; // 点击的元组件Id
28
28
 
29
- this.clickedGroup = ''; // 点击的元组件组Id
29
+ this.clickedGroup = ''; // 点击的元组的上一层Id,即groupSourceId(元组件在Group中)
30
30
 
31
31
  this.clickedFloor = ''; // 点击的楼层Id
32
32
 
@@ -35,7 +35,7 @@ var _this = void 0;
35
35
 
36
36
  /** 根据楼层设置的终端类型,判断是否展示该楼层 */
37
37
  var isActiveFloor = function isActiveFloor(activeTerminal) {
38
- return activeTerminal === 'ALL' || activeTerminal === window.magicDesign.device.toUpperCase();
38
+ return !activeTerminal || activeTerminal === 'ALL' || activeTerminal === window.magicDesign.device.toUpperCase();
39
39
  };
40
40
 
41
41
  exports.isActiveFloor = isActiveFloor;
@@ -1,19 +1,24 @@
1
1
  [magic_design] .ant-modal-wrap {
2
2
  display: flex;
3
3
  align-items: center;
4
+
4
5
  .ant-modal {
5
6
  width: 100%;
6
7
  top: 0 !important;
7
- padding-bottom: 0px !important;
8
+ padding-bottom: 0px !important;
9
+
8
10
  .ant-modal-content {
9
11
  border-radius: 8px !important;
12
+
10
13
  .ant-modal-header {
11
14
  border-top-left-radius: 8px !important;
12
15
  border-top-right-radius: 8px !important;
13
16
  }
17
+
14
18
  .ant-modal-body {
15
19
  padding: 16px 16px 12px 16px !important;
20
+ max-height: 800px !important;
16
21
  }
17
22
  }
18
23
  }
19
- }
24
+ }
@@ -7,8 +7,10 @@
7
7
  display: inline-flex;
8
8
  align-items: center;
9
9
  justify-content: center;
10
- width: 94px;
11
- height: 50px;
10
+ min-width: 94px;
11
+ min-height: 50px;
12
+ padding: 6px 10px;
13
+ box-sizing: border-box;
12
14
  background: #FFFFFF;
13
15
  border: 1px solid #D2D9E5;
14
16
  border-radius: 8px;
@@ -95,7 +95,6 @@ function (_super) {
95
95
  }
96
96
 
97
97
  if (type === 'switch') {
98
- debug('source', source);
99
98
  var first = source.find(function (src) {
100
99
  var _a;
101
100
 
@@ -109,6 +108,13 @@ function (_super) {
109
108
 
110
109
  actives.push(((_b = first.metaOption) === null || _b === void 0 ? void 0 : _b.id) || first.key);
111
110
  }
111
+ } else if (type === 'triangle' && _mobx.store.clickedMeta && !_mobx.store.clickedGroup) {
112
+ var activeItem = source.find(function (src) {
113
+ var _a, _b;
114
+
115
+ return JSON.stringify(((_b = (_a = src.value) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.panelProps) || '').includes(_mobx.store.clickedMeta);
116
+ });
117
+ actives.push(activeItem === null || activeItem === void 0 ? void 0 : activeItem.key);
112
118
  } else {
113
119
  var first = source.find(function (src) {
114
120
  var _a;
@@ -324,10 +330,12 @@ function (_super) {
324
330
  var _this = this;
325
331
 
326
332
  this.distroy = (0, _mobx.autorun)(function () {
327
- if (_this.props.type === 'switch' && _mobx.store.clickedMeta) {
333
+ if (_mobx.store.clickedMeta && _this.props.type === 'switch') {
328
334
  _this.setState({
329
335
  activeKey: [_mobx.store.clickedMeta]
330
336
  });
337
+ } else if (_mobx.store.clickedMeta && _this.props.type === 'triangle') {
338
+ _this.initActive(_this.props);
331
339
  }
332
340
  });
333
341
  }; // componentWillReceiveProps(nextProps) {
@@ -1,4 +1,8 @@
1
1
  .catg_tree_container {
2
+ .search_container {
3
+ margin-bottom: 15px;
4
+ }
5
+
2
6
  .ant-tree-title {
3
7
  max-width: 200px;
4
8
  overflow: hidden;
@@ -13,9 +17,10 @@
13
17
  display: flex;
14
18
  flex-wrap: wrap;
15
19
  }
20
+
16
21
  .ant-upload-list-item-thumbnail {
17
22
  img {
18
23
  object-fit: contain;
19
24
  }
20
25
  }
21
- }
26
+ }
@@ -63,10 +63,13 @@ function (_super) {
63
63
  var visible = this.state.visible;
64
64
  var _a = this.props,
65
65
  value = _a.value,
66
- _onChange = _a.onChange;
66
+ _onChange = _a.onChange,
67
+ disabled = _a.disabled;
67
68
  return /*#__PURE__*/_react["default"].createElement("div", {
68
69
  className: "m-url-picker"
69
- }, /*#__PURE__*/_react["default"].createElement("div", {
70
+ }, disabled && /*#__PURE__*/_react["default"].createElement("div", {
71
+ className: "disabled"
72
+ }), /*#__PURE__*/_react["default"].createElement("div", {
70
73
  className: "input-url"
71
74
  }, /*#__PURE__*/_react["default"].createElement("input", {
72
75
  onChange: function onChange(e) {
@@ -112,6 +115,7 @@ function (_super) {
112
115
 
113
116
  UrlPicker.defaultProps = {
114
117
  value: '',
118
+ disabled: false,
115
119
  onChange: function onChange() {}
116
120
  };
117
121
  return UrlPicker;
@@ -1,5 +1,16 @@
1
1
  .m-url-picker {
2
-
2
+ position: relative;
3
+ .disabled {
4
+ position: absolute;
5
+ left: 0;
6
+ right: 0;
7
+ bottom: 0;
8
+ top: 0;
9
+ background-color: #D2D9E5;
10
+ z-index: 1;
11
+ opacity: 0.5;
12
+ border-radius: 8px;
13
+ }
3
14
  .input-url {
4
15
  width: 100%;
5
16
  height: 40px;
@@ -59,8 +59,7 @@ function (_super) {
59
59
 
60
60
  _this.state = {
61
61
  carouseIndex: 0,
62
- hoverState: false,
63
- clickedGroup: ''
62
+ hoverState: false
64
63
  };
65
64
  _this.carouselRef = /*#__PURE__*/_react["default"].createRef();
66
65
  _this.destroy = null;
@@ -120,12 +119,11 @@ function (_super) {
120
119
  var data = this.props.data;
121
120
  var _a = this.state,
122
121
  carouseIndex = _a.carouseIndex,
123
- hoverState = _a.hoverState,
124
- clickedGroup = _a.clickedGroup;
122
+ hoverState = _a.hoverState;
125
123
  var autoplay = data.setting.autoplay.open;
126
124
  /** 设计器模式下 如果选中特定group 自动播放关闭 */
127
125
 
128
- if ((0, _coreUtil.isDesignMode)() && clickedGroup) {
126
+ if ((0, _coreUtil.isDesignMode)() && _mobx.store.clickedGroup) {
129
127
  autoplay = false;
130
128
  }
131
129
 
@@ -23,6 +23,8 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
23
23
 
24
24
  var _common = require("../../../../../common");
25
25
 
26
+ var _commonUtil = require("../../../../../utils/commonUtil");
27
+
26
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
29
 
28
30
  var __extends = void 0 && (void 0).__extends || function () {
@@ -125,8 +127,7 @@ function (_super) {
125
127
  };
126
128
 
127
129
  if (item.background.bgType === 'color') {
128
- bgStyle.opacity = item.background.opacity ? item.background.opacity / 100 : 1;
129
- bgStyle.backgroundColor = item.background.color;
130
+ bgStyle.backgroundColor = (0, _commonUtil.getColorRgba)(item.background.color || '#fff', item.background.opacity / 100 || 1);
130
131
  } else {
131
132
  bgStyle.backgroundImage = "url(" + item.background.image + ")";
132
133
  }