@fonixtree/magic-design 1.0.176 → 1.0.178
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/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +2 -2
- package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +17 -5
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +0 -2
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +21 -5
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
- 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/meta-comp/config-panels/ImageConfig/index.js +24 -16
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +2 -2
- package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +17 -5
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +0 -2
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +21 -5
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
- 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/meta-comp/config-panels/ImageConfig/index.js +24 -16
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.personal-information-second-mobile .top {
|
|
6
6
|
display: flex;
|
|
7
7
|
justify-content: space-between;
|
|
8
|
-
align-items:
|
|
8
|
+
align-items: center;
|
|
9
9
|
}
|
|
10
10
|
.personal-information-second-mobile .top .pInfoWrap {
|
|
11
11
|
display: flex;
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
flex-direction: row;
|
|
150
150
|
justify-content: space-between;
|
|
151
151
|
height: 1.04rem;
|
|
152
|
-
margin-top: 0.
|
|
152
|
+
margin-top: 0.36rem;
|
|
153
153
|
margin-bottom: 0.02rem;
|
|
154
154
|
}
|
|
155
155
|
.personal-information-second-mobile .orders .fixed-wrap .list .item {
|
|
@@ -167,18 +167,30 @@ function (_super) {
|
|
|
167
167
|
backgroundColor: (_e = (_d = data.content.box) === null || _d === void 0 ? void 0 : _d.backgroundColor) === null || _e === void 0 ? void 0 : _e.mobile
|
|
168
168
|
}
|
|
169
169
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
170
|
-
color: (_g = (_f = data.content.box) === null || _f === void 0 ? void 0 : _f.
|
|
170
|
+
color: (_g = (_f = data.content.box) === null || _f === void 0 ? void 0 : _f.iconColor) === null || _g === void 0 ? void 0 : _g.mobile,
|
|
171
171
|
size: (0, _commonUtil.convertToRem)(20),
|
|
172
172
|
type: "icon-search2"
|
|
173
173
|
})), data.content && ((_h = data.content.cartIcon) === null || _h === void 0 ? void 0 : _h.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
174
174
|
className: "right-icon",
|
|
175
|
-
data: data.content.cartIcon
|
|
175
|
+
data: data.content.cartIcon,
|
|
176
|
+
style: {
|
|
177
|
+
width: '25px',
|
|
178
|
+
height: '25px'
|
|
179
|
+
}
|
|
176
180
|
}), data.content && ((_j = data.content.chatbotIcon) === null || _j === void 0 ? void 0 : _j.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
177
181
|
className: "right-icon",
|
|
178
|
-
data: data.content.chatbotIcon
|
|
182
|
+
data: data.content.chatbotIcon,
|
|
183
|
+
style: {
|
|
184
|
+
width: '32px',
|
|
185
|
+
height: '32px'
|
|
186
|
+
}
|
|
179
187
|
}), data.content && ((_k = data.content.messageIcon) === null || _k === void 0 ? void 0 : _k.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
180
188
|
className: "right-icon",
|
|
181
|
-
data: data.content.messageIcon
|
|
189
|
+
data: data.content.messageIcon,
|
|
190
|
+
style: {
|
|
191
|
+
width: '25px',
|
|
192
|
+
height: '25px'
|
|
193
|
+
}
|
|
182
194
|
})), data.content && ((_l = data.content.logo) === null || _l === void 0 ? void 0 : _l.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
183
195
|
className: "logo",
|
|
184
196
|
onClick: function onClick() {
|
|
@@ -196,7 +208,7 @@ function (_super) {
|
|
|
196
208
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
197
209
|
data: data.content.logo,
|
|
198
210
|
style: {
|
|
199
|
-
height:
|
|
211
|
+
height: 23
|
|
200
212
|
}
|
|
201
213
|
}))), /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
202
214
|
ref: this.carouselRef,
|
|
@@ -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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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: {
|
|
@@ -71,7 +71,7 @@ function (_super) {
|
|
|
71
71
|
SearchBarConfigContent.prototype.render = function () {
|
|
72
72
|
var _this = this;
|
|
73
73
|
|
|
74
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
74
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
75
75
|
|
|
76
76
|
var panelProps = this.props.panelProps;
|
|
77
77
|
var source = [{
|
|
@@ -101,6 +101,22 @@ function (_super) {
|
|
|
101
101
|
_this.selfRender();
|
|
102
102
|
},
|
|
103
103
|
value: (0, _coreUtil.isPc)() ? panelProps.box.color.pc : panelProps.box.color.mobile
|
|
104
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
105
|
+
title: (0, _locale.i18n)('ICON_COLOR')
|
|
106
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
107
|
+
colorType: "rgba",
|
|
108
|
+
onChange: function onChange(v) {
|
|
109
|
+
if ((0, _coreUtil.isPc)()) {
|
|
110
|
+
panelProps.box.iconColor.pc = v;
|
|
111
|
+
} else {
|
|
112
|
+
panelProps.box.iconColor = {
|
|
113
|
+
mobile: v
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
_this.selfRender();
|
|
118
|
+
},
|
|
119
|
+
value: (0, _coreUtil.isPc)() ? (_a = panelProps.box.iconColor) === null || _a === void 0 ? void 0 : _a.pc : (_b = panelProps.box.iconColor) === null || _b === void 0 ? void 0 : _b.mobile
|
|
104
120
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
105
121
|
style: {
|
|
106
122
|
marginTop: 16
|
|
@@ -117,26 +133,26 @@ function (_super) {
|
|
|
117
133
|
|
|
118
134
|
_this.selfRender();
|
|
119
135
|
},
|
|
120
|
-
value: (0, _coreUtil.isPc)() ? (
|
|
136
|
+
value: (0, _coreUtil.isPc)() ? (_d = (_c = panelProps.box) === null || _c === void 0 ? void 0 : _c.backgroundColor) === null || _d === void 0 ? void 0 : _d.pc : (_f = (_e = panelProps.box) === null || _e === void 0 ? void 0 : _e.backgroundColor) === null || _f === void 0 ? void 0 : _f.mobile
|
|
121
137
|
}))),
|
|
122
138
|
metaOption: panelProps.box,
|
|
123
139
|
toggleType: 'switch'
|
|
124
140
|
}, {
|
|
125
|
-
key: (
|
|
141
|
+
key: (_g = panelProps.cartIcon) === null || _g === void 0 ? void 0 : _g.id,
|
|
126
142
|
name: (0, _locale.i18n)('CART_ICON'),
|
|
127
143
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
128
144
|
data: panelProps.cartIcon
|
|
129
145
|
}),
|
|
130
146
|
metaOption: panelProps.cartIcon
|
|
131
147
|
}, {
|
|
132
|
-
key: (
|
|
148
|
+
key: (_h = panelProps.chatbotIcon) === null || _h === void 0 ? void 0 : _h.id,
|
|
133
149
|
name: (0, _locale.i18n)('CHATBOT_ICON'),
|
|
134
150
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
135
151
|
data: panelProps.chatbotIcon
|
|
136
152
|
}),
|
|
137
153
|
metaOption: panelProps.chatbotIcon
|
|
138
154
|
}, {
|
|
139
|
-
key: (
|
|
155
|
+
key: (_j = panelProps.messageIcon) === null || _j === void 0 ? void 0 : _j.id,
|
|
140
156
|
name: (0, _locale.i18n)('MESSAGE_ICON'),
|
|
141
157
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
142
158
|
data: panelProps.messageIcon
|
|
@@ -1,5 +1,7 @@
|
|
|
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
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -15,7 +17,7 @@ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-pane
|
|
|
15
17
|
|
|
16
18
|
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
17
19
|
|
|
18
|
-
var _ImageConfig =
|
|
20
|
+
var _ImageConfig = _interopRequireWildcard(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
19
21
|
|
|
20
22
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
21
23
|
|
|
@@ -23,6 +25,10 @@ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
|
23
25
|
|
|
24
26
|
var _locale = require("../../../../locale");
|
|
25
27
|
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
26
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
33
|
|
|
28
34
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -60,6 +66,18 @@ function (_super) {
|
|
|
60
66
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
67
|
}
|
|
62
68
|
|
|
69
|
+
SlideImageConfig.prototype.componentDidMount = function () {
|
|
70
|
+
var _a;
|
|
71
|
+
|
|
72
|
+
var data = this.props.data;
|
|
73
|
+
|
|
74
|
+
if (!((_a = data.content) === null || _a === void 0 ? void 0 : _a.moveIcon)) {
|
|
75
|
+
data.content = {
|
|
76
|
+
moveIcon: _ImageConfig.imageJson
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
63
81
|
SlideImageConfig.prototype.render = function () {
|
|
64
82
|
var _a, _b;
|
|
65
83
|
|
|
@@ -207,6 +207,20 @@ function (_super) {
|
|
|
207
207
|
return _this;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
SlideImageSecondConfig.prototype.componentDidMount = function () {
|
|
211
|
+
var panelProps = this.props.panelProps;
|
|
212
|
+
|
|
213
|
+
if (!panelProps.background) {
|
|
214
|
+
panelProps.background = {
|
|
215
|
+
opacity: 100,
|
|
216
|
+
color: '#fff',
|
|
217
|
+
image: '',
|
|
218
|
+
bgType: 'image'
|
|
219
|
+
};
|
|
220
|
+
this.reRender();
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
|
|
210
224
|
SlideImageSecondConfig.prototype.render = function () {
|
|
211
225
|
var panelProps = this.props.panelProps;
|
|
212
226
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
package/es/locale/en/en.json
CHANGED
package/es/locale/es/es.json
CHANGED
package/es/locale/id/id.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = void 0;
|
|
6
|
+
exports.imageJson = exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,6 +11,8 @@ var _antd = require("antd");
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
+
var _uuid = require("uuid");
|
|
15
|
+
|
|
14
16
|
var _HotAreaConfig = _interopRequireDefault(require("./HotAreaConfig"));
|
|
15
17
|
|
|
16
18
|
var _commonUtil = require("../../../utils/commonUtil");
|
|
@@ -194,6 +196,26 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
194
196
|
}
|
|
195
197
|
};
|
|
196
198
|
|
|
199
|
+
var imageJson = {
|
|
200
|
+
id: (0, _uuid.v4)(),
|
|
201
|
+
open: true,
|
|
202
|
+
type: 'IMAGE',
|
|
203
|
+
content: {
|
|
204
|
+
clickUrl: '',
|
|
205
|
+
pcImgSrc: '',
|
|
206
|
+
h5ImgSrc: '',
|
|
207
|
+
name: ''
|
|
208
|
+
},
|
|
209
|
+
hover: {
|
|
210
|
+
open: false,
|
|
211
|
+
backgroundType: 'enlarge',
|
|
212
|
+
h5ImgHoverUrl: '',
|
|
213
|
+
pcImgHoverUrl: '',
|
|
214
|
+
magnification: 1
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
exports.imageJson = imageJson;
|
|
218
|
+
|
|
197
219
|
var ImageConfig =
|
|
198
220
|
/** @class */
|
|
199
221
|
function (_super) {
|
|
@@ -422,21 +444,7 @@ function (_super) {
|
|
|
422
444
|
};
|
|
423
445
|
|
|
424
446
|
ImageConfig.defaultProps = {
|
|
425
|
-
data:
|
|
426
|
-
content: {
|
|
427
|
-
clickUrl: '',
|
|
428
|
-
pcImgSrc: '',
|
|
429
|
-
h5ImgSrc: '',
|
|
430
|
-
name: ''
|
|
431
|
-
},
|
|
432
|
-
hover: {
|
|
433
|
-
open: false,
|
|
434
|
-
backgroundType: 'enlarge',
|
|
435
|
-
h5ImgHoverUrl: '',
|
|
436
|
-
pcImgHoverUrl: '',
|
|
437
|
-
magnification: 1
|
|
438
|
-
}
|
|
439
|
-
},
|
|
447
|
+
data: imageJson,
|
|
440
448
|
needHover: true,
|
|
441
449
|
needClickArea: true,
|
|
442
450
|
needURL: true
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.personal-information-second-mobile .top {
|
|
6
6
|
display: flex;
|
|
7
7
|
justify-content: space-between;
|
|
8
|
-
align-items:
|
|
8
|
+
align-items: center;
|
|
9
9
|
}
|
|
10
10
|
.personal-information-second-mobile .top .pInfoWrap {
|
|
11
11
|
display: flex;
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
flex-direction: row;
|
|
150
150
|
justify-content: space-between;
|
|
151
151
|
height: 1.04rem;
|
|
152
|
-
margin-top: 0.
|
|
152
|
+
margin-top: 0.36rem;
|
|
153
153
|
margin-bottom: 0.02rem;
|
|
154
154
|
}
|
|
155
155
|
.personal-information-second-mobile .orders .fixed-wrap .list .item {
|
|
@@ -167,18 +167,30 @@ function (_super) {
|
|
|
167
167
|
backgroundColor: (_e = (_d = data.content.box) === null || _d === void 0 ? void 0 : _d.backgroundColor) === null || _e === void 0 ? void 0 : _e.mobile
|
|
168
168
|
}
|
|
169
169
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
170
|
-
color: (_g = (_f = data.content.box) === null || _f === void 0 ? void 0 : _f.
|
|
170
|
+
color: (_g = (_f = data.content.box) === null || _f === void 0 ? void 0 : _f.iconColor) === null || _g === void 0 ? void 0 : _g.mobile,
|
|
171
171
|
size: (0, _commonUtil.convertToRem)(20),
|
|
172
172
|
type: "icon-search2"
|
|
173
173
|
})), data.content && ((_h = data.content.cartIcon) === null || _h === void 0 ? void 0 : _h.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
174
174
|
className: "right-icon",
|
|
175
|
-
data: data.content.cartIcon
|
|
175
|
+
data: data.content.cartIcon,
|
|
176
|
+
style: {
|
|
177
|
+
width: '25px',
|
|
178
|
+
height: '25px'
|
|
179
|
+
}
|
|
176
180
|
}), data.content && ((_j = data.content.chatbotIcon) === null || _j === void 0 ? void 0 : _j.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
177
181
|
className: "right-icon",
|
|
178
|
-
data: data.content.chatbotIcon
|
|
182
|
+
data: data.content.chatbotIcon,
|
|
183
|
+
style: {
|
|
184
|
+
width: '32px',
|
|
185
|
+
height: '32px'
|
|
186
|
+
}
|
|
179
187
|
}), data.content && ((_k = data.content.messageIcon) === null || _k === void 0 ? void 0 : _k.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
180
188
|
className: "right-icon",
|
|
181
|
-
data: data.content.messageIcon
|
|
189
|
+
data: data.content.messageIcon,
|
|
190
|
+
style: {
|
|
191
|
+
width: '25px',
|
|
192
|
+
height: '25px'
|
|
193
|
+
}
|
|
182
194
|
})), data.content && ((_l = data.content.logo) === null || _l === void 0 ? void 0 : _l.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
183
195
|
className: "logo",
|
|
184
196
|
onClick: function onClick() {
|
|
@@ -196,7 +208,7 @@ function (_super) {
|
|
|
196
208
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
197
209
|
data: data.content.logo,
|
|
198
210
|
style: {
|
|
199
|
-
height:
|
|
211
|
+
height: 23
|
|
200
212
|
}
|
|
201
213
|
}))), /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
202
214
|
ref: this.carouselRef,
|
|
@@ -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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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: {
|
|
@@ -71,7 +71,7 @@ function (_super) {
|
|
|
71
71
|
SearchBarConfigContent.prototype.render = function () {
|
|
72
72
|
var _this = this;
|
|
73
73
|
|
|
74
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
74
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
75
75
|
|
|
76
76
|
var panelProps = this.props.panelProps;
|
|
77
77
|
var source = [{
|
|
@@ -101,6 +101,22 @@ function (_super) {
|
|
|
101
101
|
_this.selfRender();
|
|
102
102
|
},
|
|
103
103
|
value: (0, _coreUtil.isPc)() ? panelProps.box.color.pc : panelProps.box.color.mobile
|
|
104
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
105
|
+
title: (0, _locale.i18n)('ICON_COLOR')
|
|
106
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
107
|
+
colorType: "rgba",
|
|
108
|
+
onChange: function onChange(v) {
|
|
109
|
+
if ((0, _coreUtil.isPc)()) {
|
|
110
|
+
panelProps.box.iconColor.pc = v;
|
|
111
|
+
} else {
|
|
112
|
+
panelProps.box.iconColor = {
|
|
113
|
+
mobile: v
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
_this.selfRender();
|
|
118
|
+
},
|
|
119
|
+
value: (0, _coreUtil.isPc)() ? (_a = panelProps.box.iconColor) === null || _a === void 0 ? void 0 : _a.pc : (_b = panelProps.box.iconColor) === null || _b === void 0 ? void 0 : _b.mobile
|
|
104
120
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
105
121
|
style: {
|
|
106
122
|
marginTop: 16
|
|
@@ -117,26 +133,26 @@ function (_super) {
|
|
|
117
133
|
|
|
118
134
|
_this.selfRender();
|
|
119
135
|
},
|
|
120
|
-
value: (0, _coreUtil.isPc)() ? (
|
|
136
|
+
value: (0, _coreUtil.isPc)() ? (_d = (_c = panelProps.box) === null || _c === void 0 ? void 0 : _c.backgroundColor) === null || _d === void 0 ? void 0 : _d.pc : (_f = (_e = panelProps.box) === null || _e === void 0 ? void 0 : _e.backgroundColor) === null || _f === void 0 ? void 0 : _f.mobile
|
|
121
137
|
}))),
|
|
122
138
|
metaOption: panelProps.box,
|
|
123
139
|
toggleType: 'switch'
|
|
124
140
|
}, {
|
|
125
|
-
key: (
|
|
141
|
+
key: (_g = panelProps.cartIcon) === null || _g === void 0 ? void 0 : _g.id,
|
|
126
142
|
name: (0, _locale.i18n)('CART_ICON'),
|
|
127
143
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
128
144
|
data: panelProps.cartIcon
|
|
129
145
|
}),
|
|
130
146
|
metaOption: panelProps.cartIcon
|
|
131
147
|
}, {
|
|
132
|
-
key: (
|
|
148
|
+
key: (_h = panelProps.chatbotIcon) === null || _h === void 0 ? void 0 : _h.id,
|
|
133
149
|
name: (0, _locale.i18n)('CHATBOT_ICON'),
|
|
134
150
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
135
151
|
data: panelProps.chatbotIcon
|
|
136
152
|
}),
|
|
137
153
|
metaOption: panelProps.chatbotIcon
|
|
138
154
|
}, {
|
|
139
|
-
key: (
|
|
155
|
+
key: (_j = panelProps.messageIcon) === null || _j === void 0 ? void 0 : _j.id,
|
|
140
156
|
name: (0, _locale.i18n)('MESSAGE_ICON'),
|
|
141
157
|
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
142
158
|
data: panelProps.messageIcon
|
|
@@ -1,5 +1,7 @@
|
|
|
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
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -15,7 +17,7 @@ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-pane
|
|
|
15
17
|
|
|
16
18
|
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
17
19
|
|
|
18
|
-
var _ImageConfig =
|
|
20
|
+
var _ImageConfig = _interopRequireWildcard(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
19
21
|
|
|
20
22
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
21
23
|
|
|
@@ -23,6 +25,10 @@ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
|
23
25
|
|
|
24
26
|
var _locale = require("../../../../locale");
|
|
25
27
|
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
26
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
33
|
|
|
28
34
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -60,6 +66,18 @@ function (_super) {
|
|
|
60
66
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
67
|
}
|
|
62
68
|
|
|
69
|
+
SlideImageConfig.prototype.componentDidMount = function () {
|
|
70
|
+
var _a;
|
|
71
|
+
|
|
72
|
+
var data = this.props.data;
|
|
73
|
+
|
|
74
|
+
if (!((_a = data.content) === null || _a === void 0 ? void 0 : _a.moveIcon)) {
|
|
75
|
+
data.content = {
|
|
76
|
+
moveIcon: _ImageConfig.imageJson
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
63
81
|
SlideImageConfig.prototype.render = function () {
|
|
64
82
|
var _a, _b;
|
|
65
83
|
|
|
@@ -207,6 +207,20 @@ function (_super) {
|
|
|
207
207
|
return _this;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
SlideImageSecondConfig.prototype.componentDidMount = function () {
|
|
211
|
+
var panelProps = this.props.panelProps;
|
|
212
|
+
|
|
213
|
+
if (!panelProps.background) {
|
|
214
|
+
panelProps.background = {
|
|
215
|
+
opacity: 100,
|
|
216
|
+
color: '#fff',
|
|
217
|
+
image: '',
|
|
218
|
+
bgType: 'image'
|
|
219
|
+
};
|
|
220
|
+
this.reRender();
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
|
|
210
224
|
SlideImageSecondConfig.prototype.render = function () {
|
|
211
225
|
var panelProps = this.props.panelProps;
|
|
212
226
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
package/lib/locale/en/en.json
CHANGED
package/lib/locale/es/es.json
CHANGED
package/lib/locale/id/id.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = void 0;
|
|
6
|
+
exports.imageJson = exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,6 +11,8 @@ var _antd = require("antd");
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
+
var _uuid = require("uuid");
|
|
15
|
+
|
|
14
16
|
var _HotAreaConfig = _interopRequireDefault(require("./HotAreaConfig"));
|
|
15
17
|
|
|
16
18
|
var _commonUtil = require("../../../utils/commonUtil");
|
|
@@ -194,6 +196,26 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
|
|
|
194
196
|
}
|
|
195
197
|
};
|
|
196
198
|
|
|
199
|
+
var imageJson = {
|
|
200
|
+
id: (0, _uuid.v4)(),
|
|
201
|
+
open: true,
|
|
202
|
+
type: 'IMAGE',
|
|
203
|
+
content: {
|
|
204
|
+
clickUrl: '',
|
|
205
|
+
pcImgSrc: '',
|
|
206
|
+
h5ImgSrc: '',
|
|
207
|
+
name: ''
|
|
208
|
+
},
|
|
209
|
+
hover: {
|
|
210
|
+
open: false,
|
|
211
|
+
backgroundType: 'enlarge',
|
|
212
|
+
h5ImgHoverUrl: '',
|
|
213
|
+
pcImgHoverUrl: '',
|
|
214
|
+
magnification: 1
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
exports.imageJson = imageJson;
|
|
218
|
+
|
|
197
219
|
var ImageConfig =
|
|
198
220
|
/** @class */
|
|
199
221
|
function (_super) {
|
|
@@ -422,21 +444,7 @@ function (_super) {
|
|
|
422
444
|
};
|
|
423
445
|
|
|
424
446
|
ImageConfig.defaultProps = {
|
|
425
|
-
data:
|
|
426
|
-
content: {
|
|
427
|
-
clickUrl: '',
|
|
428
|
-
pcImgSrc: '',
|
|
429
|
-
h5ImgSrc: '',
|
|
430
|
-
name: ''
|
|
431
|
-
},
|
|
432
|
-
hover: {
|
|
433
|
-
open: false,
|
|
434
|
-
backgroundType: 'enlarge',
|
|
435
|
-
h5ImgHoverUrl: '',
|
|
436
|
-
pcImgHoverUrl: '',
|
|
437
|
-
magnification: 1
|
|
438
|
-
}
|
|
439
|
-
},
|
|
447
|
+
data: imageJson,
|
|
440
448
|
needHover: true,
|
|
441
449
|
needClickArea: true,
|
|
442
450
|
needURL: true
|