@fonixtree/magic-design 1.0.218 → 1.0.220
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/images/layout-icon/banner-layout1.png +0 -0
- package/es/assets/images/layout-icon/banner-layout2.svg +6 -0
- package/es/assets/images/layout-icon/center.png +0 -0
- package/es/assets/images/layout-icon/grouped-image-layout1.png +0 -0
- package/es/assets/images/layout-icon/left.png +0 -0
- package/es/assets/images/layout-icon/right.png +0 -0
- package/es/common/LinkModal/SelectPicture/imgs/picture-bg.png +0 -0
- package/es/common/LinkModal/SelectPicture/index.js +135 -0
- package/es/common/LinkModal/SelectPicture/index.less +88 -0
- package/es/common/LinkModal/index.js +6 -0
- package/es/common/PictureModal/index.js +37 -0
- package/es/common/PictureModal/index.less +41 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +28 -0
- package/es/composite-comp/bol/components/Banner/pc/components/BannerContent.js +82 -0
- package/es/composite-comp/bol/components/Banner/pc/components/SwiperBannerPc.js +270 -0
- package/es/composite-comp/bol/components/Banner/pc/index.js +43 -14
- package/es/composite-comp/bol/components/Banner/pc/index.less +81 -9
- package/es/composite-comp/bol/config-panels/BannerConfig/index.js +26 -0
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +17 -1
- package/es/composite-comp/dito/components/GroupedImage/defaultJSON.js +149 -0
- package/es/composite-comp/dito/components/GroupedImage/index.js +88 -0
- package/es/composite-comp/dito/components/GroupedImage/pc/index.js +417 -0
- package/es/composite-comp/dito/components/GroupedImage/pc/index.less +124 -0
- package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.less +3 -1
- package/es/composite-comp/dito/config-panels/GroupedImageConfig/ConfigGroup/index.js +146 -0
- package/es/composite-comp/dito/config-panels/GroupedImageConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/dito/config-panels/GroupedImageConfig/index.js +127 -0
- package/es/composite-comp/dito/second-config-panels/GroupedImageSecondConfig/index.js +290 -0
- package/es/composite-comp/dito/second-config-panels/GroupedImageSecondConfig/index.less +21 -0
- package/es/constants/component-types.js +9 -3
- package/es/constants/index.js +6 -1
- package/es/constants/layout.js +30 -2
- package/es/core/Designer/ConfigPanel/index.js +217 -4
- package/es/core/Designer/ConfigPanel/index.less +39 -0
- package/es/core/Renderer/index.js +25 -4
- 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/components/Image/index.js +15 -11
- package/es/meta-comp/config-panels/ImageConfig/index.js +25 -8
- package/es/mobx/Frame.js +5 -0
- package/es/mobx/Store.js +4 -1
- package/es/utils/businessUtil.js +11 -0
- package/es/utils/coreUtil.js +23 -4
- package/es/utils/dataUtil.js +14 -0
- package/lib/assets/images/layout-icon/banner-layout1.png +0 -0
- package/lib/assets/images/layout-icon/banner-layout2.svg +6 -0
- package/lib/assets/images/layout-icon/center.png +0 -0
- package/lib/assets/images/layout-icon/grouped-image-layout1.png +0 -0
- package/lib/assets/images/layout-icon/left.png +0 -0
- package/lib/assets/images/layout-icon/right.png +0 -0
- package/lib/common/LinkModal/SelectPicture/imgs/picture-bg.png +0 -0
- package/lib/common/LinkModal/SelectPicture/index.js +135 -0
- package/lib/common/LinkModal/SelectPicture/index.less +88 -0
- package/lib/common/LinkModal/index.js +6 -0
- package/lib/common/PictureModal/index.js +37 -0
- package/lib/common/PictureModal/index.less +41 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +28 -0
- package/lib/composite-comp/bol/components/Banner/pc/components/BannerContent.js +82 -0
- package/lib/composite-comp/bol/components/Banner/pc/components/SwiperBannerPc.js +270 -0
- package/lib/composite-comp/bol/components/Banner/pc/index.js +43 -14
- package/lib/composite-comp/bol/components/Banner/pc/index.less +81 -9
- package/lib/composite-comp/bol/config-panels/BannerConfig/index.js +26 -0
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +17 -1
- package/lib/composite-comp/dito/components/GroupedImage/defaultJSON.js +149 -0
- package/lib/composite-comp/dito/components/GroupedImage/index.js +88 -0
- package/lib/composite-comp/dito/components/GroupedImage/pc/index.js +417 -0
- package/lib/composite-comp/dito/components/GroupedImage/pc/index.less +124 -0
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +3 -1
- package/lib/composite-comp/dito/config-panels/GroupedImageConfig/ConfigGroup/index.js +146 -0
- package/lib/composite-comp/dito/config-panels/GroupedImageConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/dito/config-panels/GroupedImageConfig/index.js +127 -0
- package/lib/composite-comp/dito/second-config-panels/GroupedImageSecondConfig/index.js +290 -0
- package/lib/composite-comp/dito/second-config-panels/GroupedImageSecondConfig/index.less +21 -0
- package/lib/constants/component-types.js +9 -3
- package/lib/constants/index.js +6 -1
- package/lib/constants/layout.js +30 -2
- package/lib/core/Designer/ConfigPanel/index.js +217 -4
- package/lib/core/Designer/ConfigPanel/index.less +39 -0
- package/lib/core/Renderer/index.js +25 -4
- 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/components/Image/index.js +15 -11
- package/lib/meta-comp/config-panels/ImageConfig/index.js +25 -8
- package/lib/mobx/Frame.js +5 -0
- package/lib/mobx/Store.js +4 -1
- package/lib/utils/businessUtil.js +11 -0
- package/lib/utils/coreUtil.js +23 -4
- package/lib/utils/dataUtil.js +14 -0
- package/package.json +3 -2
- package/es/utils/pluginsUtil.js +0 -1
- package/lib/utils/pluginsUtil.js +0 -1
|
@@ -0,0 +1,290 @@
|
|
|
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 _mobxReact = require("mobx-react");
|
|
11
|
+
|
|
12
|
+
var _common = require("../../../../common");
|
|
13
|
+
|
|
14
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
15
|
+
|
|
16
|
+
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
17
|
+
|
|
18
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
19
|
+
|
|
20
|
+
var _GroupList = _interopRequireDefault(require("../../../../common/GroupList"));
|
|
21
|
+
|
|
22
|
+
var _Button = _interopRequireDefault(require("../../../../common/Button"));
|
|
23
|
+
|
|
24
|
+
var _locale = require("../../../../locale");
|
|
25
|
+
|
|
26
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
27
|
+
|
|
28
|
+
var _defaultImg = _interopRequireDefault(require("../../../../common/GroupList/defaultImg.png"));
|
|
29
|
+
|
|
30
|
+
var _defaultJSON = require("../../components/GroupedImage/defaultJSON");
|
|
31
|
+
|
|
32
|
+
var _mobx = require("../../../../mobx");
|
|
33
|
+
|
|
34
|
+
require("./index.less");
|
|
35
|
+
|
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
41
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
42
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
43
|
+
__proto__: []
|
|
44
|
+
} instanceof Array && function (d, b) {
|
|
45
|
+
d.__proto__ = b;
|
|
46
|
+
} || function (d, b) {
|
|
47
|
+
for (var p in b) {
|
|
48
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
return _extendStatics(d, b);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
return function (d, b) {
|
|
56
|
+
_extendStatics(d, b);
|
|
57
|
+
|
|
58
|
+
function __() {
|
|
59
|
+
this.constructor = d;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
63
|
+
};
|
|
64
|
+
}();
|
|
65
|
+
|
|
66
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
67
|
+
__assign = Object.assign || function (t) {
|
|
68
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
69
|
+
s = arguments[i];
|
|
70
|
+
|
|
71
|
+
for (var p in s) {
|
|
72
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return t;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
return __assign.apply(this, arguments);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
83
|
+
var c = arguments.length,
|
|
84
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
85
|
+
d;
|
|
86
|
+
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--) {
|
|
87
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
88
|
+
}
|
|
89
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
var GroupedImageSecondConfig =
|
|
93
|
+
/** @class */
|
|
94
|
+
function (_super) {
|
|
95
|
+
__extends(GroupedImageSecondConfig, _super);
|
|
96
|
+
|
|
97
|
+
function GroupedImageSecondConfig() {
|
|
98
|
+
var _this = _super !== null && _super.apply(this, arguments) || this; // 数据迁移:将旧的image1-4迁移到images数组
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
_this.migrateData = function (panelProps) {
|
|
102
|
+
if (!panelProps.images && (panelProps.image1 || panelProps.image2 || panelProps.image3 || panelProps.image4)) {
|
|
103
|
+
panelProps.images = [];
|
|
104
|
+
[panelProps.image1, panelProps.image2, panelProps.image3, panelProps.image4].forEach(function (img) {
|
|
105
|
+
if (img) {
|
|
106
|
+
panelProps.images.push(img);
|
|
107
|
+
}
|
|
108
|
+
}); // 删除旧字段
|
|
109
|
+
|
|
110
|
+
delete panelProps.image1;
|
|
111
|
+
delete panelProps.image2;
|
|
112
|
+
delete panelProps.image3;
|
|
113
|
+
delete panelProps.image4;
|
|
114
|
+
} // 确保images数组存在
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
if (!panelProps.images) {
|
|
118
|
+
panelProps.images = [];
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
_this.getContentPanel = function () {
|
|
123
|
+
var panelProps = _this.props.panelProps;
|
|
124
|
+
var defaultSource = [{
|
|
125
|
+
key: 'defaultSource_1',
|
|
126
|
+
name: (0, _locale.i18n)('GROUP_IMAGE'),
|
|
127
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
128
|
+
data: panelProps.image
|
|
129
|
+
}),
|
|
130
|
+
metaOption: panelProps.image
|
|
131
|
+
}, {
|
|
132
|
+
key: 'defaultSource_2',
|
|
133
|
+
name: (0, _locale.i18n)('TEXT'),
|
|
134
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
135
|
+
data: panelProps.title
|
|
136
|
+
}),
|
|
137
|
+
metaOption: panelProps.title
|
|
138
|
+
}];
|
|
139
|
+
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
140
|
+
headerSize: "middle",
|
|
141
|
+
onRefresh: function onRefresh() {
|
|
142
|
+
return (0, _coreUtil.renderPreview)();
|
|
143
|
+
},
|
|
144
|
+
showActiveColor: true,
|
|
145
|
+
source: defaultSource,
|
|
146
|
+
type: "switch"
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
_this.getImagePanel = function () {
|
|
151
|
+
var panelProps = _this.props.panelProps;
|
|
152
|
+
var clickedImage = _mobx.store.clickedImage; // 如果选中了图片,不显示图片列表,由ConfigPanel统一处理第三级面板
|
|
153
|
+
|
|
154
|
+
if (clickedImage) {
|
|
155
|
+
return null;
|
|
156
|
+
} // 显示图片列表
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
var renderCard = function renderCard(src) {
|
|
160
|
+
var _a, _b;
|
|
161
|
+
|
|
162
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
163
|
+
className: "card_wrap"
|
|
164
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
165
|
+
alt: "",
|
|
166
|
+
src: ((0, _coreUtil.isPc)() ? (_a = src.content) === null || _a === void 0 ? void 0 : _a.pcImgSrc : (_b = src.content) === null || _b === void 0 ? void 0 : _b.h5ImgSrc) || _defaultImg["default"]
|
|
167
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: "name"
|
|
169
|
+
}, "Image Name"));
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
var onClickItem = function onClickItem(node) {
|
|
173
|
+
_mobx.store.setState({
|
|
174
|
+
clickedImage: node.id
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
var onAddClick = function onAddClick() {
|
|
179
|
+
if (!panelProps.images) {
|
|
180
|
+
panelProps.images = [];
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
var newImage = (0, _defaultJSON.createImageMeta)(panelProps.id);
|
|
184
|
+
panelProps.images.push(newImage);
|
|
185
|
+
|
|
186
|
+
_this.setState({});
|
|
187
|
+
|
|
188
|
+
(0, _coreUtil.renderPreview)();
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
var reRender = function reRender() {
|
|
192
|
+
_this.setState({});
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
196
|
+
className: "node_list"
|
|
197
|
+
}, !panelProps.images || panelProps.images.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
198
|
+
className: "notice"
|
|
199
|
+
}) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
|
|
200
|
+
onClickItem: onClickItem,
|
|
201
|
+
renderCard: renderCard,
|
|
202
|
+
reRender: reRender,
|
|
203
|
+
source: panelProps.images || []
|
|
204
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
|
+
className: "btn_wrap"
|
|
206
|
+
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
207
|
+
icon: "icon-add",
|
|
208
|
+
onClick: onAddClick,
|
|
209
|
+
type: "primary"
|
|
210
|
+
}, (0, _locale.i18n)('ADD_IMAGE'))));
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
_this.resetHover = function () {
|
|
214
|
+
var panelProps = _this.props.panelProps;
|
|
215
|
+
|
|
216
|
+
if (panelProps.hover && panelProps.hover.open) {
|
|
217
|
+
panelProps.hover.image = __assign(__assign({}, panelProps.hover.image), JSON.parse(JSON.stringify(panelProps.image)));
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
return _this;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
GroupedImageSecondConfig.prototype.componentDidMount = function () {
|
|
225
|
+
var panelProps = this.props.panelProps;
|
|
226
|
+
this.migrateData(panelProps);
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
GroupedImageSecondConfig.prototype.componentWillReceiveProps = function (nextProps) {
|
|
230
|
+
var panelProps = nextProps.panelProps;
|
|
231
|
+
this.migrateData(panelProps);
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
GroupedImageSecondConfig.prototype.render = function () {
|
|
235
|
+
var _this = this;
|
|
236
|
+
|
|
237
|
+
var panelProps = this.props.panelProps;
|
|
238
|
+
|
|
239
|
+
var hoverPanel = /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
240
|
+
divider: "dashed",
|
|
241
|
+
noChange: true,
|
|
242
|
+
onRefresh: function onRefresh() {
|
|
243
|
+
return (0, _coreUtil.renderPreview)();
|
|
244
|
+
},
|
|
245
|
+
source: [{
|
|
246
|
+
key: 'hoverSetting_1',
|
|
247
|
+
name: (0, _locale.i18n)('GROUP_IMAGE'),
|
|
248
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
249
|
+
data: panelProps.hover.image
|
|
250
|
+
}),
|
|
251
|
+
metaOption: panelProps.hover.image
|
|
252
|
+
}],
|
|
253
|
+
type: "switch"
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
257
|
+
className: "grouped_image_second_conf_wrap"
|
|
258
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
259
|
+
divider: "bold",
|
|
260
|
+
headerSize: "large",
|
|
261
|
+
onRefresh: function onRefresh() {
|
|
262
|
+
return _this.resetHover();
|
|
263
|
+
},
|
|
264
|
+
source: [{
|
|
265
|
+
key: '1',
|
|
266
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
267
|
+
value: this.getContentPanel()
|
|
268
|
+
}, {
|
|
269
|
+
key: '2',
|
|
270
|
+
name: (0, _locale.i18n)('IMAGE'),
|
|
271
|
+
value: this.getImagePanel()
|
|
272
|
+
}, {
|
|
273
|
+
key: '3',
|
|
274
|
+
name: (0, _locale.i18n)('HOVER'),
|
|
275
|
+
value: hoverPanel,
|
|
276
|
+
metaOption: panelProps.hover,
|
|
277
|
+
toggleType: 'checkbox'
|
|
278
|
+
}]
|
|
279
|
+
}));
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
GroupedImageSecondConfig.defaultProps = {
|
|
283
|
+
panelProps: {}
|
|
284
|
+
};
|
|
285
|
+
GroupedImageSecondConfig = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], GroupedImageSecondConfig);
|
|
286
|
+
return GroupedImageSecondConfig;
|
|
287
|
+
}(_BaseConfig["default"]);
|
|
288
|
+
|
|
289
|
+
var _default = GroupedImageSecondConfig;
|
|
290
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.grouped_image_second_conf_wrap {
|
|
2
|
+
.config_header {
|
|
3
|
+
.button_wrap {
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.title {
|
|
8
|
+
margin-top: 20px;
|
|
9
|
+
font-family: 'Open Sans';
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-weight: 700;
|
|
12
|
+
font-size: 26px;
|
|
13
|
+
line-height: 32px;
|
|
14
|
+
color: #232F46;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -65,6 +65,8 @@ var _SearchBanner = _interopRequireDefault(require("../composite-comp/dito/compo
|
|
|
65
65
|
|
|
66
66
|
var _GroupedCarousel = _interopRequireDefault(require("../composite-comp/dito/components/GroupedCarousel"));
|
|
67
67
|
|
|
68
|
+
var _GroupedImage = _interopRequireDefault(require("../composite-comp/dito/components/GroupedImage"));
|
|
69
|
+
|
|
68
70
|
var _SlideImage = _interopRequireDefault(require("../composite-comp/dito/components/SlideImage"));
|
|
69
71
|
|
|
70
72
|
var _SearchDITO = _interopRequireDefault(require("../composite-comp/dito/components/SearchDITO"));
|
|
@@ -133,6 +135,8 @@ var _SearchBannerConfig = _interopRequireDefault(require("../composite-comp/dito
|
|
|
133
135
|
|
|
134
136
|
var _GroupedCarouselConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/GroupedCarouselConfig"));
|
|
135
137
|
|
|
138
|
+
var _GroupedImageConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/GroupedImageConfig"));
|
|
139
|
+
|
|
136
140
|
var _SlideImageConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/SlideImageConfig"));
|
|
137
141
|
|
|
138
142
|
var _SearchDITOConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/SearchDITOConfig"));
|
|
@@ -183,6 +187,8 @@ var _SearchBannerSecondConfig = _interopRequireDefault(require("../composite-com
|
|
|
183
187
|
|
|
184
188
|
var _GroupedCarouselSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/GroupedCarouselSecondConfig"));
|
|
185
189
|
|
|
190
|
+
var _GroupedImageSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/GroupedImageSecondConfig"));
|
|
191
|
+
|
|
186
192
|
var _SlideImageSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/SlideImageSecondConfig"));
|
|
187
193
|
|
|
188
194
|
var _SearchDITOSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/SearchDITOSecondConfig"));
|
|
@@ -199,17 +205,17 @@ var _a, _b, _c; // 组件
|
|
|
199
205
|
/**
|
|
200
206
|
* 渲染组件索引
|
|
201
207
|
*/
|
|
202
|
-
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_PersonalInformationSecond["default"].type] = _PersonalInformationSecond["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a[_GroupedCarousel["default"].type] = _GroupedCarousel["default"], _a[_SlideImage["default"].type] = _SlideImage["default"], _a[_SearchDITO["default"].type] = _SearchDITO["default"], _a[_News["default"].type] = _News["default"], _a[_Campaign["default"].type] = _Campaign["default"], _a);
|
|
208
|
+
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_PersonalInformationSecond["default"].type] = _PersonalInformationSecond["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_GroupedImage["default"].type] = _GroupedImage["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a[_GroupedCarousel["default"].type] = _GroupedCarousel["default"], _a[_SlideImage["default"].type] = _SlideImage["default"], _a[_SearchDITO["default"].type] = _SearchDITO["default"], _a[_News["default"].type] = _News["default"], _a[_Campaign["default"].type] = _Campaign["default"], _a);
|
|
203
209
|
/**
|
|
204
210
|
* 一级配置面板索引
|
|
205
211
|
*/
|
|
206
212
|
|
|
207
213
|
exports.componentMap = componentMap;
|
|
208
|
-
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_PersonalInformationSecond["default"].type] = _PersonalInformationSecondConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b[_GroupedCarousel["default"].type] = _GroupedCarouselConfig["default"], _b[_SlideImage["default"].type] = _SlideImageConfig["default"], _b[_SearchDITO["default"].type] = _SearchDITOConfig["default"], _b[_News["default"].type] = _NewsConfig["default"], _b[_Campaign["default"].type] = _CampaignConfig["default"], _b);
|
|
214
|
+
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_PersonalInformationSecond["default"].type] = _PersonalInformationSecondConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_GroupedImage["default"].type] = _GroupedImageConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b[_GroupedCarousel["default"].type] = _GroupedCarouselConfig["default"], _b[_SlideImage["default"].type] = _SlideImageConfig["default"], _b[_SearchDITO["default"].type] = _SearchDITOConfig["default"], _b[_News["default"].type] = _NewsConfig["default"], _b[_Campaign["default"].type] = _CampaignConfig["default"], _b);
|
|
209
215
|
/**
|
|
210
216
|
* 二级配置面板索引
|
|
211
217
|
*/
|
|
212
218
|
|
|
213
219
|
exports.configPanelMap = configPanelMap;
|
|
214
|
-
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig2["default"], _c[_PersonalInformationSecond["default"].type] = _PersonalInformationSecondSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c[_GroupedCarousel["default"].type] = _GroupedCarouselSecondConfig["default"], _c[_SlideImage["default"].type] = _SlideImageSecondConfig["default"], _c[_SearchDITO["default"].type] = _SearchDITOSecondConfig["default"], _c[_News["default"].type] = _NewsSecondConfig["default"], _c[_Campaign["default"].type] = _CampaignSecondConfig["default"], _c);
|
|
220
|
+
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig2["default"], _c[_PersonalInformationSecond["default"].type] = _PersonalInformationSecondSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c[_GroupedCarousel["default"].type] = _GroupedCarouselSecondConfig["default"], _c[_GroupedImage["default"].type] = _GroupedImageSecondConfig["default"], _c[_SlideImage["default"].type] = _SlideImageSecondConfig["default"], _c[_SearchDITO["default"].type] = _SearchDITOSecondConfig["default"], _c[_News["default"].type] = _NewsSecondConfig["default"], _c[_Campaign["default"].type] = _CampaignSecondConfig["default"], _c);
|
|
215
221
|
exports.secondConfigPanelMap = secondConfigPanelMap;
|
package/es/constants/index.js
CHANGED
|
@@ -118,7 +118,8 @@ var urlTypeMap = {
|
|
|
118
118
|
STORE: 'Store',
|
|
119
119
|
AFFILIATE_PRODUCT: 'AffiliateProduct',
|
|
120
120
|
ANCHOR: 'Anchor',
|
|
121
|
-
CARD_PRODUCT_LIST: 'ProductList'
|
|
121
|
+
CARD_PRODUCT_LIST: 'ProductList',
|
|
122
|
+
PICTURE: 'ImageLibrary'
|
|
122
123
|
};
|
|
123
124
|
exports.urlTypeMap = urlTypeMap;
|
|
124
125
|
var respCodeMap = {
|
|
@@ -289,6 +290,10 @@ var compInfoMap = {
|
|
|
289
290
|
CAMPAIGN: {
|
|
290
291
|
name: 'Campaign',
|
|
291
292
|
icon: 'icon-carousel'
|
|
293
|
+
},
|
|
294
|
+
GROUPED_IMAGE: {
|
|
295
|
+
name: 'Grouped Image',
|
|
296
|
+
icon: 'icon-forms'
|
|
292
297
|
}
|
|
293
298
|
};
|
|
294
299
|
/**
|
package/es/constants/layout.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.videoPCLayout = exports.videoH5Layout = exports.slideImageLayout = exports.searchLayout = exports.searchDitoLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.pcFlashDealLayout = exports.newsletterLayout = exports.newsLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryPcLayout = exports.imageGalleryLayout = exports.groupedCarouselLayout = exports.flashDealLayout = exports.dividerLayout = exports.carouselLayout = exports.campaignLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
|
|
6
|
+
exports.videoPCLayout = exports.videoH5Layout = exports.slideImageLayout = exports.searchLayout = exports.searchDitoLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.pcFlashDealLayout = exports.newsletterLayout = exports.newsLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryPcLayout = exports.imageGalleryLayout = exports.groupedImageLayoutPc = exports.groupedCarouselLayout = exports.flashDealLayout = exports.dividerLayout = exports.carouselLayout = exports.campaignLayout = exports.bannerSlideLayout = exports.bannerPcLayout = exports.bannerH5Layout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
|
|
7
7
|
|
|
8
8
|
var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
|
|
9
9
|
|
|
@@ -63,6 +63,8 @@ var _layoutRecommend4 = _interopRequireDefault(require("../assets/images/layout-
|
|
|
63
63
|
|
|
64
64
|
var _layoutRecommend5 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-5.png"));
|
|
65
65
|
|
|
66
|
+
var _groupedImageLayout = _interopRequireDefault(require("../assets/images/layout-icon/grouped-image-layout1.png"));
|
|
67
|
+
|
|
66
68
|
var _layoutVideoH = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-1.png"));
|
|
67
69
|
|
|
68
70
|
var _layoutVideoH2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-video-h5-2.png"));
|
|
@@ -103,6 +105,10 @@ var _newsLayout = _interopRequireDefault(require("../assets/images/layout-icon/n
|
|
|
103
105
|
|
|
104
106
|
var _campaignLayout = _interopRequireDefault(require("../assets/images/layout-icon/campaignLayout1.png"));
|
|
105
107
|
|
|
108
|
+
var _bannerLayout = _interopRequireDefault(require("../assets/images/layout-icon/banner-layout1.png"));
|
|
109
|
+
|
|
110
|
+
var _bannerLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/banner-layout2.svg"));
|
|
111
|
+
|
|
106
112
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
107
113
|
|
|
108
114
|
// import p3 from '../assets/images/layout-icon/layout-imagetext-p3.png';
|
|
@@ -268,6 +274,12 @@ var recommendLayoutPc = [{
|
|
|
268
274
|
image: _layoutRecommend5["default"]
|
|
269
275
|
}];
|
|
270
276
|
exports.recommendLayoutPc = recommendLayoutPc;
|
|
277
|
+
var groupedImageLayoutPc = [{
|
|
278
|
+
id: 'layout1',
|
|
279
|
+
name: 'layout1',
|
|
280
|
+
image: _groupedImageLayout["default"]
|
|
281
|
+
}];
|
|
282
|
+
exports.groupedImageLayoutPc = groupedImageLayoutPc;
|
|
271
283
|
var affiliateLayoutMobile = [{
|
|
272
284
|
id: 'layout1',
|
|
273
285
|
name: 'layout1',
|
|
@@ -412,4 +424,20 @@ var campaignLayout = [{
|
|
|
412
424
|
name: 'layout1',
|
|
413
425
|
image: _campaignLayout["default"]
|
|
414
426
|
}];
|
|
415
|
-
exports.campaignLayout = campaignLayout;
|
|
427
|
+
exports.campaignLayout = campaignLayout;
|
|
428
|
+
var bannerPcLayout = [{
|
|
429
|
+
id: 'layout1',
|
|
430
|
+
name: 'layout1',
|
|
431
|
+
image: _bannerLayout["default"]
|
|
432
|
+
}, {
|
|
433
|
+
id: 'layout2',
|
|
434
|
+
name: 'layout2',
|
|
435
|
+
image: _bannerLayout2["default"]
|
|
436
|
+
}];
|
|
437
|
+
exports.bannerPcLayout = bannerPcLayout;
|
|
438
|
+
var bannerH5Layout = [{
|
|
439
|
+
id: 'layout1',
|
|
440
|
+
name: 'layout1',
|
|
441
|
+
image: _bannerLayout["default"]
|
|
442
|
+
}];
|
|
443
|
+
exports.bannerH5Layout = bannerH5Layout;
|