@fonixtree/magic-design 0.1.14 → 0.1.16

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 (95) hide show
  1. package/es/common/ImageModal/CommonSelPicCard/index.js +6 -6
  2. package/es/common/ImageModal/CommonSelPicCard/index.less +2 -2
  3. package/es/common/ImageModal/index.less +3 -3
  4. package/es/common/ImageModal/utils.js +15 -9
  5. package/es/common/InputNumber/index.less +1 -1
  6. package/es/common/LinkModal/FilteredProductModal/index.less +2 -2
  7. package/es/common/LinkModal/index.less +1 -1
  8. package/es/common/ProductModal/index.less +2 -2
  9. package/es/common/Slider/index.less +2 -2
  10. package/es/common/SwitchCollapse/index.less +3 -3
  11. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  12. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  13. package/es/composite-comp/bol/components/Banner/pc/index.less +1 -1
  14. package/es/composite-comp/bol/components/Carousel/mobile/index.js +6 -4
  15. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  16. package/es/composite-comp/bol/components/Divider/index.js +4 -2
  17. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +6 -4
  18. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  19. package/es/composite-comp/bol/components/ImageText/mobile/index.js +4 -2
  20. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  21. package/es/composite-comp/bol/components/Newsletter/index.js +3 -1
  22. package/es/composite-comp/bol/components/Video/components/ShareBtn/index.js +2 -2
  23. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +4 -2
  24. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -2
  25. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
  26. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -2
  27. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
  28. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -2
  29. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
  30. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  31. package/es/composite-comp/bol/components/Wallet/mobile/index.js +4 -4
  32. package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  33. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.less +1 -1
  34. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -2
  35. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  36. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  37. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
  38. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  39. package/es/composite-comp/dito/components/Recommend/pc/index.less +1 -1
  40. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +43 -49
  41. package/es/core/Designer/AppointmentModal/index.less +2 -2
  42. package/es/decorator/compositeDecorator.js +4 -2
  43. package/es/meta-comp/components/Button/index.js +3 -1
  44. package/es/meta-comp/components/Image/index.js +4 -2
  45. package/es/meta-comp/components/Text/index.js +1 -1
  46. package/es/meta-comp/config-panels/ImageConfig/index.less +1 -1
  47. package/es/utils/commonUtil.js +45 -1
  48. package/lib/common/ImageModal/CommonSelPicCard/index.js +6 -6
  49. package/lib/common/ImageModal/CommonSelPicCard/index.less +2 -2
  50. package/lib/common/ImageModal/index.less +3 -3
  51. package/lib/common/ImageModal/utils.js +15 -9
  52. package/lib/common/InputNumber/index.less +1 -1
  53. package/lib/common/LinkModal/FilteredProductModal/index.less +2 -2
  54. package/lib/common/LinkModal/index.less +1 -1
  55. package/lib/common/ProductModal/index.less +2 -2
  56. package/lib/common/Slider/index.less +2 -2
  57. package/lib/common/SwitchCollapse/index.less +3 -3
  58. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  59. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  60. package/lib/composite-comp/bol/components/Banner/pc/index.less +1 -1
  61. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +6 -4
  62. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  63. package/lib/composite-comp/bol/components/Divider/index.js +4 -2
  64. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +6 -4
  65. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  66. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +4 -2
  67. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  68. package/lib/composite-comp/bol/components/Newsletter/index.js +3 -1
  69. package/lib/composite-comp/bol/components/Video/components/ShareBtn/index.js +2 -2
  70. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +4 -2
  71. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -2
  72. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +23 -27
  73. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -2
  74. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +38 -45
  75. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -2
  76. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +41 -50
  77. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  78. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +4 -4
  79. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  80. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.less +1 -1
  81. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -2
  82. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  83. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  84. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
  85. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  86. package/lib/composite-comp/dito/components/Recommend/pc/index.less +1 -1
  87. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +43 -49
  88. package/lib/core/Designer/AppointmentModal/index.less +2 -2
  89. package/lib/decorator/compositeDecorator.js +4 -2
  90. package/lib/meta-comp/components/Button/index.js +3 -1
  91. package/lib/meta-comp/components/Image/index.js +4 -2
  92. package/lib/meta-comp/components/Text/index.js +1 -1
  93. package/lib/meta-comp/config-panels/ImageConfig/index.less +1 -1
  94. package/lib/utils/commonUtil.js +45 -1
  95. package/package.json +2 -1
