@fonixtree/magic-design 2.0.48 → 2.0.50

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 (87) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +22 -6
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +28 -3
  4. package/es/assets/fonts/magic-box-iconfont.js +5 -1
  5. package/es/assets/fonts/magic-box-iconfont.js.bak +5 -1
  6. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  8. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  9. package/es/assets/images/base64/index.js +10 -2
  10. package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  11. package/es/common/ImagePicker/index.js +1 -1
  12. package/es/common/MyModal/index.js +413 -0
  13. package/es/common/MyModal/index.less +74 -0
  14. package/es/common/index.js +8 -0
  15. package/es/composite-comp/bol/components/Wallet/mobile/index.js +60 -77
  16. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  17. package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
  18. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  19. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  20. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  21. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  22. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  23. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  24. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  25. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  26. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  27. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  28. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -0
  29. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  30. package/es/constants/component-types.js +9 -3
  31. package/es/constants/index.js +4 -0
  32. package/es/constants/layout.js +9 -1
  33. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +9 -0
  34. package/es/core/Designer/ToolBarModal/index.js +55 -0
  35. package/es/core/Designer/ToolBarModal/index.less +3 -2
  36. package/es/core/Renderer/index.js +44 -3
  37. package/es/locale/en/en.json +2 -1
  38. package/es/locale/es/es.json +2 -1
  39. package/es/locale/id/id.json +2 -1
  40. package/es/meta-comp/components/Image/index.js +31 -25
  41. package/es/meta-comp/config-panels/ImageConfig/index.js +44 -42
  42. package/es/mobx/Frame.js +15 -1
  43. package/es/utils/businessUtil.js +2 -1
  44. package/lib/assets/fonts/.DS_Store +0 -0
  45. package/lib/assets/fonts/magic-box-iconfont.css +22 -6
  46. package/lib/assets/fonts/magic-box-iconfont.css.bak +28 -3
  47. package/lib/assets/fonts/magic-box-iconfont.js +5 -1
  48. package/lib/assets/fonts/magic-box-iconfont.js.bak +5 -1
  49. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  50. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  51. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  52. package/lib/assets/images/base64/index.js +10 -2
  53. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  54. package/lib/common/ImagePicker/index.js +1 -1
  55. package/lib/common/MyModal/index.js +413 -0
  56. package/lib/common/MyModal/index.less +74 -0
  57. package/lib/common/index.js +8 -0
  58. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +60 -77
  59. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  60. package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
  61. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  62. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  63. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  64. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  65. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  66. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  67. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  68. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  69. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  70. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  71. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -0
  72. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  73. package/lib/constants/component-types.js +9 -3
  74. package/lib/constants/index.js +4 -0
  75. package/lib/constants/layout.js +9 -1
  76. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +9 -0
  77. package/lib/core/Designer/ToolBarModal/index.js +55 -0
  78. package/lib/core/Designer/ToolBarModal/index.less +3 -2
  79. package/lib/core/Renderer/index.js +44 -3
  80. package/lib/locale/en/en.json +2 -1
  81. package/lib/locale/es/es.json +2 -1
  82. package/lib/locale/id/id.json +2 -1
  83. package/lib/meta-comp/components/Image/index.js +31 -25
  84. package/lib/meta-comp/config-panels/ImageConfig/index.js +44 -42
  85. package/lib/mobx/Frame.js +15 -1
  86. package/lib/utils/businessUtil.js +2 -1
  87. package/package.json +1 -1
@@ -79,19 +79,21 @@ function (_super) {
79
79
  };
80
80
 
