@fonixtree/magic-design 1.0.131 → 1.0.132
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/assets/fonts/magic-box-iconfont.css +11 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/es/assets/images/layout-icon/news-layout1.png +0 -0
- package/es/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/es/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/es/assets/less/global.less +1 -0
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/es/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +313 -0
- package/es/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +194 -0
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/es/composite-comp/dito/components/News/defaultJSON.js +176 -0
- package/es/composite-comp/dito/components/News/index.js +84 -0
- package/es/composite-comp/dito/components/News/pc/index.js +113 -0
- package/es/composite-comp/dito/components/News/pc/index.less +46 -0
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +0 -10
- package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +215 -0
- package/es/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +146 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +591 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.less +162 -0
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +117 -0
- package/es/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +96 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +1 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +140 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +12 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/SvgMask/imgs/mask.svg +0 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/SvgMask/index.js +88 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/SvgMask/index.less +5 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +121 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +20 -0
- package/es/composite-comp/dito/components/SlideImage/pc/index.js +26 -0
- package/es/composite-comp/dito/components/SlideImage/pc/index.less +1 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +106 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/NewsConfig/index.js +114 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +156 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +108 -0
- package/es/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +198 -0
- package/es/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.less +0 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/es/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +357 -0
- package/es/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +349 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +0 -0
- package/es/constants/component-types.js +27 -3
- package/es/constants/index.js +16 -0
- package/es/constants/layout.js +34 -2
- package/es/locale/en/en.json +5 -1
- package/es/locale/es/es.json +5 -1
- package/es/locale/id/id.json +5 -1
- package/es/meta-comp/components/Button/editable.js +3 -1
- package/es/meta-comp/components/Button/index.js +2 -1
- package/es/meta-comp/components/Image/index.js +11 -4
- package/es/meta-comp/components/Image/index.less +7 -0
- package/es/utils/commonUtil.js +4 -1
- package/es/utils/pluginsUtil.js +1 -0
- package/lib/assets/fonts/magic-box-iconfont.css +11 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/layout-icon/grouped-carousel-layout1.png +0 -0
- package/lib/assets/images/layout-icon/news-layout1.png +0 -0
- package/lib/assets/images/layout-icon/search-dito-layout1.png +0 -0
- package/lib/assets/images/layout-icon/slide-image-layout1.png +0 -0
- package/lib/assets/less/global.less +1 -0
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +30 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +313 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/index.js +86 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +194 -0
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.less +65 -0
- package/lib/composite-comp/dito/components/News/defaultJSON.js +176 -0
- package/lib/composite-comp/dito/components/News/index.js +84 -0
- package/lib/composite-comp/dito/components/News/pc/index.js +113 -0
- package/lib/composite-comp/dito/components/News/pc/index.less +46 -0
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +0 -10
- package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +215 -0
- package/lib/composite-comp/dito/components/SearchDITO/index.js +86 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +146 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.less +25 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +591 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +162 -0
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +117 -0
- package/lib/composite-comp/dito/components/SlideImage/index.js +86 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +96 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +1 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +140 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.less +12 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/SvgMask/imgs/mask.svg +0 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/SvgMask/index.js +88 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/SvgMask/index.less +5 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +121 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +20 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/index.js +26 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/index.less +1 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.js +149 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.js +93 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedCarouselConfig/index.js +106 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.js +148 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.js +101 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/ConfigTitle/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/NewsConfig/index.js +114 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +156 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +7 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.js +179 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.js +181 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigSetting/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/index.js +69 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.js +150 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/ConfigGroup/index.less +16 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +108 -0
- package/lib/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.js +198 -0
- package/lib/composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig/index.less +0 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.js +133 -0
- package/lib/composite-comp/dito/second-config-panels/NewsSecondConfig/index.less +8 -0
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.js +357 -0
- package/lib/composite-comp/dito/second-config-panels/SearchDITOSecondConfig/index.less +79 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +349 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +0 -0
- package/lib/constants/component-types.js +27 -3
- package/lib/constants/index.js +16 -0
- package/lib/constants/layout.js +34 -2
- package/lib/locale/en/en.json +5 -1
- package/lib/locale/es/es.json +5 -1
- package/lib/locale/id/id.json +5 -1
- package/lib/meta-comp/components/Button/editable.js +3 -1
- package/lib/meta-comp/components/Button/index.js +2 -1
- package/lib/meta-comp/components/Image/index.js +11 -4
- package/lib/meta-comp/components/Image/index.less +7 -0
- package/lib/utils/commonUtil.js +4 -1
- package/lib/utils/pluginsUtil.js +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.m-grouped-carousel-pc {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
position: relative;
|
|
5
|
+
padding: 48px 0;
|
|
6
|
+
|
|
7
|
+
.tab-select-wrap {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
height: 26px;
|
|
12
|
+
overflow: auto;
|
|
13
|
+
position: relative;
|
|
14
|
+
margin-top: 12px;
|
|
15
|
+
margin-bottom: 12px;
|
|
16
|
+
z-index: 2;
|
|
17
|
+
|
|
18
|
+
.tab-title {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
text-align: center;
|
|
22
|
+
padding: 0 24px;
|
|
23
|
+
width: fit-content;
|
|
24
|
+
height: 100%;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tab-content {
|
|
33
|
+
margin-top: 360px;
|
|
34
|
+
|
|
35
|
+
.carousel-img {
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 0;
|
|
38
|
+
bottom: 0;
|
|
39
|
+
left: 0;
|
|
40
|
+
right: 0;
|
|
41
|
+
|
|
42
|
+
.bgImg {
|
|
43
|
+
height: 680px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.text-wrap {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
align-items: center;
|
|
52
|
+
|
|
53
|
+
.text {
|
|
54
|
+
margin-bottom: 12px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.btn-wrap {
|
|
58
|
+
display: flex;
|
|
59
|
+
gap: 24px;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
z-index: 2;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.groupSourceJSON = exports.getDefaultJSON = void 0;
|
|
7
|
+
|
|
8
|
+
var _uuid = require("uuid");
|
|
9
|
+
|
|
10
|
+
var groupSourceJSON = function groupSourceJSON() {
|
|
11
|
+
var groupId = (0, _uuid.v4)();
|
|
12
|
+
return {
|
|
13
|
+
id: groupId,
|
|
14
|
+
image: {
|
|
15
|
+
parentId: groupId,
|
|
16
|
+
id: (0, _uuid.v4)(),
|
|
17
|
+
open: true,
|
|
18
|
+
type: 'IMAGE',
|
|
19
|
+
content: {
|
|
20
|
+
h5Name: 'image name',
|
|
21
|
+
pcName: 'image name',
|
|
22
|
+
h5ImgSrc: '',
|
|
23
|
+
pcImgSrc: '',
|
|
24
|
+
clickUrl: '',
|
|
25
|
+
imageSelectedWay: {
|
|
26
|
+
pc: '',
|
|
27
|
+
mobile: ''
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
hover: {
|
|
31
|
+
open: false,
|
|
32
|
+
backgroundType: 'enlarge',
|
|
33
|
+
magnification: 1.5,
|
|
34
|
+
pcImgHoverUrl: '',
|
|
35
|
+
h5ImgHoverUrl: '',
|
|
36
|
+
imageSelectedWay: {
|
|
37
|
+
pc: '',
|
|
38
|
+
mobile: ''
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
groupName: {
|
|
43
|
+
parentId: groupId,
|
|
44
|
+
id: (0, _uuid.v4)(),
|
|
45
|
+
open: true,
|
|
46
|
+
type: 'TEXT',
|
|
47
|
+
specialContent: [],
|
|
48
|
+
text: 'MAY 2024',
|
|
49
|
+
content: {
|
|
50
|
+
sizeType: 'Customize font styles',
|
|
51
|
+
fontFamily: 'Open Sans',
|
|
52
|
+
fontWeight: 600,
|
|
53
|
+
pcFontSize: 16,
|
|
54
|
+
textAlign: 'left',
|
|
55
|
+
color: '#DE9697'
|
|
56
|
+
},
|
|
57
|
+
underline: {
|
|
58
|
+
open: false,
|
|
59
|
+
textDecorationColor: '',
|
|
60
|
+
textDecorationStyle: 'solid'
|
|
61
|
+
},
|
|
62
|
+
vertical: {}
|
|
63
|
+
},
|
|
64
|
+
text: {
|
|
65
|
+
parentId: groupId,
|
|
66
|
+
id: (0, _uuid.v4)(),
|
|
67
|
+
open: true,
|
|
68
|
+
type: 'TEXT',
|
|
69
|
+
specialContent: [],
|
|
70
|
+
text: '7 Work-From-Home Jobs That Benefit From a SG a Internet Connection. 7 Work-From-Home Jobs That Benefit From a SG a Internet Connection',
|
|
71
|
+
content: {
|
|
72
|
+
sizeType: 'Customize font styles',
|
|
73
|
+
fontFamily: 'Open Sans',
|
|
74
|
+
fontWeight: 600,
|
|
75
|
+
pcFontSize: 16,
|
|
76
|
+
textAlign: 'left',
|
|
77
|
+
color: '#232F46'
|
|
78
|
+
},
|
|
79
|
+
underline: {},
|
|
80
|
+
vertical: {}
|
|
81
|
+
},
|
|
82
|
+
background: {
|
|
83
|
+
opacity: 100,
|
|
84
|
+
color: '#BD2D2F',
|
|
85
|
+
image: '',
|
|
86
|
+
bgType: 'color'
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
exports.groupSourceJSON = groupSourceJSON;
|
|
92
|
+
|
|
93
|
+
var getDefaultJSON = function getDefaultJSON() {
|
|
94
|
+
return {
|
|
95
|
+
id: (0, _uuid.v4)(),
|
|
96
|
+
type: 'NEWS',
|
|
97
|
+
title: {
|
|
98
|
+
headline: {
|
|
99
|
+
id: (0, _uuid.v4)(),
|
|
100
|
+
open: true,
|
|
101
|
+
type: 'TEXT',
|
|
102
|
+
specialContent: [],
|
|
103
|
+
text: 'News and Blogs',
|
|
104
|
+
content: {
|
|
105
|
+
sizeType: 'Customize font styles',
|
|
106
|
+
fontFamily: 'Open Sans',
|
|
107
|
+
fontWeight: 600,
|
|
108
|
+
pcFontSize: 26,
|
|
109
|
+
color: '#232F46',
|
|
110
|
+
textAlign: 'left',
|
|
111
|
+
clickUrl: {
|
|
112
|
+
name: '',
|
|
113
|
+
value: ''
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
underline: {
|
|
117
|
+
open: false,
|
|
118
|
+
textDecorationColor: '',
|
|
119
|
+
textDecorationStyle: 'solid'
|
|
120
|
+
},
|
|
121
|
+
vertical: {}
|
|
122
|
+
},
|
|
123
|
+
subtitle: {
|
|
124
|
+
id: (0, _uuid.v4)(),
|
|
125
|
+
open: true,
|
|
126
|
+
type: 'TEXT',
|
|
127
|
+
specialContent: [],
|
|
128
|
+
text: 'STAY UPDATED WITH OUR LATEST POSTS',
|
|
129
|
+
content: {
|
|
130
|
+
sizeType: 'Customize font styles',
|
|
131
|
+
fontFamily: 'Open Sans',
|
|
132
|
+
fontWeight: 600,
|
|
133
|
+
pcFontSize: 14,
|
|
134
|
+
color: '#232F46',
|
|
135
|
+
textAlign: 'left',
|
|
136
|
+
clickUrl: {
|
|
137
|
+
name: '',
|
|
138
|
+
value: ''
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
underline: {
|
|
142
|
+
open: false,
|
|
143
|
+
textDecorationColor: '',
|
|
144
|
+
textDecorationStyle: 'solid'
|
|
145
|
+
},
|
|
146
|
+
vertical: {}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
groupSource: [groupSourceJSON()],
|
|
150
|
+
spacing: {
|
|
151
|
+
pc: {
|
|
152
|
+
paddingTop: 48,
|
|
153
|
+
paddingBottom: 48,
|
|
154
|
+
paddingLeft: 48,
|
|
155
|
+
paddingRight: 48,
|
|
156
|
+
marginBottom: 0
|
|
157
|
+
},
|
|
158
|
+
mobile: {
|
|
159
|
+
paddingTop: 10,
|
|
160
|
+
paddingBottom: 10,
|
|
161
|
+
marginBottom: 0
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
customize: {
|
|
165
|
+
layout: 'layout1'
|
|
166
|
+
},
|
|
167
|
+
background: {
|
|
168
|
+
opacity: 100,
|
|
169
|
+
color: '#FFFFFF',
|
|
170
|
+
image: '',
|
|
171
|
+
bgType: 'color'
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
exports.getDefaultJSON = getDefaultJSON;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _pc = _interopRequireDefault(require("./pc"));
|
|
11
|
+
|
|
12
|
+
var _defaultJSON = require("./defaultJSON");
|
|
13
|
+
|
|
14
|
+
var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
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); }
|
|
19
|
+
|
|
20
|
+
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; }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
25
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
26
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
27
|
+
__proto__: []
|
|
28
|
+
} instanceof Array && function (d, b) {
|
|
29
|
+
d.__proto__ = b;
|
|
30
|
+
} || function (d, b) {
|
|
31
|
+
for (var p in b) {
|
|
32
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return _extendStatics(d, b);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return function (d, b) {
|
|
40
|
+
_extendStatics(d, b);
|
|
41
|
+
|
|
42
|
+
function __() {
|
|
43
|
+
this.constructor = d;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47
|
+
};
|
|
48
|
+
}();
|
|
49
|
+
|
|
50
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
51
|
+
var c = arguments.length,
|
|
52
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
53
|
+
d;
|
|
54
|
+
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--) {
|
|
55
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
56
|
+
}
|
|
57
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
var News =
|
|
61
|
+
/** @class */
|
|
62
|
+
function (_super) {
|
|
63
|
+
__extends(News, _super);
|
|
64
|
+
|
|
65
|
+
function News() {
|
|
66
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
News.prototype.render = function () {
|
|
70
|
+
var nodeData = this.props.nodeData;
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
|
|
72
|
+
data: nodeData
|
|
73
|
+
}) : null);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
News.defaultProps = {};
|
|
77
|
+
News.type = 'NEWS';
|
|
78
|
+
News.getDefaultJSON = _defaultJSON.getDefaultJSON;
|
|
79
|
+
News = __decorate([_compositeDecorator["default"]], News);
|
|
80
|
+
return News;
|
|
81
|
+
}(_react.Component);
|
|
82
|
+
|
|
83
|
+
var _default = News;
|
|
84
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
require("./index.less");
|
|
11
|
+
|
|
12
|
+
var _components = require("../../../../../meta-comp/components");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
17
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
18
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
19
|
+
__proto__: []
|
|
20
|
+
} instanceof Array && function (d, b) {
|
|
21
|
+
d.__proto__ = b;
|
|
22
|
+
} || function (d, b) {
|
|
23
|
+
for (var p in b) {
|
|
24
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return _extendStatics(d, b);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return function (d, b) {
|
|
32
|
+
_extendStatics(d, b);
|
|
33
|
+
|
|
34
|
+
function __() {
|
|
35
|
+
this.constructor = d;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
39
|
+
};
|
|
40
|
+
}();
|
|
41
|
+
|
|
42
|
+
var NewsPc =
|
|
43
|
+
/** @class */
|
|
44
|
+
function (_super) {
|
|
45
|
+
__extends(NewsPc, _super);
|
|
46
|
+
|
|
47
|
+
function NewsPc() {
|
|
48
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
49
|
+
|
|
50
|
+
_this.state = {};
|
|
51
|
+
|
|
52
|
+
_this.getCardBgStyle = function (background) {
|
|
53
|
+
var wrapStyle = {};
|
|
54
|
+
|
|
55
|
+
if (background) {
|
|
56
|
+
if (background.bgType === 'color') {
|
|
57
|
+
wrapStyle.backgroundColor = background.color;
|
|
58
|
+
wrapStyle.opacity = background.opacity ? background.opacity : 1;
|
|
59
|
+
} else {
|
|
60
|
+
wrapStyle.backgroundImage = "url(" + background.image + ")";
|
|
61
|
+
wrapStyle.backgroundPosition = 'center center';
|
|
62
|
+
wrapStyle.backgroundSize = 'cover';
|
|
63
|
+
wrapStyle.backgroundRepeat = 'no-repeat';
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return wrapStyle;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
return _this;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
NewsPc.prototype.render = function () {
|
|
74
|
+
var _this = this;
|
|
75
|
+
|
|
76
|
+
var data = this.props.data;
|
|
77
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
|
+
className: "m-news-pc"
|
|
79
|
+
}, data.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
80
|
+
className: "headline",
|
|
81
|
+
data: data.title.headline
|
|
82
|
+
}), data.title.subtitle.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
83
|
+
data: data.title.subtitle
|
|
84
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
+
className: "card-list"
|
|
86
|
+
}, data.groupSource.map(function (m) {
|
|
87
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
|
+
key: m.id,
|
|
89
|
+
className: "item",
|
|
90
|
+
style: _this.getCardBgStyle(m.background)
|
|
91
|
+
}, m.image.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
92
|
+
className: "img",
|
|
93
|
+
data: m.image,
|
|
94
|
+
square: true
|
|
95
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
+
className: "right"
|
|
97
|
+
}, m.groupName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
98
|
+
data: m.groupName
|
|
99
|
+
}), m.text.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
100
|
+
className: "text",
|
|
101
|
+
data: m.text
|
|
102
|
+
})));
|
|
103
|
+
})));
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
NewsPc.defaultProps = {
|
|
107
|
+
data: {}
|
|
108
|
+
};
|
|
109
|
+
return NewsPc;
|
|
110
|
+
}(_react["default"].Component);
|
|
111
|
+
|
|
112
|
+
var _default = NewsPc;
|
|
113
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.m-news-pc {
|
|
2
|
+
.headline {
|
|
3
|
+
margin-bottom: 5px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.card-list {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-wrap: wrap;
|
|
9
|
+
gap: 48px;
|
|
10
|
+
margin-top: 16px;
|
|
11
|
+
|
|
12
|
+
.item {
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
width: calc(50% - 24px);
|
|
18
|
+
height: 180px;
|
|
19
|
+
|
|
20
|
+
.img {
|
|
21
|
+
width: 180px;
|
|
22
|
+
height: 100%;
|
|
23
|
+
margin-left: -5px;
|
|
24
|
+
|
|
25
|
+
img {
|
|
26
|
+
border-radius: 8px 0 0 8px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.right {
|
|
31
|
+
padding: 36px 24px;
|
|
32
|
+
width: calc(100% - 180px);
|
|
33
|
+
height: 100%;
|
|
34
|
+
|
|
35
|
+
.text {
|
|
36
|
+
display: -webkit-box;
|
|
37
|
+
-webkit-box-orient: vertical;
|
|
38
|
+
-webkit-line-clamp: 3;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
margin-top: 10px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -87,16 +87,6 @@ function (_super) {
|
|
|
87
87
|
_this.carouselRef = /*#__PURE__*/_react["default"].createRef();
|
|
88
88
|
_this.destroy = null;
|
|
89
89
|
|
|
90
|
-
_this.bannerGoto = function (groupSource) {
|
|
91
|
-
var nextIndex = groupSource.findIndex(function (item) {
|
|
92
|
-
return item.id === _mobx.store.clickedGroup;
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
if (nextIndex != -1 && nextIndex != _this.state.carouseIndex) {
|
|
96
|
-
_this.carouselRef.current.goTo(nextIndex);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
|
|
100
90
|
_this.bannerGoto = function (groupSource) {
|
|
101
91
|
var nextIndex = groupSource.findIndex(function (item) {
|
|
102
92
|
return item.id === _mobx.store.clickedGroup;
|