@@ -213,7 +213,7 @@ var JsonToUrl = function JsonToUrl(data) {
213
213
 
214
214
  for (var i in data) {
215
215
  var keyData = encodeURIComponent(i);
216
- var value = encodeURIComponent(data[i]) === 'null' ? null : encodeURIComponent(data[i]);
216
+ var value = encodeURIComponent(data[i]) === 'null' ? '' : encodeURIComponent(data[i]);
217
217
  tempArr.push(keyData + "=" + value);
218
218
  }
219
219
 
@@ -1,89 +1,76 @@
1
1
  .m-recommend-mobile {
2
2
  display: flex;
3
3
  flex-direction: column;
4
-
5
- .ant-tabs-nav-operations {
6
- display: none !important;
7
- }
8
-
9
- ::-webkit-scrollbar {
10
- width: 0;
11
- height: 0;
12
- display: none;
13
- }
14
-
15
-
16
- .tab-select-wrap {
17
- display: flex;
18
- align-items: center;
19
- height: 50px;
20
- background: rgb(255 255 255);
21
- overflow: auto;
22
- position: relative;
23
- margin-bottom: 15px;
24
-
25
- .tabTitle {
26
- display: flex;
27
- align-items: center;
28
- text-align: center;
29
- padding: 0 16px;
30
- width: fit-content;
31
- height: 100%;
32
- justify-content: center;
33
- white-space: nowrap;
34
- flex-direction: column;
35
-
36
- img {
37
- height: 20px;
38
- width: 20px;
39
- margin-bottom: 2px;
40
- }
41
- }
42
-
43
- .active-line {
44
- position: absolute;
45
- bottom: 0;
46
- width: 200px;
47
- height: 3px;
48
- background-color: #fff;
49
- transition: .2s all linear;
50
- border-radius: 1.5px;
51
- }
52
- }
53
-
54
- .macyContainer {
55
- display: flex;
56
- margin: 0 16px;
57
- }
58
-
59
- .scrollContainer {
60
- display: flex;
61
- flex-direction: row;
62
- align-items: center;
63
- margin: 0 16px;
64
- overflow-x: auto;
65
- padding-bottom: 15px;
66
-
67
- &.pl_100 {
68
- padding-left: 100px;
69
- }
70
-
71
- .scrollProductList {
72
- display: flex;
73
- flex-direction: row;
74
- align-items: flex-start;
75
-
76
- .productCard {
77
- margin-right: 12px;
78
- }
79
- }
80
- }
81
-
82
- .btnSeeAll {
83
- display: block;
84
- width: fit-content;
85
- min-width: 80px;
86
- margin: 0 auto;
87
- flex: none;
88
- }
89
- }
4
+ }
5
+ .m-recommend-mobile .cylon-tabs-nav-operations {
6
+ display: none !important;
7
+ }
8
+ .m-recommend-mobile ::-webkit-scrollbar {
9
+ width: 0;
10
+ height: 0;
11
+ display: none;
12
+ }
13
+ .m-recommend-mobile .tab-select-wrap {
14
+ display: flex;
15
+ align-items: center;
16
+ height: 1rem;
17
+ background: #ffffff;
18
+ overflow: auto;
19
+ position: relative;
20
+ margin-bottom: 0.3rem;
21
+ }
22
+ .m-recommend-mobile .tab-select-wrap .tabTitle {
23
+ display: flex;
24
+ align-items: center;
25
+ text-align: center;
26
+ padding: 0 0.32rem;
27
+ width: fit-content;
28
+ height: 100%;
29
+ justify-content: center;
30
+ white-space: nowrap;
31
+ flex-direction: column;
32
+ }
33
+ .m-recommend-mobile .tab-select-wrap .tabTitle img {
34
+ height: 0.4rem;
35
+ width: 0.4rem;
36
+ margin-bottom: 0.04rem;
37
+ }
38
+ .m-recommend-mobile .tab-select-wrap .active-line {
39
+ position: absolute;
40
+ bottom: 0;
41
+ width: 4rem;
42
+ height: 0.06rem;
43
+ background-color: #fff;
44
+ transition: 0.2s all linear;
45
+ border-radius: 0.03rem;
46
+ }
47
+ .m-recommend-mobile .macyContainer {
48
+ display: flex;
49
+ margin: 0 0.32rem;
50
+ }
51
+ .m-recommend-mobile .scrollContainer {
52
+ display: flex;
53
+ flex-direction: row;
54
+ align-items: center;
55
+ margin: 0 0.32rem;
56
+ overflow-x: auto;
57
+ padding-bottom: 0.3rem;
58
+ }
59
+ .m-recommend-mobile .scrollContainer.pl_100 {
60
+ padding-left: 2rem;
61
+ }
62
+ .m-recommend-mobile .scrollContainer .scrollProductList {
63
+ display: flex;
64
+ flex-direction: row;
65
+ align-items: flex-start;
66
+ }
67
+ .m-recommend-mobile .scrollContainer .scrollProductList .productCard {
68
+ margin-right: 0.24rem;
69
+ }
70
+ .m-recommend-mobile .btnSeeAll {
71
+ display: block;
72
+ width: fit-content;
73
+ min-width: 1.6rem;
74
+ margin: 0 auto;
75
+ flex: none;
76
+ }
@@ -3,7 +3,7 @@
3
3
  flex-direction: column;
