@fonixtree/magic-design 2.0.207 → 2.0.209

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 (151) hide show
  1. package/es/common/GroupList/index.js +6 -2
  2. package/es/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
  3. package/es/composite-comp/bol/components/Banner/mobile/index.js +8 -2
  4. package/es/composite-comp/bol/components/Banner/pc/index.js +8 -2
  5. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
  6. package/es/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
  7. package/es/composite-comp/bol/components/Carousel/pc/index.js +12 -6
  8. package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
  9. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
  10. package/es/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
  11. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
  12. package/es/composite-comp/bol/components/Video/defaultJSON.js +1 -1
  13. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
  14. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
  15. package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
  16. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
  17. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
  18. package/es/composite-comp/common/components/MonpayProductItem/index.js +4 -0
  19. package/es/composite-comp/common/components/ProductItem/index.js +29 -5
  20. package/es/composite-comp/common/components/ProductItem/index.less +15 -1
  21. package/es/composite-comp/common/components/WatermarkLabel/index.less +17 -0
  22. package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
  23. package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
  24. package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
  25. package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
  26. package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
  27. package/es/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
  28. package/es/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
  29. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  30. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
  31. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
  32. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
  33. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
  34. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
  35. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
  36. package/es/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  37. package/es/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  38. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  39. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
  40. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
  41. package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
  42. package/es/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
  43. package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
  44. package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
  45. package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
  46. package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  47. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
  48. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
  49. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  50. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  51. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  52. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  53. package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  54. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
  55. package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  56. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
  57. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  58. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  59. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  60. package/es/constants/component-types.js +10 -4
  61. package/es/constants/index.js +4 -0
  62. package/es/core/Designer/ConfigPanel/index.js +1 -0
  63. package/es/core/Designer/index.js +9 -3
  64. package/es/core/Renderer/index.js +4 -2
  65. package/es/decorator/compositeDecorator.js +1 -1
  66. package/es/locale/ar/ar.json +4 -0
  67. package/es/locale/en/en.json +4 -0
  68. package/es/locale/es/es.json +4 -0
  69. package/es/locale/mn/mn.json +18 -1
  70. package/es/meta-comp/components/Text/index.js +17 -4
  71. package/es/meta-comp/config-panels/ImageConfig/index.js +24 -16
  72. package/es/meta-comp/config-panels/TextConfig/index.js +28 -7
  73. package/es/meta-comp/config-panels/TextConfig/index.less +27 -0
  74. package/es/utils/commonUtil.js +17 -1
  75. package/es/utils/coreUtil.js +1 -1
  76. package/lib/common/GroupList/index.js +6 -2
  77. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
  78. package/lib/composite-comp/bol/components/Banner/mobile/index.js +8 -2
  79. package/lib/composite-comp/bol/components/Banner/pc/index.js +8 -2
  80. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
  81. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
  82. package/lib/composite-comp/bol/components/Carousel/pc/index.js +12 -6
  83. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
  84. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
  85. package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
  86. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
  87. package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -1
  88. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
  89. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
  90. package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
  91. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
  92. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
  93. package/lib/composite-comp/common/components/MonpayProductItem/index.js +4 -0
  94. package/lib/composite-comp/common/components/ProductItem/index.js +29 -5
  95. package/lib/composite-comp/common/components/ProductItem/index.less +15 -1
  96. package/lib/composite-comp/common/components/WatermarkLabel/index.less +17 -0
  97. package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
  98. package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
  99. package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
  100. package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
  101. package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
  102. package/lib/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
  103. package/lib/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
  104. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
  105. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
  106. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
  107. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
  108. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
  109. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
  110. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
  111. package/lib/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
  112. package/lib/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
  113. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
  114. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
  115. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
  116. package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
  117. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
  118. package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
  119. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
  120. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
  121. package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
  122. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
  123. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
  124. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
  125. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
  126. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
  127. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
  128. package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
  129. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
  130. package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
  131. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
  132. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
  133. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
  134. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
  135. package/lib/constants/component-types.js +10 -4
  136. package/lib/constants/index.js +4 -0
  137. package/lib/core/Designer/ConfigPanel/index.js +1 -0
  138. package/lib/core/Designer/index.js +9 -3
  139. package/lib/core/Renderer/index.js +4 -2
  140. package/lib/decorator/compositeDecorator.js +1 -1
  141. package/lib/locale/ar/ar.json +4 -0
  142. package/lib/locale/en/en.json +4 -0
  143. package/lib/locale/es/es.json +4 -0
  144. package/lib/locale/mn/mn.json +18 -1
  145. package/lib/meta-comp/components/Text/index.js +17 -4
  146. package/lib/meta-comp/config-panels/ImageConfig/index.js +24 -16
  147. package/lib/meta-comp/config-panels/TextConfig/index.js +28 -7
  148. package/lib/meta-comp/config-panels/TextConfig/index.less +27 -0
  149. package/lib/utils/commonUtil.js +17 -1
  150. package/lib/utils/coreUtil.js +1 -1
  151. package/package.json +1 -1
