@fonixtree/magic-design 0.1.14 → 0.1.15
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/ImageModal/CommonSelPicCard/index.js +6 -6
- package/es/common/ImageModal/CommonSelPicCard/index.less +2 -2
- package/es/common/ImageModal/index.less +3 -3
- package/es/common/ImageModal/utils.js +12 -4
- package/es/common/InputNumber/index.less +1 -1
- package/es/common/LinkModal/FilteredProductModal/index.less +2 -2
- package/es/common/LinkModal/index.less +1 -1
- package/es/common/ProductModal/index.less +2 -2
- package/es/common/Slider/index.less +2 -2
- package/es/common/SwitchCollapse/index.less +3 -3
- package/es/composite-comp/bol/components/Banner/mobile/index.less +1 -1
- package/es/composite-comp/bol/components/Banner/pc/index.less +1 -1
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.less +1 -1
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -2
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +1 -1
- package/es/composite-comp/dito/components/Recommend/pc/index.less +1 -1
- package/es/core/Designer/AppointmentModal/index.less +2 -2
- package/es/meta-comp/config-panels/ImageConfig/index.less +1 -1
- package/lib/common/ImageModal/CommonSelPicCard/index.js +6 -6
- package/lib/common/ImageModal/CommonSelPicCard/index.less +2 -2
- package/lib/common/ImageModal/index.less +3 -3
- package/lib/common/ImageModal/utils.js +12 -4
- package/lib/common/InputNumber/index.less +1 -1
- package/lib/common/LinkModal/FilteredProductModal/index.less +2 -2
- package/lib/common/LinkModal/index.less +1 -1
- package/lib/common/ProductModal/index.less +2 -2
- package/lib/common/Slider/index.less +2 -2
- package/lib/common/SwitchCollapse/index.less +3 -3
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +1 -1
- package/lib/composite-comp/bol/components/Banner/pc/index.less +1 -1
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.less +1 -1
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -2
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +1 -1
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +1 -1
- package/lib/core/Designer/AppointmentModal/index.less +2 -2
- package/lib/meta-comp/config-panels/ImageConfig/index.less +1 -1
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ function CommonSelPicCard(_a) {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
-
className: "
|
|
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: "
|
|
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: "
|
|
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
|
-
.
|
|
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 .
|
|
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
|
-
.
|
|
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
|
-
.
|
|
18
|
+
.cylon-spin-container {
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-wrap: wrap;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.
|
|
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
|
|
@@ -408,12 +409,19 @@ var uploadFileCheck = function uploadFileCheck(_a, chunks, fileName, cb) {
|
|
|
408
409
|
})];
|
|
409
410
|
|
|
410
411
|
case 1:
|
|
411
|
-
res = _b.sent();
|
|
412
|
-
console.log('res: ', res); // 等于1曾经上传过,不需要再上传了
|
|
412
|
+
res = _b.sent(); // 等于1曾经上传过,不需要再上传了
|
|
413
413
|
|
|
414
414
|
if (res.uploadState == 1) {
|
|
415
415
|
_antd.message.warning(fileStatus[res.uploadState]);
|
|
416
416
|
|
|
417
|
+
return [2
|
|
418
|
+
/*return*/
|
|
419
|
+
]; // 拦截停下
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
if (res.uploadState == 3) {
|
|
423
|
+
_antd.message.warning(fileStatus[res.uploadState]);
|
|
424
|
+
|
|
417
425
|
return [2
|
|
418
426
|
/*return*/
|
|
419
427
|
]; // 拦截停下
|
|
@@ -523,7 +531,7 @@ var chunksUpload = function chunksUpload(_a, cb) {
|
|
|
523
531
|
|
|
524
532
|
return [2
|
|
525
533
|
/*return*/
|
|
526
|
-
];
|
|
534
|
+
, true];
|
|
527
535
|
}
|
|
528
536
|
});
|
|
529
537
|
});
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
.
|
|
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] .
|
|
120
|
+
[magic_design] .cylon-modal-root {
|
|
121
121
|
display: flex;
|
|
122
122
|
justify-content: center;
|
|
123
123
|
position: absolute;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
left: unset !important;
|
|
5
5
|
|
|
6
6
|
.proModalWrap {
|
|
7
|
-
thead .
|
|
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] .
|
|
139
|
+
[magic_design] .cylon-modal-root {
|
|
140
140
|
display: flex;
|
|
141
141
|
justify-content: center;
|
|
142
142
|
position: absolute;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.switch_collapse_wrap {
|
|
2
|
-
.
|
|
3
|
-
.
|
|
2
|
+
.cylon-collapse {
|
|
3
|
+
.cylon-collapse-item {
|
|
4
4
|
padding-bottom: 1px !important;
|
|
5
5
|
// &:first-child {
|
|
6
|
-
// .
|
|
6
|
+
// .cylon-collapse-header{
|
|
7
7
|
// padding-top: 0 !important;
|
|
8
8
|
// }
|
|
9
9
|
// }
|
|
@@ -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' ?
|
|
216
|
+
var value = encodeURIComponent(data[i]) === 'null' ? '' : encodeURIComponent(data[i]);
|
|
217
217
|
tempArr.push(keyData + "=" + value);
|
|
218
218
|
}
|
|
219
219
|
|
|
@@ -30,7 +30,7 @@ function CommonSelPicCard(_a) {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
-
className: "
|
|
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: "
|
|
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: "
|
|
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
|
-
.
|
|
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 .
|
|
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
|
-
.
|
|
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
|
-
.
|
|
18
|
+
.cylon-spin-container {
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-wrap: wrap;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.
|
|
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
|
|
@@ -408,12 +409,19 @@ var uploadFileCheck = function uploadFileCheck(_a, chunks, fileName, cb) {
|
|
|
408
409
|
})];
|
|
409
410
|
|
|
410
411
|
case 1:
|
|
411
|
-
res = _b.sent();
|
|
412
|
-
console.log('res: ', res); // 等于1曾经上传过,不需要再上传了
|
|
412
|
+
res = _b.sent(); // 等于1曾经上传过,不需要再上传了
|
|
413
413
|
|
|
414
414
|
if (res.uploadState == 1) {
|
|
415
415
|
_antd.message.warning(fileStatus[res.uploadState]);
|
|
416
416
|
|
|
417
|
+
return [2
|
|
418
|
+
/*return*/
|
|
419
|
+
]; // 拦截停下
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
if (res.uploadState == 3) {
|
|
423
|
+
_antd.message.warning(fileStatus[res.uploadState]);
|
|
424
|
+
|
|
417
425
|
return [2
|
|
418
426
|
/*return*/
|
|
419
427
|
]; // 拦截停下
|
|
@@ -523,7 +531,7 @@ var chunksUpload = function chunksUpload(_a, cb) {
|
|
|
523
531
|
|
|
524
532
|
return [2
|
|
525
533
|
/*return*/
|
|
526
|
-
];
|
|
534
|
+
, true];
|
|
527
535
|
}
|
|
528
536
|
});
|
|
529
537
|
});
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
.
|
|
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] .
|
|
120
|
+
[magic_design] .cylon-modal-root {
|
|
121
121
|
display: flex;
|
|
122
122
|
justify-content: center;
|
|
123
123
|
position: absolute;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
left: unset !important;
|
|
5
5
|
|
|
6
6
|
.proModalWrap {
|
|
7
|
-
thead .
|
|
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] .
|
|
139
|
+
[magic_design] .cylon-modal-root {
|
|
140
140
|
display: flex;
|
|
141
141
|
justify-content: center;
|
|
142
142
|
position: absolute;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.switch_collapse_wrap {
|
|
2
|
-
.
|
|
3
|
-
.
|
|
2
|
+
.cylon-collapse {
|
|
3
|
+
.cylon-collapse-item {
|
|
4
4
|
padding-bottom: 1px !important;
|
|
5
5
|
// &:first-child {
|
|
6
|
-
// .
|
|
6
|
+
// .cylon-collapse-header{
|
|
7
7
|
// padding-top: 0 !important;
|
|
8
8
|
// }
|
|
9
9
|
// }
|
|
@@ -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' ?
|
|
216
|
+
var value = encodeURIComponent(data[i]) === 'null' ? '' : encodeURIComponent(data[i]);
|
|
217
217
|
tempArr.push(keyData + "=" + value);
|
|
218
218
|
}
|
|
219
219
|
|