4
4
  position: relative;
5
5
 
6
- .ant-tabs-nav-operations {
6
+ .cylon-tabs-nav-operations {
7
7
  display: none !important;
8
8
  }
9
9
 
@@ -1,55 +1,49 @@
1
1
  .m-search-bar {
2
- height: 48px;
3
- padding: 8px 0;
2
+ height: 0.96rem;
3
+ padding: 0.16rem 0;
4
4
  display: flex;
5
5
  flex-direction: row-reverse;
6
6
  align-items: center;
7
7
  justify-content: space-between;
8
8
  width: 100%;
9
-
10
- .right {
11
- display: flex;
12
- flex: 1;
13
- margin-left: 15px;
14
- align-items: center;
15
- justify-content: space-between;
16
-
17
- .search-input-wrap {
18
- flex: 1;
19
- background: #fff;
20
- border-radius: 4px;
21
- border: 1px solid #D2D9E5;
22
- padding: 4px 12px;
23
- height: 32px;
24
- text-align: right;
25
- }
26
-
27
- .message-wrap {
28
- position: relative;
29
- margin-left: 10px;
30
-
31
- .num {
32
- position: absolute;
33
- top: -6px;
34
- right: -6px;
35
- display: inline-block;
36
- padding: 1px 2px;
37
- min-width: 17px;
38
- text-align: center;
39
- background-color: #CE1126;
40
- border: 1px solid #fff;
41
- border-radius: 8px;
42
- font-family: 'Montserrat';
43
- font-style: normal;
44
- font-weight: 600;
45
- font-size: 8px;
46
- color: #FFFFFF;
47
- }
48
- }
49
- }
50
- .logo {
51
- img {
52
- width: auto;
53
- }
54
- }
55
- }
9
+ }
10
+ .m-search-bar .right {
11
+ display: flex;
12
+ flex: 1;
13
+ margin-left: 0.3rem;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ }
17
+ .m-search-bar .right .search-input-wrap {
18
+ flex: 1;
19
+ background: #fff;
20
+ border-radius: 0.08rem;
21
+ border: 0.02rem solid #D2D9E5;
22
+ padding: 0.08rem 0.24rem;
23
+ height: 0.64rem;
24
+ text-align: right;
25
+ }
26
+ .m-search-bar .right .message-wrap {
27
+ position: relative;
28
+ margin-left: 0.2rem;
29
+ }
30
+ .m-search-bar .right .message-wrap .num {
31
+ position: absolute;
32
+ top: -0.12rem;
33
+ right: -0.12rem;
34
+ display: inline-block;
35
+ padding: 0.02rem 0.04rem;
36
+ min-width: 0.34rem;
37
+ text-align: center;
38
+ background-color: #CE1126;
39
+ border: 0.02rem solid #fff;
40
+ border-radius: 0.16rem;
41
+ font-family: 'Montserrat';
42
+ font-style: normal;
43
+ font-weight: 600;
44
+ font-size: 0.16rem;
45
+ color: #FFFFFF;
46
+ }
47
+ .m-search-bar .logo img {
48
+ width: auto;
49
+ }
@@ -12,11 +12,11 @@
12
12
  margin-bottom: 40px;