@@ -0,0 +1,210 @@
1
+ .personal-information-second-mobile {
2
+ padding: 0.32rem 0.32rem;
3
+ box-sizing: border-box;
4
+ }
5
+ .personal-information-second-mobile .top {
6
+ display: flex;
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ }
10
+ .personal-information-second-mobile .top .pInfoWrap {
11
+ display: flex;
12
+ align-items: center;
13
+ }
14
+ .personal-information-second-mobile .top .pInfoWrap .photoWrap {
15
+ position: relative;
16
+ display: inline-block;
17
+ vertical-align: middle;
18
+ margin-right: 0.32rem;
19
+ height: 0.76rem;
20
+ width: 0.76rem;
21
+ }
22
+ .personal-information-second-mobile .top .pInfoWrap .photoWrap > input {
23
+ position: absolute;
24
+ z-index: 3;
25
+ top: 0;
26
+ left: 0;
27
+ width: 100%;
28
+ height: 100%;
29
+ opacity: 0;
30
+ }
31
+ .personal-information-second-mobile .top .pInfoWrap .photoWrap .decorationIcon {
32
+ position: absolute;
33
+ z-index: 1;
34
+ width: 1.2rem;
35
+ height: 1.2rem;
36
+ left: -0.22rem;
37
+ top: -0.22rem;
38
+ }
39
+ .personal-information-second-mobile .top .pInfoWrap .userInfo {
40
+ display: inline-block;
41
+ vertical-align: middle;
42
+ }
43
+ .personal-information-second-mobile .top .pInfoWrap .userInfo p {
44
+ margin: 0;
45
+ }
46
+ .personal-information-second-mobile .top .pInfoWrap .userInfo .name {
47
+ font-family: Montserrat;
48
+ font-size: 0.28rem;
49
+ font-weight: 600;
50
+ color: #3E3E3E;
51
+ max-width: 2.96rem;
52
+ white-space: nowrap;
53
+ text-overflow: ellipsis;
54
+ overflow: hidden;
55
+ word-break: break-all;
56
+ }
57
+ .personal-information-second-mobile .top .pInfoWrap .userInfo .wishlist,
58
+ .personal-information-second-mobile .top .pInfoWrap .userInfo .following {
59
+ color: #3E3E3E;
60
+ font-family: Montserrat;
61
+ font-size: 0.16rem;
62
+ font-style: normal;
63
+ font-weight: 600;
64
+ line-height: 0.36rem;
65
+ }
66
+ .personal-information-second-mobile .top .pInfoWrap .userInfo .wishlist span,
67
+ .personal-information-second-mobile .top .pInfoWrap .userInfo .following span {
68
+ font-size: 0.2rem;
69
+ }
70
+ .personal-information-second-mobile .top .pInfoWrap .userInfo .wishlist {
71
+ margin-right: 0.16rem;
72
+ }
73
+ .personal-information-second-mobile .top .pInfoWrap .userInfo .following {
74
+ margin-left: 0.16rem;
75
+ }
76
+ .personal-information-second-mobile .top .pInfoWrap .photo {
77
+ display: inline-block;
78
+ width: 0.76rem;
79
+ height: 0.76rem;
80
+ line-height: 1.2rem;
81
+ text-align: center;
82
+ border-radius: 50%;
83
+ }
84
+ .personal-information-second-mobile .top .pInfoWrap .edit-icon {
85
+ position: absolute;
86
+ z-index: 2;
87
+ bottom: 0;
88
+ right: 0;
89
+ width: 0.3rem;
90
+ height: 0.3rem;
91
+ }
92
+ .personal-information-second-mobile .top .pInfoWrap .btnLogin {
93
+ font-size: 0.32rem;
94
+ font-weight: 600;
95
+ color: #3E3E3E;
96
+ font-family: Montserrat;
97
+ }
98
+ .personal-information-second-mobile .top .btnGroup {
99
+ display: flex;
100
+ align-items: center;
101
+ }
102
+ .personal-information-second-mobile .top .btnGroup .iconWrap {
103
+ display: inline-block;
104
+ margin-left: 0.3rem;
105
+ position: relative;
106
+ display: inline-flex;
107
+ align-items: center;
108
+ }
109
+ .personal-information-second-mobile .top .btnGroup .num {
110
+ position: absolute;
111
+ top: -0.04rem;
112
+ left: 0.28rem;
113
+ display: inline-block;
114
+ padding: 0 0.08rem;
115
+ border-radius: 50%;
116
+ text-align: center;
117
+ min-width: 0.32rem;
118
+ height: 0.32rem;
119
+ line-height: 0.32rem;
120
+ background: #ce1126;
121
+ font-size: 0.12rem;
122
+ color: #ffffff;
123
+ }
124
+ .personal-information-second-mobile .orders {
125
+ margin-top: 0.32rem;
126
+ }
127
+ .personal-information-second-mobile .orders .fixed-wrap {
128
+ display: flex;
129
+ flex-direction: column;
130
+ background-color: #fff;
131
+ box-shadow: 0 0.06rem 0.12rem rgba(0, 0, 0, 0.16);
132
+ border-radius: 0.32rem;
133
+ width: auto;
134
+ padding: 0.24rem 0.32rem;
135
+ }
136
+ .personal-information-second-mobile .orders .fixed-wrap .top {
137
+ display: flex;
138
+ flex-direction: row;
139
+ justify-content: space-between;
140
+ font-weight: 600;
141
+ line-height: 0.36rem;
142
+ color: var(--font-color);
143
+ }
144
+ .personal-information-second-mobile .orders .fixed-wrap .top .title {
145
+ font-size: 0.28rem;
146
+ font-weight: 700;
147
+ color: #3E3E3E;
148
+ }
149
+ .personal-information-second-mobile .orders .fixed-wrap .top .btn-wrap {
150
+ display: flex;
151
+ flex-direction: row;
152
+ justify-content: center;
153
+ align-items: center;
154
+ }
155
+ .personal-information-second-mobile .orders .fixed-wrap .top .btn-wrap .text {
156
+ font-size: 0.2rem;
157
+ color: #0038A7;
158
+ font-weight: 600;
159
+ margin-right: 0.08rem;
160
+ }
161
+ .personal-information-second-mobile .orders .fixed-wrap .list {
162
+ display: flex;
163
+ flex-direction: row;
164
+ justify-content: space-between;
165
+ height: 1.04rem;
166
+ margin-top: 0.36rem;
167
+ margin-bottom: 0.02rem;
168
+ }
169
+ .personal-information-second-mobile .orders .fixed-wrap .list .item {
170
+ display: flex;
171
+ flex: 1 1;
172
+ }
173
+ .personal-information-second-mobile .orders .fixed-wrap .list .item .content-wrap {
174
+ width: 100%;
175
+ display: flex;
176
+ flex-direction: column;
177
+ justify-content: center;
178
+ align-items: center;
179
+ }
180
+ .personal-information-second-mobile .orders .fixed-wrap .list .item .img-wrap {
181
+ position: relative;
182
+ display: flex;
183
+ margin-bottom: 0.16rem;
184
+ width: 0.72rem;
185
+ height: 0.72rem;
186
+ }
187
+ .personal-information-second-mobile .orders .fixed-wrap .list .item .img-wrap .pot {
188
+ display: inline-block;
189
+ padding: 0 0.08rem;
190
+ background: #3360B9;
191
+ border: 0.02rem solid #fff;
192
+ font-size: 0.16rem;
193
+ text-align: center;
194
+ color: #fff;
195
+ position: absolute;
196
+ top: -0.04rem;
197
+ left: 0.4rem;
198
+ min-width: 0.32rem;
199
+ height: 0.32rem;
200
+ border-radius: 50%;
201
+ line-height: 0.28rem;
202
+ }
203
+ .personal-information-second-mobile .orders .fixed-wrap .list .item .title {
204
+ height: 0.44rem;
205
+ font-size: 0.2rem;
206
+ font-weight: 600;
207
+ line-height: 0.22rem;
208
+ color: #3E3E3E;
209
+ text-align: center;
210
+ }
@@ -416,6 +416,7 @@ function (_super) {
416
416
  return {
417
417
  type: 'ad',
418
418
  url: it === null || it === void 0 ? void 0 : it.url,
419
+ id: it === null || it === void 0 ? void 0 : it.contentId,
419
420
  adObj: it
420
421
  };
421
422
  })];