81
81
  _this.getStyle = function () {
82
- var _a = _this.props,
83
- data = _a.data,
84
- hoverState = _a.hoverState,
85
- maxHeight = _a.maxHeight,
86
- maxWidth = _a.maxWidth,
87
- minHeight = _a.minHeight,
88
- minWidth = _a.minWidth,
89
- limitWidthHeight = _a.limitWidthHeight,
90
- scale = _a.scale;
82
+ var _a, _b;
83
+
84
+ var _c = _this.props,
85
+ data = _c.data,
86
+ hoverState = _c.hoverState,
87
+ maxHeight = _c.maxHeight,
88
+ maxWidth = _c.maxWidth,
89
+ minHeight = _c.minHeight,
90
+ minWidth = _c.minWidth,
91
+ limitWidthHeight = _c.limitWidthHeight,
92
+ scale = _c.scale;
91
93
  var hoverImgSrc = _this.state.hoverImgSrc;
92
94
  var obj = {};
93
95
 
94
- if (data.hover.open && data.hover.backgroundType === 'enlarge' && (hoverState || hoverImgSrc)) {
96
+ if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && ((_b = data === null || data === void 0 ? void 0 : data.hover) === null || _b === void 0 ? void 0 : _b.backgroundType) === 'enlarge' && (hoverState || hoverImgSrc)) {
95
97
  // return { transform: `scale(${data.hover.magnification})` };
96
98
  obj.transform = "scale(" + data.hover.magnification + ")";
97
99
  obj.zIndex = '1';
@@ -133,11 +135,13 @@ function (_super) {
133
135
  };
134
136
 
135
137
  _this.mouseEnterImg = function () {
136
- var _a = _this.props,
137
- data = _a.data,
138
- isBackground = _a.isBackground;
138
+ var _a;
139
139
 
140
- if (data.hover.open && !isBackground) {
140
+ var _b = _this.props,
141
+ data = _b.data,
142
+ isBackground = _b.isBackground;
143
+
144
+ if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && !isBackground) {
141
145
  _this.setState({
142
146
  hoverImgSrc: true
143
147
  });
@@ -145,11 +149,13 @@ function (_super) {
145
149
  };
146
150
 
147
151
  _this.mouseLeaveImg = function () {
148
- var _a = _this.props,
149
- data = _a.data,
150
- isBackground = _a.isBackground;
152
+ var _a;
153
+
154
+ var _b = _this.props,
155
+ data = _b.data,
156
+ isBackground = _b.isBackground;
151
157
 
152
- if (data.hover.open && !isBackground) {
158
+ if (((_a = data === null || data === void 0 ? void 0 : data.hover) === null || _a === void 0 ? void 0 : _a.open) && !isBackground) {
153
159
  _this.setState({
154
160
  hoverImgSrc: false
155
161
  });
@@ -162,19 +168,19 @@ function (_super) {
162
168
  Image.prototype.render = function () {
163
169
  var _this = this;
164
170
 
165
- var _a, _b;
171
+ var _a, _b, _c, _d;
166
172
 
167
- var _c = this.props,
168
- data = _c.data,
169
- isBackground = _c.isBackground,
170
- hoverState = _c.hoverState,
171
- notNeedLazy = _c.notNeedLazy;
173
+ var _e = this.props,
174
+ data = _e.data,
175
+ isBackground = _e.isBackground,
176
+ hoverState = _e.hoverState,
177
+ notNeedLazy = _e.notNeedLazy;
172
178
  var hoverImgSrc = this.state.hoverImgSrc; // const { hoverSrc } = this.state;
173
179
  // console.log('--metaImage ', this.props);
174
180
 
175
181
  var srcImg = (0, _coreUtil.isPc)() ? (_a = data.content) === null || _a === void 0 ? void 0 : _a.pcImgSrc : (_b = data.content) === null || _b === void 0 ? void 0 : _b.h5ImgSrc;
176
182
 
177
- if (data.hover.open && data.hover.backgroundType === 'new' && (hoverState || hoverImgSrc)) {
183
+ if (((_c = data === null || data === void 0 ? void 0 : data.hover) === null || _c === void 0 ? void 0 : _c.open) && ((_d = data === null || data === void 0 ? void 0 : data.hover) === null || _d === void 0 ? void 0 : _d.backgroundType) === 'new' && (hoverState || hoverImgSrc)) {
178
184
  srcImg = (0, _coreUtil.isPc)() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl;
179
185
  } // if (window.magicDesign.isShop && srcImg?.includes('ecommerce/static')) {
180
186
  // srcImg = srcImg.replace('ecommerce/static', 'static');
@@ -351,48 +351,6 @@ function (_super) {
351
351
  value: data.content.clickUrl
352
352
  })));
353
353
 
354
- var HoverSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
355
- split: data.hover.backgroundType === 'new',
356
- title: (0, _locale.i18n)('IMAGE')
357
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
358
- className: "hoverSelect",
359
- onChange: function onChange(v) {
360
- data.hover.backgroundType = v;
361
-
362
- _this.selfRender();
363
- },
364
- size: "large",
365
- value: data.hover.backgroundType
366
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
367
- value: "enlarge"
368
- }, (0, _locale.i18n)('ENLARGE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
369
- value: "new"
370
- }, (0, _locale.i18n)('NEW_IMAGE')))), data.hover.backgroundType === 'enlarge' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
371
- title: (0, _locale.i18n)('MAGNIFICATION')
372
- }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
373
- inputType: "float",
374
- maxVal: 3,
375
- minVal: 1,
376
- onChange: function onChange(v) {
377
- data.hover.magnification = v.count;
378
-
379
- _this.selfRender();
380
- },
381
- step: 0.25,
382
- value: {
383
- count: data.hover.magnification
384
- }
385
- })), data.hover.backgroundType === 'new' && /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
386
- imageSelectedWay: data.hover.imageSelectedWay || {
387
- pc: '',
388
- mobile: ''
389
- },
390
- onChange: function onChange(v, way) {
391
- return _this.getImgHoverUrl(v, way);
392
- },
393
- value: (0, _coreUtil.isPc)() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl
394
- }));
395
-
396
354
  var imageSource = [{
397
355
  key: '1',
398
356
  name: (0, _locale.i18n)('CONTENT'),
@@ -400,6 +358,50 @@ function (_super) {
400
358
  }];
401
359
 
402
360
  if (needHover) {
361
+ console.log('needHover', needHover);
362
+
363
+ var HoverSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
364
+ split: data.hover.backgroundType === 'new',
365
+ title: (0, _locale.i18n)('IMAGE')
366
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
367
+ className: "hoverSelect",
368
+ onChange: function onChange(v) {
369
+ data.hover.backgroundType = v;
370
+
371
+ _this.selfRender();
372
+ },
373
+ size: "large",
374
+ value: data.hover.backgroundType
375
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
376
+ value: "enlarge"
377
+ }, (0, _locale.i18n)('ENLARGE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
378
+ value: "new"
379
+ }, (0, _locale.i18n)('NEW_IMAGE')))), data.hover.backgroundType === 'enlarge' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
380
+ title: (0, _locale.i18n)('MAGNIFICATION')
381
+ }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
382
+ inputType: "float",
383
+ maxVal: 3,
384
+ minVal: 1,
385
+ onChange: function onChange(v) {
386
+ data.hover.magnification = v.count;
387
+
388
+ _this.selfRender();
389
+ },
390
+ step: 0.25,
391
+ value: {
392
+ count: data.hover.magnification
393
+ }
394
+ })), data.hover.backgroundType === 'new' && /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
395
+ imageSelectedWay: data.hover.imageSelectedWay || {
396
+ pc: '',
397
+ mobile: ''
398
+ },
399
+ onChange: function onChange(v, way) {
400
+ return _this.getImgHoverUrl(v, way);
401
+ },
402
+ value: (0, _coreUtil.isPc)() ? data.hover.pcImgHoverUrl : data.hover.h5ImgHoverUrl
403
+ }));
404
+
403
405
  imageSource.push({
404
406
  key: '5',
405
407
  name: (0, _locale.i18n)('HOVER'),
package/lib/mobx/Frame.js CHANGED
@@ -42,13 +42,27 @@ function () {
42
42
  onOk: function onOk() {},
43
43
  onCancel: function onCancel() {}
44
44
  };
45
+ /* 移动端 Modal弹窗 */
46
+
47
+ this.modalState = {
48
+ visible: false,
49
+ hideCancel: true,
50
+ title: '',
51
+ message: '',
52
+ messageImg: '',
53
+ confirmText: 'YES',
54
+ cancelText: 'NO',
55
+ onConfirm: function onConfirm() {},
56
+ onCancel: function onCancel() {}
57
+ };
45
58
  this.textModalState = {
46
59
  visible: false,
47
60
  onOk: function onOk() {}
48
61
  };
49
62
  (0, _mobx.makeObservable)(this, {
50
63
  confirmState: _mobx.observable,
51
- textModalState: _mobx.observable
64
+ textModalState: _mobx.observable,
65
+ modalState: _mobx.observable
52
66
  });
53
67
  }
54
68
  /** 修改状态 */
@@ -325,7 +325,8 @@ var parseUrl = function parseUrl(url) {
325
325
  '/social-commerce/my-cashback': 'CASHBACK',
326
326
  '/account/wallet': 'WEBVIEW',
327
327
  '/product/GroupBuy': 'GROUP',
328
- '/search-page': 'SEARCH_PAGE'
328
+ '/search-page': 'SEARCH_PAGE',
329
+ '/main/my-commission': 'WALLET'
329
330
  };
330
331
  link = url;
331
332
  params = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.48",
4
+ "version": "2.0.50",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",