13
13
  }
14
14
 
15
- .ant-modal-body {
15
+ .cylon-modal-body {
16
16
  overflow: unset;
17
17
  }
18
18
 
19
- .ant-picker-ok button {
19
+ .cylon-picker-ok button {
20
20
  color: #fff;
21
21
  }
22
22
 
@@ -13,6 +13,8 @@ var _mobx = require("../mobx");
13
13
 
14
14
  var _constants = require("../constants");
15
15
 
16
+ var _commonUtil = require("../utils/commonUtil");
17
+
16
18
  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); }
17
19
 
18
20
  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; }
@@ -254,14 +256,14 @@ function compositeDecorator(WrappedComponent) {
254
256
  onClick: this.onCompositeCompClick,
255
257
  onMouseEnter: this.onMouseEnter,
256
258
  onMouseLeave: this.onMouseLeave,
257
- style: this.getCompositeStyle()
259
+ style: (0, _commonUtil.pxToRem)(this.getCompositeStyle())
258
260
  }, /*#__PURE__*/_react["default"].createElement("div", {
259
261
  className: "composite_mask",
260
262
  style: this.getMaskStyle()
261
263
  }, clickedFloor !== nodeData.id && /*#__PURE__*/_react["default"].createElement("span", {
262
264
  style: floorNameStyle
263
265
  }, (_a = _constants.compInfoMap[nodeData.type]) === null || _a === void 0 ? void 0 : _a.name)), /*#__PURE__*/_react["default"].createElement("div", {
264
- style: this.getWrapStyle()
266
+ style: (0, _commonUtil.pxToRem)(this.getWrapStyle())
265
267
  }, /*#__PURE__*/_react["default"].createElement(WrappedComponent, this.props)));
266
268
  };
267
269
 
@@ -17,6 +17,8 @@ var _coreUtil = require("../../../utils/coreUtil");
17
17
 
18
18
  var _decorator = require("../../../decorator");
19
19
 
20
+ var _commonUtil = require("../../../utils/commonUtil");
21
+
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
23
 
22
24
  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); }
@@ -149,7 +151,7 @@ function (_super) {
149
151
  hover: false
150
152
  });
151
153
  },
