@fonixtree/magic-design 0.0.97 → 0.0.99
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.
- package/es/common/LinkModal/FilteredProductModal/index.js +21 -18
- package/es/composite-comp/bol/components/Banner/mobile/index.js +11 -18
- package/es/composite-comp/bol/components/Banner/pc/index.js +10 -10
- package/es/composite-comp/bol/components/ImageText/pc/index.less +2 -0
- package/es/composite-comp/bol/components/Newsletter/index.js +15 -2
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +14 -1
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +0 -2
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -1
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +2 -1
- package/es/core/Designer/PageCompList/index.js +29 -1
- package/es/core/Designer/QuickMenuBar/index.js +3 -1
- package/es/core/Designer/ViewArea/index.js +3 -4
- package/es/core/Designer/ViewArea/index.less +1 -6
- package/es/core/Renderer/index.js +5 -3
- package/es/decorator/compositeDecorator.js +131 -38
- package/es/decorator/metaDecorator.js +1 -1
- package/es/mobx/Store.js +4 -1
- package/lib/common/LinkModal/FilteredProductModal/index.js +21 -18
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +11 -18
- package/lib/composite-comp/bol/components/Banner/pc/index.js +10 -10
- package/lib/composite-comp/bol/components/ImageText/pc/index.less +2 -0
- package/lib/composite-comp/bol/components/Newsletter/index.js +15 -2
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +14 -1
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +0 -2
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -1
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +2 -1
- package/lib/core/Designer/PageCompList/index.js +29 -1
- package/lib/core/Designer/QuickMenuBar/index.js +3 -1
- package/lib/core/Designer/ViewArea/index.js +3 -4
- package/lib/core/Designer/ViewArea/index.less +1 -6
- package/lib/core/Renderer/index.js +5 -3
- package/lib/decorator/compositeDecorator.js +131 -38
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/mobx/Store.js +4 -1
- package/package.json +1 -1
|
@@ -217,7 +217,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
217
217
|
storeName = _g[0],
|
|
218
218
|
setStoreName = _g[1];
|
|
219
219
|
|
|
220
|
-
var _h = (0, _react.useState)(
|
|
220
|
+
var _h = (0, _react.useState)(''),
|
|
221
221
|
storeId = _h[0],
|
|
222
222
|
setStoreId = _h[1];
|
|
223
223
|
|
|
@@ -293,27 +293,29 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
293
293
|
|
|
294
294
|
var columns = [{
|
|
295
295
|
title: 'Image',
|
|
296
|
-
dataIndex: '
|
|
297
|
-
key: '
|
|
298
|
-
|
|
296
|
+
dataIndex: 'imgUrl',
|
|
297
|
+
key: 'imgUrl',
|
|
298
|
+
width: 100,
|
|
299
|
+
render: function render(imgUrl, record) {
|
|
299
300
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
300
301
|
className: "prodImage",
|
|
301
302
|
style: {
|
|
302
|
-
backgroundImage: "url(" +
|
|
303
|
+
backgroundImage: "url(\"" + (0, _commonUtil.convertImageUrl)(record.productImg || record.imgUrlContent || record.productImgContent) + "\")"
|
|
303
304
|
}
|
|
304
305
|
});
|
|
305
306
|
}
|
|
306
307
|
}, {
|
|
307
|
-
title: '
|
|
308
|
-
dataIndex: '
|
|
309
|
-
key: '
|
|
308
|
+
title: 'Offer Name',
|
|
309
|
+
dataIndex: 'offerName',
|
|
310
|
+
key: 'offerName',
|
|
310
311
|
ellipsis: true
|
|
311
|
-
}, {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
},
|
|
312
|
+
}, // {
|
|
313
|
+
// title: 'SKU',
|
|
314
|
+
// dataIndex: 'attrValues',
|
|
315
|
+
// key: 'attrValues',
|
|
316
|
+
// ellipsis: true,
|
|
317
|
+
// },
|
|
318
|
+
{
|
|
317
319
|
title: 'Price',
|
|
318
320
|
dataIndex: 'salesPrice',
|
|
319
321
|
key: 'salesPrice',
|
|
@@ -453,8 +455,8 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
453
455
|
return v.key;
|
|
454
456
|
}).join(','),
|
|
455
457
|
labelIds: labelId.key,
|
|
456
|
-
|
|
457
|
-
|
|
458
|
+
q: productName,
|
|
459
|
+
// productName,
|
|
458
460
|
storeId: storeId,
|
|
459
461
|
minPrice: minimum * precision || '',
|
|
460
462
|
maxPrice: maximum * precision || '',
|
|
@@ -466,10 +468,11 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
466
468
|
};
|
|
467
469
|
return [4
|
|
468
470
|
/*yield*/
|
|
469
|
-
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/
|
|
471
|
+
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/offers/es", params, 'POST')];
|
|
470
472
|
|
|
471
473
|
case 1:
|
|
472
|
-
res = _a.sent();
|
|
474
|
+
res = _a.sent(); // const res = await commonFetch(`${window.magicDesign.MBaseUrl}/products`, params, 'GET');
|
|
475
|
+
|
|
473
476
|
setLoading(false);
|
|
474
477
|
paginationParams.total = res.total;
|
|
475
478
|
|
|
@@ -19,8 +19,6 @@ var _coreUtil = require("../../../../../utils/coreUtil");
|
|
|
19
19
|
|
|
20
20
|
var _AlignSelector = require("../../../../../common/AlignSelector");
|
|
21
21
|
|
|
22
|
-
var _commonUtil = require("../../../../../utils/commonUtil");
|
|
23
|
-
|
|
24
22
|
var _components = require("../../../../../meta-comp/components");
|
|
25
23
|
|
|
26
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -90,18 +88,18 @@ function (_super) {
|
|
|
90
88
|
if (nextIndex != -1 && nextIndex != _this.state.carouseIndex) {
|
|
91
89
|
_this.carouselRef.current.goTo(nextIndex);
|
|
92
90
|
}
|
|
93
|
-
};
|
|
91
|
+
}; // padding用统一设置
|
|
94
92
|
|
|
95
|
-
_this.getPaddingAndBackground = function (item) {
|
|
96
|
-
var spacing = _this.props.data.spacing; // const { spacing, background } = data;
|
|
97
93
|
|
|
98
|
-
|
|
94
|
+
_this.getBackgroundStyle = function (item) {
|
|
95
|
+
// const { data: { spacing } } = this.props;
|
|
96
|
+
// const { spacing, background } = data;
|
|
97
|
+
// const { device } = window.magicDesign;
|
|
99
98
|
var wrapStyle = {}; // 边距
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
// if (spacing && spacing[device]) {
|
|
100
|
+
// wrapStyle = { ...wrapStyle, ...spacing[device] };
|
|
101
|
+
// }
|
|
102
|
+
// 背景
|
|
105
103
|
|
|
106
104
|
if (item.background) {
|
|
107
105
|
if (item.background.bgType === 'color') {
|
|
@@ -171,12 +169,7 @@ function (_super) {
|
|
|
171
169
|
}
|
|
172
170
|
|
|
173
171
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
|
-
className: "m-banner-mobile"
|
|
175
|
-
style: {
|
|
176
|
-
marginBottom: (0, _commonUtil.ensure)(function () {
|
|
177
|
-
return data.spacing.mobile.marginBottom;
|
|
178
|
-
}, 0)
|
|
179
|
-
}
|
|
172
|
+
className: "m-banner-mobile"
|
|
180
173
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
181
174
|
ref: this.carouselRef,
|
|
182
175
|
afterChange: function afterChange(n) {
|
|
@@ -191,7 +184,7 @@ function (_super) {
|
|
|
191
184
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
192
185
|
key: item.id
|
|
193
186
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
194
|
-
style: _this.
|
|
187
|
+
style: _this.getBackgroundStyle(item)
|
|
195
188
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
196
189
|
className: "carouselItem",
|
|
197
190
|
onMouseEnter: _this.mouseEnterWrap,
|
|
@@ -132,18 +132,18 @@ function (_super) {
|
|
|
132
132
|
if ((_b = data.setting.navigation) === null || _b === void 0 ? void 0 : _b.size) {
|
|
133
133
|
e.target.style.fontSize = data.setting.navigation.size;
|
|
134
134
|
}
|
|
135
|
-
};
|
|
135
|
+
}; // padding用统一设置
|
|
136
136
|
|
|
137
|
-
_this.getPaddingAndBackground = function (item) {
|
|
138
|
-
var spacing = _this.props.data.spacing; // const { spacing, background } = data;
|
|
139
137
|
|
|
140
|
-
|
|
138
|
+
_this.getBackgroundStyle = function (item) {
|
|
139
|
+
// const { data: { spacing } } = this.props;
|
|
140
|
+
// const { spacing, background } = data;
|
|
141
|
+
// const { device } = window.magicDesign;
|
|
141
142
|
var wrapStyle = {}; // 边距
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
// if (spacing && spacing[device]) {
|
|
144
|
+
// wrapStyle = { ...wrapStyle, ...spacing[device] };
|
|
145
|
+
// }
|
|
146
|
+
// 背景
|
|
147
147
|
|
|
148
148
|
if (item.background) {
|
|
149
149
|
if (item.background.bgType === 'color') {
|
|
@@ -229,7 +229,7 @@ function (_super) {
|
|
|
229
229
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
230
230
|
key: item.id
|
|
231
231
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
232
|
-
style: _this.
|
|
232
|
+
style: _this.getBackgroundStyle(item)
|
|
233
233
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
234
234
|
className: "carouselItem",
|
|
235
235
|
onMouseEnter: _this.mouseEnterWrap,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
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); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -17,6 +15,8 @@ var _components = require("../../../../meta-comp/components");
|
|
|
17
15
|
|
|
18
16
|
var _Text = require("../../../../meta-comp/components/Text");
|
|
19
17
|
|
|
18
|
+
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
19
|
+
|
|
20
20
|
require("./index.less");
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -25,6 +25,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
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
|
+
|
|
28
30
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
31
|
var _extendStatics = function extendStatics(d, b) {
|
|
30
32
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -67,6 +69,16 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
67
69
|
return __assign.apply(this, arguments);
|
|
68
70
|
};
|
|
69
71
|
|
|
72
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
73
|
+
var c = arguments.length,
|
|
74
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
75
|
+
d;
|
|
76
|
+
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--) {
|
|
77
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
78
|
+
}
|
|
79
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
80
|
+
};
|
|
81
|
+
|
|
70
82
|
var Newsletter =
|
|
71
83
|
/** @class */
|
|
72
84
|
function (_super) {
|
|
@@ -115,6 +127,7 @@ function (_super) {
|
|
|
115
127
|
|
|
116
128
|
Newsletter.type = 'NEWSLETTER';
|
|
117
129
|
Newsletter.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
130
|
+
Newsletter = __decorate([_compositeDecorator["default"]], Newsletter);
|
|
118
131
|
return Newsletter;
|
|
119
132
|
}(_react.Component);
|
|
120
133
|
|
|
@@ -63,7 +63,8 @@ function (_super) {
|
|
|
63
63
|
var _a = this.props,
|
|
64
64
|
data = _a.data,
|
|
65
65
|
configCompSpace = _a.configCompSpace,
|
|
66
|
-
configWidth = _a.configWidth
|
|
66
|
+
configWidth = _a.configWidth,
|
|
67
|
+
fillUpWidth = _a.fillUpWidth;
|
|
67
68
|
var obj = data[window.magicDesign.device] || {};
|
|
68
69
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
70
|
className: "spacing-config-container"
|
|
@@ -80,6 +81,17 @@ function (_super) {
|
|
|
80
81
|
value: {
|
|
81
82
|
count: obj.contentWidth
|
|
82
83
|
}
|
|
84
|
+
})), fillUpWidth && window.magicDesign.device === 'pc' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
85
|
+
layout: "horizontal",
|
|
86
|
+
title: "Fill the page"
|
|
87
|
+
}, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
|
|
88
|
+
checked: obj.fillUp,
|
|
89
|
+
onChange: function onChange(e) {
|
|
90
|
+
console.log('ddd fill up', e.target.checked);
|
|
91
|
+
obj.fillUp = e.target.checked;
|
|
92
|
+
|
|
93
|
+
_this.selfRender();
|
|
94
|
+
}
|
|
83
95
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
84
96
|
title: (0, _locale.i18n)('PADDING')
|
|
85
97
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -147,6 +159,7 @@ function (_super) {
|
|
|
147
159
|
SpacingConfig.defaultProps = {
|
|
148
160
|
configCompSpace: true,
|
|
149
161
|
configWidth: false,
|
|
162
|
+
fillUpWidth: false,
|
|
150
163
|
data: {
|
|
151
164
|
pc: {
|
|
152
165
|
paddingTop: 0,
|
|
@@ -74,7 +74,8 @@ function (_super) {
|
|
|
74
74
|
name: (0, _locale.i18n)('SPACING'),
|
|
75
75
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
76
76
|
configCompSpace: true,
|
|
77
|
-
data: data.spacing
|
|
77
|
+
data: data.spacing,
|
|
78
|
+
fillUpWidth: true
|
|
78
79
|
})
|
|
79
80
|
}, {
|
|
80
81
|
key: 'searchBar2',
|
|
@@ -73,6 +73,10 @@ function PageCompList(_a) {
|
|
|
73
73
|
clickedFloor = _d[0],
|
|
74
74
|
setClickedFloor = _d[1];
|
|
75
75
|
|
|
76
|
+
var _e = (0, _react.useState)(''),
|
|
77
|
+
hoveredFloor = _e[0],
|
|
78
|
+
setHoveredFloor = _e[1];
|
|
79
|
+
|
|
76
80
|
var ref = (0, _react.useRef)();
|
|
77
81
|
(0, _react.useEffect)(function () {
|
|
78
82
|
setComponents(pageData || []);
|
|
@@ -80,6 +84,7 @@ function PageCompList(_a) {
|
|
|
80
84
|
(0, _react.useEffect)(function () {
|
|
81
85
|
var distroy = (0, _mobx.autorun)(function () {
|
|
82
86
|
setClickedFloor(_mobx.store.clickedFloor);
|
|
87
|
+
setHoveredFloor(_mobx.store.hoveredFloor);
|
|
83
88
|
});
|
|
84
89
|
return distroy;
|
|
85
90
|
}, []);
|
|
@@ -104,6 +109,7 @@ function PageCompList(_a) {
|
|
|
104
109
|
};
|
|
105
110
|
|
|
106
111
|
var onDragEnter = function onDragEnter(e) {
|
|
112
|
+
console.log('drag enter');
|
|
107
113
|
var hoverNodeId = e.currentTarget.dataset.nodeid;
|
|
108
114
|
|
|
109
115
|
if (dragId === hoverNodeId) {
|
|
@@ -196,8 +202,28 @@ function PageCompList(_a) {
|
|
|
196
202
|
value: "4"
|
|
197
203
|
}, (0, _locale.i18n)('DELETE')));
|
|
198
204
|
|
|
205
|
+
var onMouseEnter = function onMouseEnter() {
|
|
206
|
+
if (window.magicDesign.mode === 'renderer') {
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
_mobx.store.setState({
|
|
211
|
+
hoveredFloor: comp.id
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
var onMouseLeave = function onMouseLeave() {
|
|
216
|
+
if (window.magicDesign.mode === 'renderer') {
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
_mobx.store.setState({
|
|
221
|
+
hoveredFloor: ''
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
|
|
199
225
|
var dragging = dragId === String(comp.id);
|
|
200
|
-
var active = clickedFloor
|
|
226
|
+
var active = [hoveredFloor, clickedFloor].includes(comp.id);
|
|
201
227
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
202
228
|
key: "card" + comp.id,
|
|
203
229
|
className: (0, _classnames["default"])('card-wrap', {
|
|
@@ -212,6 +238,8 @@ function PageCompList(_a) {
|
|
|
212
238
|
e.preventDefault();
|
|
213
239
|
},
|
|
214
240
|
onDragStart: onDragStart,
|
|
241
|
+
onMouseEnter: onMouseEnter,
|
|
242
|
+
onMouseLeave: onMouseLeave,
|
|
215
243
|
style: {
|
|
216
244
|
opacity: dragging ? '0.4' : '1'
|
|
217
245
|
}
|
|
@@ -146,6 +146,7 @@ function (_super) {
|
|
|
146
146
|
renderHeader = _a.renderHeader,
|
|
147
147
|
pageData = _a.pageData,
|
|
148
148
|
appointmentDate = _a.appointmentDate;
|
|
149
|
+
var pageBackground = window.magicDesign.pageBackground;
|
|
149
150
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
151
|
className: (0, _classnames["default"])('design-area-wrap', {
|
|
151
152
|
'phone-edit': this.isPhoneEdit()
|
|
@@ -162,10 +163,8 @@ function (_super) {
|
|
|
162
163
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
163
164
|
className: "device_border",
|
|
164
165
|
style: {
|
|
165
|
-
background:
|
|
166
|
+
background: pageBackground
|
|
166
167
|
}
|
|
167
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
-
className: "device_content"
|
|
169
168
|
}, this.filterCompFloor(pageData).map(function (nodeData) {
|
|
170
169
|
var Clazz = _componentTypes.componentMap[nodeData.type];
|
|
171
170
|
|
|
@@ -181,7 +180,7 @@ function (_super) {
|
|
|
181
180
|
key: nodeData.id,
|
|
182
181
|
id: "view" + nodeData.id
|
|
183
182
|
}, /*#__PURE__*/_react["default"].createElement(Clazz, __assign({}, newInstanceProps), null));
|
|
184
|
-
}))))
|
|
183
|
+
}))));
|
|
185
184
|
};
|
|
186
185
|
|
|
187
186
|
return ViewArea;
|
|
@@ -74,9 +74,8 @@
|
|
|
74
74
|
padding: 24px;
|
|
75
75
|
|
|
76
76
|
.device_border {
|
|
77
|
-
padding: 1px;
|
|
78
|
-
max-width: 1240px;
|
|
79
77
|
width: 100%;
|
|
78
|
+
padding: 1px;
|
|
80
79
|
min-height: 70vh;
|
|
81
80
|
border: 16px solid #FFF;
|
|
82
81
|
border-radius: 12px;
|
|
@@ -84,10 +83,6 @@
|
|
|
84
83
|
height: 100%;
|
|
85
84
|
overflow: scroll;
|
|
86
85
|
box-sizing: content-box;
|
|
87
|
-
|
|
88
|
-
.device_content {
|
|
89
|
-
min-width: 1200px;
|
|
90
|
-
}
|
|
91
86
|
}
|
|
92
87
|
}
|
|
93
88
|
}
|
|
@@ -41,7 +41,8 @@ var setDesignConfig = function setDesignConfig(props) {
|
|
|
41
41
|
device: device,
|
|
42
42
|
isShop: isShop
|
|
43
43
|
}, config), {
|
|
44
|
-
compSpacing: Number(config.compSpacing)
|
|
44
|
+
compSpacing: Number(config.compSpacing),
|
|
45
|
+
compWidth: Number(config.compWidth)
|
|
45
46
|
});
|
|
46
47
|
};
|
|
47
48
|
/**
|
|
@@ -51,7 +52,8 @@ var setDesignConfig = function setDesignConfig(props) {
|
|
|
51
52
|
|
|
52
53
|
var Renderer = function Renderer(props) {
|
|
53
54
|
var pageData = props.pageData;
|
|
54
|
-
setDesignConfig(props);
|
|
55
|
+
setDesignConfig(props);
|
|
56
|
+
var pageBackground = window.magicDesign.pageBackground; // 根据楼层展示设备进行过滤
|
|
55
57
|
|
|
56
58
|
var filterCompFloor = function filterCompFloor() {
|
|
57
59
|
var source = [];
|
|
@@ -69,7 +71,7 @@ var Renderer = function Renderer(props) {
|
|
|
69
71
|
className: "render_wrap",
|
|
70
72
|
magic_design: "",
|
|
71
73
|
style: {
|
|
72
|
-
background:
|
|
74
|
+
background: pageBackground
|
|
73
75
|
}
|
|
74
76
|
}, filterCompFloor().map(function (nodeData) {
|
|
75
77
|
var Clazz = _componentTypes.componentMap[nodeData.type];
|