@@ -592,6 +593,11 @@ function (_super) {
592
593
  _this.getMacy(".macyContainer_" + _this.props.panelProps.id, LAYOUT_COLUMN[layout]);
593
594
  }
594
595
  });
596
+ setTimeout(function () {
597
+ if (document.querySelector(".macyContainer_" + _this.props.panelProps.id)) {
598
+ _this.getMacy(".macyContainer_" + _this.props.panelProps.id, LAYOUT_COLUMN[layout]);
599
+ }
600
+ }, 3000);
595
601
  };
596
602
 
597
603
  _this.getMacy = function (container, columns) {
@@ -78,6 +78,10 @@ var getDefaultJSON = function getDefaultJSON() {
78
78
  backgroundColor: {
79
79
  pc: 'transparent',
80
80
  mobile: 'transparent'
81
+ },
82
+ iconColor: {
83
+ pc: '#fff',
84
+ mobile: '#fff'
81
85
  }
82
86
  },
83
87
  keyword: {
@@ -180,9 +180,10 @@ function (_super) {
180
180
  backgroundColor: (_h = (_g = data.content.box) === null || _g === void 0 ? void 0 : _g.backgroundColor) === null || _h === void 0 ? void 0 : _h.mobile
181
181
  }
182
182
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
183
- color: (_k = (_j = data.content.box) === null || _j === void 0 ? void 0 : _j.color) === null || _k === void 0 ? void 0 : _k.mobile,
184
- size: (0, _commonUtil.convertToRem)(24),
185
- type: "icon-search2"
183
+ bold: true,
184
+ color: (_k = (_j = data.content.box) === null || _j === void 0 ? void 0 : _j.iconColor) === null || _k === void 0 ? void 0 : _k.mobile,
185
+ size: (0, _commonUtil.convertToRem)(20),
186
+ type: "icon-search-short"
186
187
  }), /*#__PURE__*/_react["default"].createElement(_antd.Input, {
187
188
  className: "search-input",
188
189
  onBlur: this.onBlur,
@@ -195,13 +196,25 @@ function (_super) {
195
196
  value: value
196
197
  })), data.content && ((_l = data.content.cartIcon) === null || _l === void 0 ? void 0 : _l.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
197
198
  className: "right-icon",
198
- data: data.content.cartIcon
199
+ data: data.content.cartIcon,
200
+ style: {
201
+ width: '25px',
202
+ height: '25px'
203
+ }
199
204
  }), data.content && ((_m = data.content.chatbotIcon) === null || _m === void 0 ? void 0 : _m.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
200
205
  className: "right-icon",
201
- data: data.content.chatbotIcon
206
+ data: data.content.chatbotIcon,
207
+ style: {
208
+ width: '32px',
209
+ height: '32px'
210
+ }
202
211
  }), data.content && ((_o = data.content.messageIcon) === null || _o === void 0 ? void 0 : _o.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
203
212
  className: "right-icon",
204
- data: data.content.messageIcon
213
+ data: data.content.messageIcon,
214
+ style: {
215
+ width: '25px',
216
+ height: '25px'
217
+ }
205
218
  })), data.content && ((_p = data.content.logo) === null || _p === void 0 ? void 0 : _p.open) && /*#__PURE__*/_react["default"].createElement("div", {
206
219
  className: "logo",
207
220
  onClick: function onClick() {
@@ -219,7 +232,7 @@ function (_super) {
219
232
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
220
233
  data: data.content.logo,
221
234
  style: {
222
- height: 20
235
+ height: 23
223
236
  }
224
237
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
225
238
  ref: this.carouselRef,
@@ -24,8 +24,8 @@
24
24
  background: transparent;
25
25
  border-radius: 0.4rem;
26
26
  border: 0.02rem solid #fff;
27
- padding: 0.08rem 0.2rem;
28
- height: 0.56rem;
27
+ padding: 0.08rem 0.2rem 0.08rem 0.08rem;
28
+ height: 0.54rem;
29
29
  text-align: right;
30
30
  display: flex;
31
31
  justify-content: space-between;
@@ -46,8 +46,6 @@
46
46
  .m-search-banner-mobile .search-bar .right .right-icon {
47
47
  margin-left: 0.2rem;
48
48
  display: inline-block;
49
- width: 0.5rem;
50
- height: 0.5rem;
51
49
  }
52
50
  .m-search-banner-mobile .search-bar .logo {
53
51
  margin-right: 0.3rem;
@@ -66,13 +66,7 @@ var groupSourceJSON = function groupSourceJSON(parentId) {
66
66
  },
67
67
  vertical: {}
68
68
  },
69
- clickUrl: '',
70
- background: {
71
- opacity: 100,
72
- color: '#fff',
73
- image: '',
74
- bgType: 'image'
75
- }
69
+ clickUrl: ''
76
70
  };
77
71
  };
78
72
 
@@ -83,27 +77,27 @@ var getDefaultJSON = function getDefaultJSON() {
83
77
  return {
84
78
  id: groupId,
85
79
  type: 'SLIDE_IMAGE',
86
- content: {
87
- moveIcon: {
88
- id: (0, _uuid.v4)(),
89
- open: true,
90
- type: 'IMAGE',
91
- content: {
92
- h5Name: 'Image Name',
93
- pcName: 'Image Name',
94
- h5ImgSrc: '',
95
- pcImgSrc: '',
96
- clickUrl: ''
97
- },
98
- hover: {
99
- open: false,
100
- backgroundType: 'enlarge',
101
- magnification: 1.5,
102
- pcImgHoverUrl: '',
103
- h5ImgHoverUrl: ''
104
- }
105
- }
106
- },
80
+ // content: {
81
+ // moveIcon: {
82
+ // id: uuidv4(),
83
+ // open: true,
84
+ // type: 'IMAGE',
85
+ // content: {
86
+ // h5Name: 'Image Name',
87
+ // pcName: 'Image Name',
88
+ // h5ImgSrc: '',
89
+ // pcImgSrc: '',
90
+ // clickUrl: '',
91
+ // },
92
+ // hover: {
93
+ // open: false,
94
+ // backgroundType: 'enlarge',
95
+ // magnification: 1.5,
96
+ // pcImgHoverUrl: '',
97
+ // h5ImgHoverUrl: '',
98
+ // },
99
+ // },
100
+ // },
107
101
  groupSource: [groupSourceJSON(groupId), groupSourceJSON(groupId), groupSourceJSON(groupId)],
108
102
  spacing: {
109
103
  pc: {
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
+ var _commonUtil = require("../../../../../../../utils/commonUtil");
13
+
12
14
  require("./index.less");
13
15
 
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -45,14 +47,15 @@ function (_super) {
45
47
  __extends(VideoItem, _super);
46
48
 
47
49
  function VideoItem() {
48
- var _this = _super !== null && _super.apply(this, arguments) || this;
50
+ var _a;
51
+
52
+ var _this = _super.apply(this, arguments) || this;
49
53
 
50
54
  _this.state = {
51
- playing: false,
55
+ playing: !!(((_a = _this.props.data.video) === null || _a === void 0 ? void 0 : _a.sourceUrl) && (0, _commonUtil.isPad)()),
52
56
  videoPoster: ''
53
57
  };
54
58
  _this.videoRef = /*#__PURE__*/_react["default"].createRef();
55
- _this.cardRef = /*#__PURE__*/_react["default"].createRef();
56
59
  _this.canvasRef = /*#__PURE__*/_react["default"].createRef();
57
60
 
58
61
  _this.onMouseEnter = function () {
@@ -85,11 +88,11 @@ function (_super) {
85
88
  VideoItem.prototype.componentDidMount = function () {
86
89
  var _this = this;
87
90
 
88
- var dom = this.cardRef.current;
89
- dom.addEventListener('mousemove', this.handleMouseMove);
90
- dom.addEventListener('mouseleave', this.handleMouseLeave);
91
+ if (this.videoRef.current && (0, _commonUtil.isPad)()) {
92
+ this.videoRef.current.autoplay = true;
93
+ }
91
94
 
92
- if (this.videoRef.current) {
95
+ if (this.videoRef.current && !(0, _commonUtil.isPad)()) {
93
96
  var video_1 = this.videoRef.current;
94
97
  var canvas_1 = this.canvasRef.current;
95
98
  video_1.addEventListener('loadedmetadata', function () {
@@ -111,13 +114,9 @@ function (_super) {
111
114
  }
112
115
  };
113
116
 
114
- VideoItem.prototype.componentWillUnmount = function () {
115
- var dom = this.cardRef.current;
116
- dom.removeEventListener('mousemove', this.handleMouseMove);
117
- dom.removeEventListener('mouseleave', this.handleMouseLeave);
118
- };
119
-
120
117
  VideoItem.prototype.render = function () {
118
+ var _this = this;
119
+
121
120
  var _a, _b, _c, _d, _e, _f, _g, _h;
122
121
 
123
122
  var _j = this.props,
@@ -130,10 +129,17 @@ function (_super) {
130
129
  videoPoster = _k.videoPoster;
131
130
  var img = ((_b = (_a = data.overilay) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.pcImgSrc) || videoPoster;
132
131
  return /*#__PURE__*/_react["default"].createElement("div", {
133
- ref: this.cardRef,
134
132
  className: "slide-image-video-wrap",
135
- onMouseEnter: this.onMouseEnter,
136
- onMouseLeave: this.onMouseLeave,
133
+ onMouseEnter: function onMouseEnter() {
134
+ if (!(0, _commonUtil.isPad)()) {
135
+ _this.onMouseEnter();
136
+ }
137
+ },
138
+ onMouseLeave: function onMouseLeave() {
139
+ if (!(0, _commonUtil.isPad)()) {
140
+ _this.onMouseLeave();
141
+ }
142
+ },
137
143
  style: {
138
144
  cursor: cursor && (moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.open) ? "url('" + ((_c = moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.content) === null || _c === void 0 ? void 0 : _c.pcImgSrc) + "'), pointer" : 'unset'
139
145
  }
@@ -1,9 +1,6 @@
1
1
  .slide-image-video-wrap {
2
2
  position: relative;
3
- display: flex;
4
3
  border-radius: 16px;
5
- --dx: calc(var(--size) - var(--x));
6
- --dy: calc(var(--size) - var(--y));
7
4
 
8
5
  &:hover {
9
6
  box-shadow: 0px 12px 48px 0px #00000029;
@@ -35,12 +32,14 @@
35
32
  video {
36
33
  width: 100%;
37
34
  border-radius: 16px;
35
+ vertical-align: middle;
38
36
  }
39
37
 
40
38
  .video-img {
41
39
  width: 100%;
42
40
  border-radius: 16px;
43
41
  background: #fff;
42
+ vertical-align: middle;
44
43
 
45
44
  &.cover {
46
45
  position: absolute;
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _common = require("../../../../../common");
11
+
12
+ require("./index.less");
13
+
14
+ var _coreUtil = require("../../../../../utils/coreUtil");
15
+
16
+ var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
17
+
18
+ var _locale = require("../../../../../locale");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ var __extends = void 0 && (void 0).__extends || function () {
23
+ var _extendStatics = function extendStatics(d, b) {
24
+ _extendStatics = Object.setPrototypeOf || {
25
+ __proto__: []
26
+ } instanceof Array && function (d, b) {
27
+ d.__proto__ = b;
28
+ } || function (d, b) {
29
+ for (var p in b) {
30
+ if (b.hasOwnProperty(p)) d[p] = b[p];
31
+ }
32
+ };
33
+
34
+ return _extendStatics(d, b);
35
+ };
36
+
37
+ return function (d, b) {
38
+ _extendStatics(d, b);
39
+
40
+ function __() {
41
+ this.constructor = d;
42
+ }
43
+
44
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
+ };
46
+ }();
47
+
48
+ var ConfigDecoration =
49
+ /** @class */
50
+ function (_super) {
51
+ __extends(ConfigDecoration, _super);
52
+
53
+ function ConfigDecoration() {
54
+ var _this = _super !== null && _super.apply(this, arguments) || this;
55
+
56
+ _this.reRender = function () {
57
+ (0, _coreUtil.renderPreview)();
58
+
59
+ _this.setState({});
60
+ };
61
+
62
+ return _this;
63
+ }
64
+
65
+ ConfigDecoration.prototype.render = function () {
66
+ var data = this.props.data;
67
+ return /*#__PURE__*/_react["default"].createElement("div", {
68
+ className: "config_decoration"
69
+ }, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
70
+ headerSize: "middle",
71
+ onRefresh: this.reRender,
72
+ source: [{
73
+ key: data.id,
74
+ name: (0, _locale.i18n)('FESTIVAL_DECORATION'),
75
+ value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
76
+ data: data
77
+ }),
78
+ metaOption: data
79
+ }],
80
+ type: "switch"
81
+ }));
82
+ };
83
+
84
+ ConfigDecoration.defaultProps = {
85
+ data: {}
86
+ };
87
+ return ConfigDecoration;
88
+ }(_react["default"].Component);
89
+
90
+ var _default = ConfigDecoration;
91
+ exports["default"] = _default;
@@ -0,0 +1,9 @@
1
+ .carousel_setting {
2
+
3
+ .collapse_wrap {
4
+ .header_wrap {
5
+ font-weight: 600 !important;
6
+ }
7
+ }
8
+
9
+ }