152
- style: __assign({}, style)
154
+ style: (0, _commonUtil.pxToRem)(__assign({}, style))
153
155
  }, /*#__PURE__*/_react["default"].createElement("div", {
154
156
  className: (0, _classnames["default"])('btnContent', {
155
157
  horizontal: iconLayout === 'left' || iconLayout === 'right'
@@ -17,6 +17,8 @@ var _pcDefImg = _interopRequireDefault(require("./image/pcDefImg.png"));
17
17
 
18
18
  var _coreUtil = require("../../../utils/coreUtil");
19
19
 
20
+ var _commonUtil = require("../../../utils/commonUtil");
21
+
20
22
  var _decorator = require("../../../decorator");
21
23
 
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -201,7 +203,7 @@ function (_super) {
201
203
  onMouseEnter: this.mouseEnterImg,
202
204
  onMouseLeave: this.mouseLeaveImg,
203
205
  src: srcImg,
204
- style: this.getStyle()
206
+ style: (0, _commonUtil.pxToRem)(this.getStyle())
205
207
  }), areas && areas.length > 0 && areas.map(function (v, i) {
206
208
  var aStyle = {
207
209
  position: 'absolute',
@@ -216,7 +218,7 @@ function (_super) {
216
218
  e.stopPropagation();
217
219
  (0, _coreUtil.clickUrl)(v.inputVal);
218
220
  },
219
- style: aStyle
221
+ style: (0, _commonUtil.pxToRem)(aStyle)
220
222
  });
221
223
  })));
222
224
  };
@@ -534,7 +534,7 @@ function (_super) {
534
534
  onKeyDown: function onKeyDown(e) {
535
535
  e.stopPropagation();
536
536
  },
537
- style: __assign({}, style),
537
+ style: (0, _commonUtil.pxToRem)(__assign({}, style)),
538
538
  suppressContentEditableWarning: true
539
539
  });
540
540
  };
@@ -3,7 +3,7 @@
3
3
  background-color: #F5F6F7;
4
4
 
5
5
  // .hoverSelect {
6
- // .ant-select-selector {
6
+ // .cylon-select-selector {
7
7
  // border: 1px solid #D2D9E5;
8
8
  // border-radius: 8px;
9
9
  // padding: 0 16px;
@@ -16,6 +16,7 @@ exports.getColorRgba = void 0;
16
16
  exports.getPageDataMap = getPageDataMap;
17
17
  exports.nextTick = exports.navigateTo = exports.importAsync = exports.getUrlParams = void 0;
18
18
  exports.pushGA = pushGA;
19
+ exports.pxToRem = void 0;
19
20
  exports.shareFacebook = shareFacebook;
20
21
  exports.shareLinkedin = shareLinkedin;
21
22
  exports.shareTwitter = shareTwitter;
@@ -172,6 +173,8 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
172
173
  };
173
174
  }
174
175
  };
176
+ /* eslint-disable no-restricted-syntax */
177
+
175
178
 
176
179
  /**
177
180
  * 安全获取数据
@@ -708,5 +711,46 @@ var asyncNextTick = function asyncNextTick(asyncFunc, interval, count) {
708
711
  });
709
712
  });
710
713
  };
714
+ /** px to rem */
715
+
716
+
717
+ exports.asyncNextTick = asyncNextTick;
718
+
719
+ var pxToRem = function pxToRem(styleObj) {
720
+ if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
721
+ return styleObj;
722
+ }
723
+
724
+ var remObj = {};
725
+
726
+ var convertToRem = function convertToRem(value) {
727
+ var pxValue = parseFloat(value);
728
+ var remValue = pxValue / 50; // 假设1rem = 50px
729
+
730
+ return remValue + "rem";
731
+ };
732
+
733
+ for (var key in styleObj) {
734
+ if (styleObj.hasOwnProperty(key)) {
735
+ var value = styleObj[key];
736
+
737
+ if (typeof value === 'string' && value.endsWith('px')) {
738
+ remObj[key] = key === 'opacity' || key === 'lineHeight' ? value : convertToRem(value);
739
+ } else if (typeof value === 'number') {
740
+ remObj[key] = convertToRem(value);
741
+ } else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
742
+ var paddingValues = value.split(' ');
743
+ var remPaddingValues = paddingValues.map(function (paddingValue) {
744
+ return paddingValue.endsWith('px') ? convertToRem(paddingValue) : paddingValue;
745
+ });
746
+ remObj[key] = remPaddingValues.join(' ');
747
+ } else {
748
+ remObj[key] = value;
749
+ }
750
+ }
751
+ }
752
+
753
+ return remObj;
754
+ };
711
755
 
