@fonixtree/magic-design 0.0.126 → 0.0.131
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/ImageModal/index.js +75 -31
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +5 -4
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +18 -17
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +1 -1
- package/es/composite-comp/bol/components/Carousel/pc/index.js +35 -34
- package/es/composite-comp/bol/components/Carousel/pc/index.less +4 -4
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +0 -5
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +0 -6
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +2 -1
- package/es/composite-comp/bol/components/Tag/defaultJSON.js +15 -2
- package/es/composite-comp/bol/components/Tag/index.js +1 -1
- package/es/composite-comp/bol/components/Text/index.js +22 -5
- package/es/composite-comp/bol/components/Text/index.less +0 -3
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +1 -0
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +1 -1
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
- package/es/composite-comp/dito/components/PcNavigation/pc/index.less +2 -1
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/Recommend/pc/index.js +16 -41
- package/es/composite-comp/dito/components/Recommend/pc/index.less +2 -2
- package/es/constants/index.js +3 -1
- package/es/core/Designer/LeftTitle/index.js +66 -0
- package/es/core/Designer/LeftTitle/index.less +9 -0
- package/es/core/Designer/QuickMenuBar/index.js +16 -5
- package/es/core/Designer/RenderHtml/index.js +85 -0
- package/es/core/Designer/RenderHtml/index.less +4 -0
- package/es/core/Designer/index.js +200 -3
- package/es/locale/en/en.json +1 -0
- package/es/locale/es/es.json +1 -0
- package/es/locale/id/id.json +1 -0
- package/es/utils/businessUtil.js +3 -3
- package/lib/common/ImageModal/index.js +75 -31
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +5 -4
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +18 -17
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +1 -1
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +35 -34
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +4 -4
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +0 -5
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +0 -6
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +2 -1
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +15 -2
- package/lib/composite-comp/bol/components/Tag/index.js +1 -1
- package/lib/composite-comp/bol/components/Text/index.js +22 -5
- package/lib/composite-comp/bol/components/Text/index.less +0 -3
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +1 -0
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +1 -1
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.less +2 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +16 -41
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +2 -2
- package/lib/constants/index.js +3 -1
- package/lib/core/Designer/LeftTitle/index.js +66 -0
- package/lib/core/Designer/LeftTitle/index.less +9 -0
- package/lib/core/Designer/QuickMenuBar/index.js +16 -5
- package/lib/core/Designer/RenderHtml/index.js +85 -0
- package/lib/core/Designer/RenderHtml/index.less +4 -0
- package/lib/core/Designer/index.js +200 -3
- package/lib/locale/en/en.json +1 -0
- package/lib/locale/es/es.json +1 -0
- package/lib/locale/id/id.json +1 -0
- package/lib/utils/businessUtil.js +3 -3
- package/package.json +4 -2
|
@@ -243,45 +243,49 @@ function ImageModal(_a) {
|
|
|
243
243
|
selectedPics = _f[0],
|
|
244
244
|
setSelectedPics = _f[1];
|
|
245
245
|
|
|
246
|
-
var _g = (0, _react.useState)(
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
var _g = (0, _react.useState)(''),
|
|
247
|
+
wapUrl = _g[0],
|
|
248
|
+
setWapUrl = _g[1];
|
|
249
249
|
|
|
250
|
-
var _h = (0, _react.useState)(
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
var _h = (0, _react.useState)([]),
|
|
251
|
+
contents = _h[0],
|
|
252
|
+
setContents = _h[1];
|
|
253
253
|
|
|
254
|
-
var _j = (0, _react.useState)(
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
var _j = (0, _react.useState)(0),
|
|
255
|
+
total = _j[0],
|
|
256
|
+
setTotal = _j[1];
|
|
257
257
|
|
|
258
|
-
var _k = (0, _react.useState)(
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
var _k = (0, _react.useState)(1),
|
|
259
|
+
pageIndex = _k[0],
|
|
260
|
+
setPageIndex = _k[1];
|
|
261
261
|
|
|
262
|
-
var _l = (0, _react.useState)(
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
var _l = (0, _react.useState)(20),
|
|
263
|
+
pageSize = _l[0],
|
|
264
|
+
setPageSize = _l[1];
|
|
265
265
|
|
|
266
|
-
var _m = (0, _react.useState)(
|
|
267
|
-
|
|
268
|
-
|
|
266
|
+
var _m = (0, _react.useState)(false),
|
|
267
|
+
spinning = _m[0],
|
|
268
|
+
setSpinning = _m[1];
|
|
269
269
|
|
|
270
|
-
var _o = (0, _react.useState)(
|
|
271
|
-
|
|
272
|
-
|
|
270
|
+
var _o = (0, _react.useState)(''),
|
|
271
|
+
name = _o[0],
|
|
272
|
+
setName = _o[1];
|
|
273
273
|
|
|
274
|
-
var _p = (0, _react.useState)(
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
var _p = (0, _react.useState)([]),
|
|
275
|
+
contentcatgsList = _p[0],
|
|
276
|
+
setContentcatgsList = _p[1];
|
|
277
277
|
|
|
278
|
-
var _q = (0, _react.useState)(
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
var _q = (0, _react.useState)(''),
|
|
279
|
+
searchValue = _q[0],
|
|
280
|
+
setSearchValue = _q[1];
|
|
281
281
|
|
|
282
|
-
var _r = (0, _react.useState)(
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
var _r = (0, _react.useState)([]),
|
|
283
|
+
expandedKeys = _r[0],
|
|
284
|
+
setExpandedKeys = _r[1];
|
|
285
|
+
|
|
286
|
+
var _s = (0, _react.useState)(true),
|
|
287
|
+
autoExpandParent = _s[0],
|
|
288
|
+
setAutoExpandParent = _s[1]; // const currentUser = sessionUtil.getUser() || {};
|
|
285
289
|
// const { _csrf } = currentUser;
|
|
286
290
|
// const headers = {};
|
|
287
291
|
// if (_csrf && _csrf.headerName) {
|
|
@@ -425,8 +429,44 @@ function ImageModal(_a) {
|
|
|
425
429
|
});
|
|
426
430
|
};
|
|
427
431
|
|
|
432
|
+
var getPreConfig = function getPreConfig() {
|
|
433
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
434
|
+
var wapUrl_1, error_1;
|
|
435
|
+
return __generator(this, function (_a) {
|
|
436
|
+
switch (_a.label) {
|
|
437
|
+
case 0:
|
|
438
|
+
_a.trys.push([0, 2,, 3]);
|
|
439
|
+
|
|
440
|
+
return [4
|
|
441
|
+
/*yield*/
|
|
442
|
+
, (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/pages/platforminfo")];
|
|
443
|
+
|
|
444
|
+
case 1:
|
|
445
|
+
wapUrl_1 = _a.sent().wapUrl;
|
|
446
|
+
setWapUrl(wapUrl_1);
|
|
447
|
+
return [3
|
|
448
|
+
/*break*/
|
|
449
|
+
, 3];
|
|
450
|
+
|
|
451
|
+
case 2:
|
|
452
|
+
error_1 = _a.sent();
|
|
453
|
+
console.error(error_1);
|
|
454
|
+
return [3
|
|
455
|
+
/*break*/
|
|
456
|
+
, 3];
|
|
457
|
+
|
|
458
|
+
case 3:
|
|
459
|
+
return [2
|
|
460
|
+
/*return*/
|
|
461
|
+
];
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
});
|
|
465
|
+
};
|
|
466
|
+
|
|
428
467
|
(0, _react.useEffect)(function () {
|
|
429
468
|
getContentCatgs();
|
|
469
|
+
getPreConfig();
|
|
430
470
|
}, []);
|
|
431
471
|
|
|
432
472
|
var selectFolder = function selectFolder(id) {
|
|
@@ -676,7 +716,11 @@ function ImageModal(_a) {
|
|
|
676
716
|
},
|
|
677
717
|
onCancel: onCancel,
|
|
678
718
|
onOk: function onOk() {
|
|
679
|
-
return _onOk(selectedPics)
|
|
719
|
+
return _onOk(selectedPics.map(function (item) {
|
|
720
|
+
return __assign(__assign({}, item), {
|
|
721
|
+
url: wapUrl + item.url
|
|
722
|
+
});
|
|
723
|
+
}));
|
|
680
724
|
},
|
|
681
725
|
visible: visible
|
|
682
726
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
|
|
@@ -44,8 +44,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
44
44
|
fontFamily: 'Open Sans',
|
|
45
45
|
fontWeight: 600,
|
|
46
46
|
fontSize: 16,
|
|
47
|
+
pcFontSize: 42,
|
|
47
48
|
color: '#232F46',
|
|
48
|
-
// width: 200,
|
|
49
49
|
textAlign: 'center'
|
|
50
50
|
},
|
|
51
51
|
underline: {
|
|
@@ -67,8 +67,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
67
67
|
fontFamily: 'Open Sans',
|
|
68
68
|
fontWeight: 400,
|
|
69
69
|
fontSize: 14,
|
|
70
|
+
pcFontSize: 28,
|
|
70
71
|
color: '##232F46',
|
|
71
|
-
// width: 230,
|
|
72
72
|
textAlign: 'center'
|
|
73
73
|
},
|
|
74
74
|
underline: {},
|
|
@@ -107,8 +107,9 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
107
107
|
buttonText: {
|
|
108
108
|
sizeType: 'Customize font styles',
|
|
109
109
|
fontFamily: 'Open Sans',
|
|
110
|
-
fontWeight:
|
|
111
|
-
fontSize:
|
|
110
|
+
fontWeight: 400,
|
|
111
|
+
fontSize: 13,
|
|
112
|
+
pcFontSize: 16,
|
|
112
113
|
fontStyle: 'normal',
|
|
113
114
|
color: '#8493AF'
|
|
114
115
|
},
|
|
@@ -69,22 +69,23 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
69
69
|
return __assign.apply(this, arguments);
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
var MOBILE_IMG_SIZE =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
72
|
+
var MOBILE_IMG_SIZE = {
|
|
73
|
+
1: {
|
|
74
|
+
maxH: 282
|
|
75
|
+
},
|
|
76
|
+
2: {
|
|
77
|
+
maxH: 137
|
|
78
|
+
},
|
|
79
|
+
3: {
|
|
80
|
+
maxH: 87
|
|
81
|
+
},
|
|
82
|
+
4: {
|
|
83
|
+
maxH: 66
|
|
84
|
+
},
|
|
85
|
+
5: {
|
|
86
|
+
maxH: 50
|
|
87
|
+
}
|
|
88
|
+
};
|
|
88
89
|
|
|
89
90
|
var CarouselMobile =
|
|
90
91
|
/** @class */
|
|
@@ -226,7 +227,7 @@ function (_super) {
|
|
|
226
227
|
className: "img"
|
|
227
228
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
228
229
|
data: item.image,
|
|
229
|
-
maxHeight: MOBILE_IMG_SIZE[colNum
|
|
230
|
+
maxHeight: MOBILE_IMG_SIZE[colNum].maxH
|
|
230
231
|
})), showText && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, item.title.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
231
232
|
className: "title"
|
|
232
233
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
@@ -55,37 +55,38 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
55
55
|
};
|
|
56
56
|
}();
|
|
57
57
|
|
|
58
|
-
var PC_IMG_SIZE =
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
58
|
+
var PC_IMG_SIZE = {
|
|
59
|
+
1: {
|
|
60
|
+
minW: 150,
|
|
61
|
+
minH: 150,
|
|
62
|
+
maxH: 680
|
|
63
|
+
},
|
|
64
|
+
2: {
|
|
65
|
+
minW: 150,
|
|
66
|
+
minH: 150,
|
|
67
|
+
maxH: 524
|
|
68
|
+
},
|
|
69
|
+
3: {
|
|
70
|
+
minW: 100,
|
|
71
|
+
minH: 100,
|
|
72
|
+
maxH: 341
|
|
73
|
+
},
|
|
74
|
+
4: {
|
|
75
|
+
minW: 100,
|
|
76
|
+
minH: 100,
|
|
77
|
+
maxH: 251
|
|
78
|
+
},
|
|
79
|
+
5: {
|
|
80
|
+
minW: 100,
|
|
81
|
+
minH: 100,
|
|
82
|
+
maxH: 195
|
|
83
|
+
},
|
|
84
|
+
6: {
|
|
85
|
+
minW: 100,
|
|
86
|
+
minH: 100,
|
|
87
|
+
maxH: 168
|
|
88
|
+
}
|
|
89
|
+
};
|
|
89
90
|
|
|
90
91
|
var CarouselPc =
|
|
91
92
|
/** @class */
|
|
@@ -232,9 +233,9 @@ function (_super) {
|
|
|
232
233
|
className: "img"
|
|
233
234
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
234
235
|
data: item.image,
|
|
235
|
-
maxHeight: PC_IMG_SIZE[colNum
|
|
236
|
-
minHeight: PC_IMG_SIZE[colNum
|
|
237
|
-
minWidth: PC_IMG_SIZE[colNum
|
|
236
|
+
maxHeight: PC_IMG_SIZE[colNum].maxH,
|
|
237
|
+
minHeight: PC_IMG_SIZE[colNum].minH,
|
|
238
|
+
minWidth: PC_IMG_SIZE[colNum].minW
|
|
238
239
|
})), showText && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, item.title.open && !((0, _coreUtil.isPc)() && item.title.pcText === '') && /*#__PURE__*/_react["default"].createElement("div", {
|
|
239
240
|
className: "title"
|
|
240
241
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
@@ -56,18 +56,18 @@
|
|
|
56
56
|
.title {
|
|
57
57
|
display: flex;
|
|
58
58
|
justify-content: center;
|
|
59
|
-
margin-top:
|
|
59
|
+
margin-top: 24px;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.text {
|
|
63
63
|
display: flex;
|
|
64
64
|
justify-content: center;
|
|
65
|
-
margin-top:
|
|
65
|
+
margin-top: 6px;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.tags {
|
|
69
|
-
margin-top:
|
|
70
|
-
margin-bottom:
|
|
69
|
+
margin-top: 12px;
|
|
70
|
+
margin-bottom: 20px;
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: row;
|
|
73
73
|
align-items: center;
|
|
@@ -57,27 +57,22 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
|
57
57
|
|
|
58
58
|
var MOBILE_IMG_SIZE = {
|
|
59
59
|
1: {
|
|
60
|
-
maxW: 343,
|
|
61
60
|
maxH: 258,
|
|
62
61
|
gap: 12
|
|
63
62
|
},
|
|
64
63
|
2: {
|
|
65
|
-
maxW: 165,
|
|
66
64
|
maxH: 124,
|
|
67
65
|
gap: 12
|
|
68
66
|
},
|
|
69
67
|
3: {
|
|
70
|
-
maxW: 106,
|
|
71
68
|
maxH: 80,
|
|
72
69
|
gap: 12
|
|
73
70
|
},
|
|
74
71
|
4: {
|
|
75
|
-
maxW: 77,
|
|
76
72
|
maxH: 56,
|
|
77
73
|
gap: 12
|
|
78
74
|
},
|
|
79
75
|
5: {
|
|
80
|
-
maxW: 62,
|
|
81
76
|
maxH: 45,
|
|
82
77
|
gap: 8
|
|
83
78
|
}
|
|
@@ -58,7 +58,6 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
|
58
58
|
var PC_IMG_SIZE = {
|
|
59
59
|
1: {
|
|
60
60
|
minW: 150,
|
|
61
|
-
maxW: 1280,
|
|
62
61
|
minH: 150,
|
|
63
62
|
maxH: 960,
|
|
64
63
|
defW: 1072,
|
|
@@ -67,35 +66,30 @@ var PC_IMG_SIZE = {
|
|
|
67
66
|
},
|
|
68
67
|
2: {
|
|
69
68
|
minW: 150,
|
|
70
|
-
maxW: 628,
|
|
71
69
|
minH: 150,
|
|
72
70
|
maxH: 471,
|
|
73
71
|
gap: 24
|
|
74
72
|
},
|
|
75
73
|
3: {
|
|
76
74
|
minW: 100,
|
|
77
|
-
maxW: 410,
|
|
78
75
|
minH: 100,
|
|
79
76
|
maxH: 308,
|
|
80
77
|
gap: 24
|
|
81
78
|
},
|
|
82
79
|
4: {
|
|
83
80
|
minW: 100,
|
|
84
|
-
maxW: 302,
|
|
85
81
|
minH: 100,
|
|
86
82
|
maxH: 227,
|
|
87
83
|
gap: 24
|
|
88
84
|
},
|
|
89
85
|
5: {
|
|
90
86
|
minW: 100,
|
|
91
|
-
maxW: 236,
|
|
92
87
|
minH: 100,
|
|
93
88
|
maxH: 177,
|
|
94
89
|
gap: 24
|
|
95
90
|
},
|
|
96
91
|
6: {
|
|
97
92
|
minW: 100,
|
|
98
|
-
maxW: 193,
|
|
99
93
|
minH: 100,
|
|
100
94
|
maxH: 145,
|
|
101
95
|
gap: 24
|
|
@@ -28,8 +28,7 @@ var tagGroupSourceJSON = function tagGroupSourceJSON() {
|
|
|
28
28
|
fontWeight: 600,
|
|
29
29
|
fontSize: 12,
|
|
30
30
|
fontStyle: 'normal',
|
|
31
|
-
color: '#8493AF'
|
|
32
|
-
padding: '2px 8px'
|
|
31
|
+
color: '#8493AF'
|
|
33
32
|
},
|
|
34
33
|
buttonBorder: {
|
|
35
34
|
open: true,
|
|
@@ -40,6 +39,20 @@ var tagGroupSourceJSON = function tagGroupSourceJSON() {
|
|
|
40
39
|
iconUrl: '',
|
|
41
40
|
layout: 'right'
|
|
42
41
|
},
|
|
42
|
+
spacing: {
|
|
43
|
+
pc: {
|
|
44
|
+
paddingTop: 2,
|
|
45
|
+
paddingBottom: 2,
|
|
46
|
+
paddingLeft: 8,
|
|
47
|
+
paddingRight: 8
|
|
48
|
+
},
|
|
49
|
+
mobile: {
|
|
50
|
+
paddingTop: 2,
|
|
51
|
+
paddingBottom: 2,
|
|
52
|
+
paddingLeft: 8,
|
|
53
|
+
paddingRight: 8
|
|
54
|
+
}
|
|
55
|
+
},
|
|
43
56
|
text: 'Button Tag',
|
|
44
57
|
hover: null
|
|
45
58
|
}
|
|
@@ -82,7 +82,7 @@ function (_super) {
|
|
|
82
82
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
83
83
|
data: nodeData.content.image
|
|
84
84
|
})), nodeData.groupSource && nodeData.groupSource.map(function (m) {
|
|
85
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
+
return m.button.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
86
86
|
className: "first-button"
|
|
87
87
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
88
88
|
data: m.button
|
|
@@ -9,14 +9,14 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
12
14
|
var _defaultJSON = require("./defaultJSON");
|
|
13
15
|
|
|
14
16
|
var _components = require("../../../../meta-comp/components");
|
|
15
17
|
|
|
16
18
|
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
17
19
|
|
|
18
|
-
require("./index.less");
|
|
19
|
-
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
22
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -25,6 +25,18 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
25
25
|
|
|
26
26
|
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); }
|
|
27
27
|
|
|
28
|
+
var __makeTemplateObject = void 0 && (void 0).__makeTemplateObject || function (cooked, raw) {
|
|
29
|
+
if (Object.defineProperty) {
|
|
30
|
+
Object.defineProperty(cooked, "raw", {
|
|
31
|
+
value: raw
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
cooked.raw = raw;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return cooked;
|
|
38
|
+
};
|
|
39
|
+
|
|
28
40
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
41
|
var _extendStatics = function extendStatics(d, b) {
|
|
30
42
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -61,6 +73,10 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
61
73
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
74
|
};
|
|
63
75
|
|
|
76
|
+
// import './index.less';
|
|
77
|
+
// less to css 在线地址 https://tool.oschina.net/less
|
|
78
|
+
var AppStyle = _styledComponents["default"].div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n.m-text .title-wrap {\n font-weight: 500;\n font-size: 20px;\n}\n.m-text .sub-title {\n font-size: 15px;\n color: #b7b7b7;\n margin-top: 10px;\n}\n.m-text .group-content-wrap {\n width: 100%;\n}\n.m-text .group-content-wrap .group-wrap-container {\n padding: 20px;\n}\n.m-text .group-content-wrap .group-wrap {\n display: flex;\n flex-direction: column;\n margin-top: 20px;\n width: 100%;\n}\n.m-text .group-content-wrap .group-wrap .group-title {\n font-size: 14px;\n}\n.m-text .group-content-wrap.col-1 .group-wrap {\n width: 100%;\n}\n.m-text .group-content-wrap.col-2 {\n display: grid;\n grid-template-columns: 50% 50%;\n}\n.m-text .group-content-wrap.col-3 {\n display: grid;\n grid-template-columns: 33.3% 33.3% 33.3%;\n}\n.m-text .group-content-wrap.mobile {\n display: block;\n}\n"], ["\n.m-text .title-wrap {\n font-weight: 500;\n font-size: 20px;\n}\n.m-text .sub-title {\n font-size: 15px;\n color: #b7b7b7;\n margin-top: 10px;\n}\n.m-text .group-content-wrap {\n width: 100%;\n}\n.m-text .group-content-wrap .group-wrap-container {\n padding: 20px;\n}\n.m-text .group-content-wrap .group-wrap {\n display: flex;\n flex-direction: column;\n margin-top: 20px;\n width: 100%;\n}\n.m-text .group-content-wrap .group-wrap .group-title {\n font-size: 14px;\n}\n.m-text .group-content-wrap.col-1 .group-wrap {\n width: 100%;\n}\n.m-text .group-content-wrap.col-2 {\n display: grid;\n grid-template-columns: 50% 50%;\n}\n.m-text .group-content-wrap.col-3 {\n display: grid;\n grid-template-columns: 33.3% 33.3% 33.3%;\n}\n.m-text .group-content-wrap.mobile {\n display: block;\n}\n"])));
|
|
79
|
+
|
|
64
80
|
var Text =
|
|
65
81
|
/** @class */
|
|
66
82
|
function (_super) {
|
|
@@ -74,7 +90,7 @@ function (_super) {
|
|
|
74
90
|
var _a;
|
|
75
91
|
|
|
76
92
|
var nodeData = this.props.nodeData;
|
|
77
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
+
return /*#__PURE__*/_react["default"].createElement(AppStyle, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
94
|
className: "m-text",
|
|
79
95
|
onClick: this.onComponentClick
|
|
80
96
|
}, nodeData.title.headline.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -105,7 +121,7 @@ function (_super) {
|
|
|
105
121
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
106
122
|
data: group.content.text
|
|
107
123
|
}))));
|
|
108
|
-
})));
|
|
124
|
+
}))));
|
|
109
125
|
};
|
|
110
126
|
|
|
111
127
|
Text.defaultProps = {};
|
|
@@ -116,4 +132,5 @@ function (_super) {
|
|
|
116
132
|
}(_react.Component);
|
|
117
133
|
|
|
118
134
|
var _default = Text;
|
|
119
|
-
exports["default"] = _default;
|
|
135
|
+
exports["default"] = _default;
|
|
136
|
+
var templateObject_1;
|
|
@@ -120,6 +120,7 @@ function (_super) {
|
|
|
120
120
|
|
|
121
121
|
var getConfig = function getConfig() {
|
|
122
122
|
return /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
123
|
+
headerSize: "middle",
|
|
123
124
|
onRefresh: function onRefresh() {
|
|
124
125
|
return (0, _coreUtil.renderPreview)();
|
|
125
126
|
},
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
display: flex;
|
|
8
8
|
align-items: center;
|
|
9
9
|
min-width: 130px;
|
|
10
|
-
margin-right:
|
|
10
|
+
margin-right: 44px;
|
|
11
11
|
|
|
12
12
|
&:hover {
|
|
13
13
|
@keyframes show-active{
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
.menu-drop {
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
|
+
flex-shrink: 0;
|
|
42
43
|
&> img {
|
|
43
44
|
width: 16px;
|
|
44
45
|
margin-right: 10px;
|
|
@@ -548,7 +548,7 @@ function (_super) {
|
|
|
548
548
|
var curContent = JSON.stringify(panelProps.content);
|
|
549
549
|
var curSpacing = JSON.stringify(panelProps.spacing);
|
|
550
550
|
|
|
551
|
-
if (curSpacing !== this.preSpacing) {
|
|
551
|
+
if (curLayout !== this.preLayout || curSpacing !== this.preSpacing) {
|
|
552
552
|
this.listenWidth();
|
|
553
553
|
}
|
|
554
554
|
|