@fonixtree/magic-design 1.0.219 → 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/common/LinkModal/index.js +3 -23
- package/es/composite-comp/bol/components/Banner/pc/components/SwiperBannerPc.js +13 -8
- package/es/composite-comp/bol/components/Banner/pc/index.less +6 -6
- package/es/composite-comp/dito/components/GroupedImage/defaultJSON.js +6 -7
- package/es/composite-comp/dito/components/GroupedImage/pc/index.js +243 -26
- package/es/composite-comp/dito/components/GroupedImage/pc/index.less +78 -9
- package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.less +1 -1
- package/es/composite-comp/dito/second-config-panels/GroupedImageSecondConfig/index.js +127 -29
- package/es/composite-comp/dito/second-config-panels/GroupedImageSecondConfig/index.less +21 -0
- package/es/constants/index.js +1 -1
- package/es/core/Designer/ConfigPanel/index.js +217 -4
- package/es/core/Designer/ConfigPanel/index.less +39 -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/Store.js +4 -1
- package/lib/common/LinkModal/index.js +3 -23
- package/lib/composite-comp/bol/components/Banner/pc/components/SwiperBannerPc.js +13 -8
- package/lib/composite-comp/bol/components/Banner/pc/index.less +6 -6
- package/lib/composite-comp/dito/components/GroupedImage/defaultJSON.js +6 -7
- package/lib/composite-comp/dito/components/GroupedImage/pc/index.js +243 -26
- package/lib/composite-comp/dito/components/GroupedImage/pc/index.less +78 -9
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +1 -1
- package/lib/composite-comp/dito/second-config-panels/GroupedImageSecondConfig/index.js +127 -29
- package/lib/composite-comp/dito/second-config-panels/GroupedImageSecondConfig/index.less +21 -0
- package/lib/constants/index.js +1 -1
- package/lib/core/Designer/ConfigPanel/index.js +217 -4
- package/lib/core/Designer/ConfigPanel/index.less +39 -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/Store.js +4 -1
- package/package.json +1 -1
|
@@ -204,7 +204,8 @@ var imageJson = {
|
|
|
204
204
|
clickUrl: '',
|
|
205
205
|
pcImgSrc: '',
|
|
206
206
|
h5ImgSrc: '',
|
|
207
|
-
name: ''
|
|
207
|
+
name: '',
|
|
208
|
+
borderRadius: 0
|
|
208
209
|
},
|
|
209
210
|
hover: {
|
|
210
211
|
open: false,
|
|
@@ -337,13 +338,15 @@ function (_super) {
|
|
|
337
338
|
ImageConfig.prototype.render = function () {
|
|
338
339
|
var _this = this;
|
|
339
340
|
|
|
340
|
-
var _a
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
341
|
+
var _a;
|
|
342
|
+
|
|
343
|
+
var _b = this.props,
|
|
344
|
+
data = _b.data,
|
|
345
|
+
needHover = _b.needHover,
|
|
346
|
+
needClickArea = _b.needClickArea,
|
|
347
|
+
needURL = _b.needURL,
|
|
348
|
+
recommendImgSize = _b.recommendImgSize,
|
|
349
|
+
onlySpecificCode = _b.onlySpecificCode;
|
|
347
350
|
var selectImg = this.getSelectedImg(data);
|
|
348
351
|
|
|
349
352
|
var ContentSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
@@ -373,6 +376,20 @@ function (_super) {
|
|
|
373
376
|
},
|
|
374
377
|
onlySpecificCode: onlySpecificCode,
|
|
375
378
|
value: data.content.clickUrl
|
|
379
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
380
|
+
title: (0, _locale.i18n)('BORDER_RADIUS')
|
|
381
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
382
|
+
maxVal: 30,
|
|
383
|
+
minVal: 0,
|
|
384
|
+
onChange: function onChange(_a) {
|
|
385
|
+
var count = _a.count;
|
|
386
|
+
data.content.borderRadius = count;
|
|
387
|
+
|
|
388
|
+
_this.selfRender();
|
|
389
|
+
},
|
|
390
|
+
value: {
|
|
391
|
+
count: ((_a = data === null || data === void 0 ? void 0 : data.content) === null || _a === void 0 ? void 0 : _a.borderRadius) || 0
|
|
392
|
+
}
|
|
376
393
|
})));
|
|
377
394
|
|
|
378
395
|
var imageSource = [{
|
package/lib/mobx/Store.js
CHANGED
|
@@ -14,7 +14,7 @@ var _storeUtil = require("../utils/storeUtil");
|
|
|
14
14
|
var debug = require('debug')('worker:mobx');
|
|
15
15
|
|
|
16
16
|
var CACHE_KEY = 'STORE';
|
|
17
|
-
var whiteList = ['hoveredMeta', 'clickedMeta', 'clickedGroup', 'clickedFloor', 'hoveredFloor', 'textSelection', 'MPageData'];
|
|
17
|
+
var whiteList = ['hoveredMeta', 'clickedMeta', 'clickedGroup', 'clickedFloor', 'hoveredFloor', 'textSelection', 'MPageData', 'clickedImage'];
|
|
18
18
|
|
|
19
19
|
var Store =
|
|
20
20
|
/** @class */
|
|
@@ -40,6 +40,8 @@ function () {
|
|
|
40
40
|
|
|
41
41
|
this.imgGenVisible = false; // 图片生成器是否可见
|
|
42
42
|
|
|
43
|
+
this.clickedImage = ''; // 点击的图片Id(用于第三级配置面板)
|
|
44
|
+
|
|
43
45
|
(0, _mobx.makeObservable)(this, {
|
|
44
46
|
MPageData: _mobx.observable,
|
|
45
47
|
locale: _mobx.observable,
|
|
@@ -50,6 +52,7 @@ function () {
|
|
|
50
52
|
hoveredFloor: _mobx.observable,
|
|
51
53
|
CarouselStore: _mobx.observable,
|
|
52
54
|
imgGenVisible: _mobx.observable,
|
|
55
|
+
clickedImage: _mobx.observable,
|
|
53
56
|
setState: _mobx.action.bound
|
|
54
57
|
});
|
|
55
58
|
}
|