712
- exports.asyncNextTick = asyncNextTick;
756
+ exports.pxToRem = pxToRem;
@@ -30,7 +30,7 @@ function CommonSelPicCard(_a) {
30
30
  };
31
31
 
32
32
  return /*#__PURE__*/_react["default"].createElement("div", {
33
- className: "ant-upload-list ant-upload-list-picture-card"
33
+ className: "cylon-upload-list cylon-upload-list-picture-card"
34
34
  }, /*#__PURE__*/_react["default"].createElement("div", {
35
35
  className: "upload-list-item-container"
36
36
  }, /*#__PURE__*/_react["default"].createElement("span", null, content.contentType === 'Catg' ? /*#__PURE__*/_react["default"].createElement("div", {
@@ -39,7 +39,7 @@ function CommonSelPicCard(_a) {
39
39
  }, /*#__PURE__*/_react["default"].createElement("div", {
40
40
  className: "item-body"
41
41
  }, /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement("div", {
42
- className: "ant-upload-list-item-thumbnail",
42
+ className: "cylon-upload-list-item-thumbnail",
43
43
  href: ""
44
44
  }))), /*#__PURE__*/_react["default"].createElement("div", {
45
45
  className: "item-footer",
@@ -49,15 +49,15 @@ function CommonSelPicCard(_a) {
49
49
  }, /*#__PURE__*/_react["default"].createElement("div", {
50
50
  className: "item-body"
51
51
  }, /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement("div", {
52
- className: "ant-upload-list-item-thumbnail",
52
+ className: "cylon-upload-list-item-thumbnail",
53
53
  href: ""
54
54
  }, /*#__PURE__*/_react["default"].createElement("img", {
55
55
  alt: "",
56
+ src: type === _const.contentCatgTypeMap.PICTURE ? content.url : content.imgUrl,
56
57
  style: {
57
58
  width: '100%',
58
59
  height: '100%'
59
- },
60
- src: type === _const.contentCatgTypeMap.PICTURE ? content.url : content.imgUrl
60
+ }
61
61
  }))), /*#__PURE__*/_react["default"].createElement("span", {
62
62
  style: {
63
63
  position: 'absolute',
@@ -65,8 +65,8 @@ function CommonSelPicCard(_a) {
65
65
  right: 6
66
66
  }
67
67
  }, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
68
- className: "checkbox",
69
68
  checked: checked,
69
+ className: "checkbox",
70
70
  onChange: function onChange(e) {
71
71
  return _onChange(e, content);
72
72
  }
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
 
14
- .ant-upload-list-item-thumbnail img {
14
+ .cylon-upload-list-item-thumbnail img {
15
15
  border-radius: 4px;
16
16
  }
17
17
 
@@ -35,6 +35,6 @@
35
35
  cursor: pointer;
36
36
  }
37
37
 
38
- .checkbox :global .ant-checkbox-input {
38
+ .checkbox :global .cylon-checkbox-input {
39
39
  position: absolute;
40
40
  }
@@ -3,7 +3,7 @@
3
3
  margin-bottom: 15px;
4
4
  }
5
5
 
6
- .ant-tree-title {
6
+ .cylon-tree-title {
7
7
  max-width: 200px;
8
8
  overflow: hidden;
9
9
  text-overflow: ellipsis;
@@ -15,12 +15,12 @@
15
15
  }
16
16
 
17
17
  .catg_img {
18
- .ant-spin-container {
18
+ .cylon-spin-container {
19
19
  display: flex;
20
20
  flex-wrap: wrap;
21
21
  }
22
22
 
23
- .ant-upload-list-item-thumbnail {
23
+ .cylon-upload-list-item-thumbnail {
24
24
  img {
25
25
  object-fit: contain;
26
26
  }
@@ -166,7 +166,8 @@ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
166
166
  var fileStatus = {
167
167
  0: '文件不存在(没有上传过)',
168
168
  1: '文件已存在(曾经上传过)',
169
- 2: '文件不完整(曾经上传中断过,可继续上传)'
169
+ 2: '文件不完整(曾经上传中断过,可继续上传)',
170
+ 3: '文件已恢复(曾经删除,已恢复)'
170
171
  };
171
172
  /**
172
173
  * 发请求,校验文件是否上传过,分三种情况:见:fileStatus
@@ -372,9 +373,7 @@ var fileUpload = function fileUpload(_a, cb) {
372
373
 
373
374
  case 4:
374
375
  error_1 = _b.sent();
375
-
376
- _antd.message.warning(fileStatus[res.uploadState]);
377
-
376
+ console.log(error_1);
378
377
  return [3
379
378
  /*break*/
380
379
  , 5];
@@ -408,12 +407,20 @@ var uploadFileCheck = function uploadFileCheck(_a, chunks, fileName, cb) {
408
407
  })];
409
408
 
410
409
  case 1:
411
- res = _b.sent();
412
- console.log('res: ', res); // 等于1曾经上传过,不需要再上传了
410
+ res = _b.sent(); // 等于1曾经上传过,不需要再上传了
413
411
 
414
412
  if (res.uploadState == 1) {
415
413
  _antd.message.warning(fileStatus[res.uploadState]);
416
414
 
415
+ return [2
416
+ /*return*/
417
+ ]; // 拦截停下
418
+ } // 曾经删除过,已恢复 不需要上传
419
+
420
+
421
+ if (res.uploadState == 3) {
422
+ _antd.message.warning(fileStatus[res.uploadState]);
423
+
417
424
  return [2
418
425
  /*return*/
419
426
  ]; // 拦截停下
@@ -452,8 +459,7 @@ var uploadFileCheck = function uploadFileCheck(_a, chunks, fileName, cb) {
452
459
  formData: formData
453
460
  };
454
461
  });
455
- } // 说明曾经上传过,需要过滤一下,曾经上传过的就不用再上传了
456
- else {
462
+ } else {
457
463
  formDataList = chunks.filter(function (_, index) {
458
464
  return !doneFileList.includes(index);
459
465
  }).map(function (item, index) {
@@ -523,7 +529,7 @@ var chunksUpload = function chunksUpload(_a, cb) {
523
529
 
524
530
  return [2
525
531
  /*return*/
526
- ];
532
+ , true];
527
533
  }
528
534
  });
529
535
  });
@@ -7,7 +7,7 @@
7
7
  padding: 0 7px;
8
8
  position: relative;
9
9
 
10
- .ant-input-number-focused {
10
+ .cylon-input-number-focused {
11
11
  box-shadow: none;
12
12
  }
13
13
 
@@ -104,7 +104,7 @@
104
104
  }
105
105
  }
106
106
 
107
- .ant-form-item {
107
+ .cylon-form-item {
108
108
  margin-bottom: 4px;
109
109
  }
110
110
 
@@ -117,7 +117,7 @@
117
117
  }
118
118
  }
119
119
 
120
- [magic_design] .ant-modal-root {
120
+ [magic_design] .cylon-modal-root {
121
121
  display: flex;
122
122
  justify-content: center;
123
123
  position: absolute;
@@ -3,7 +3,7 @@
3
3
  right: unset !important;
4
4
  left: unset !important;
5
5
 
6
- .ant-modal .ant-modal-content .ant-modal-body {
6
+ .cylon-modal .cylon-modal-content .cylon-modal-body {
7
7
  padding-bottom: 60px !important;
8
8
  padding-top: 0 !important;
9
9
  }
@@ -4,7 +4,7 @@
4
4
  left: unset !important;
5
5
 
6
6
  .proModalWrap {
7
- thead .ant-checkbox {
7
+ thead .cylon-checkbox {
8
8
  visibility: hidden;
9
9
  }
10
10
 
@@ -136,7 +136,7 @@
136
136
  }
137
137
  }
138
138
 
139
- [magic_design] .ant-modal-root {
139
+ [magic_design] .cylon-modal-root {
140
140
  display: flex;
141
141
  justify-content: center;
142
142
  position: absolute;