iglooform 2.5.37 → 2.5.39
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/table/index.js +1 -0
- package/es/upload-photo/index.js +3 -3
- package/lib/table/index.js +1 -0
- package/lib/upload-photo/index.js +3 -3
- package/package.json +1 -1
package/es/table/index.js
CHANGED
package/es/upload-photo/index.js
CHANGED
|
@@ -514,7 +514,7 @@ var UploadPhoto = function UploadPhoto(props) {
|
|
|
514
514
|
case 6:
|
|
515
515
|
// 删除之后找一下是否存在上传过程中错误的文件
|
|
516
516
|
hasError = arr.some(function (f) {
|
|
517
|
-
return f.status === 'failed';
|
|
517
|
+
return (f === null || f === void 0 ? void 0 : f.status) === 'failed';
|
|
518
518
|
});
|
|
519
519
|
|
|
520
520
|
if (!hasError) {
|
|
@@ -523,7 +523,7 @@ var UploadPhoto = function UploadPhoto(props) {
|
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
rst = arr.map(function (f) {
|
|
526
|
-
if (f.status === 'failed') {
|
|
526
|
+
if ((f === null || f === void 0 ? void 0 : f.status) === 'failed') {
|
|
527
527
|
return {
|
|
528
528
|
errorMsg: f.errorMsg
|
|
529
529
|
};
|
|
@@ -810,7 +810,7 @@ var UploadPhoto = function UploadPhoto(props) {
|
|
|
810
810
|
children: [_jsxs("label", {
|
|
811
811
|
htmlFor: uploadId,
|
|
812
812
|
className: classnames((_classnames4 = {}, _defineProperty(_classnames4, "".concat(prefix, "-content-button"), true), _defineProperty(_classnames4, 'dont-show-error-status', Array.isArray(value) && value.some(function (file) {
|
|
813
|
-
return typeof file !== 'string' && file.status === 'failed';
|
|
813
|
+
return typeof file !== 'string' && (file === null || file === void 0 ? void 0 : file.status) === 'failed';
|
|
814
814
|
})), _classnames4)),
|
|
815
815
|
children: [_jsx(UploadOutlined, {
|
|
816
816
|
style: {
|
package/lib/table/index.js
CHANGED
|
@@ -122,6 +122,7 @@ var getDropDownMenu = function getDropDownMenu(allButtons, rowData, actionButton
|
|
|
122
122
|
return (0, _jsxRuntime.jsx)(_button.default, {
|
|
123
123
|
type: "text",
|
|
124
124
|
onClick: function onClick(e) {
|
|
125
|
+
e.stopPropagation();
|
|
125
126
|
item.onClick(rowData);
|
|
126
127
|
setActionListVisible({
|
|
127
128
|
type: actionIndex,
|
|
@@ -547,7 +547,7 @@ var UploadPhoto = function UploadPhoto(props) {
|
|
|
547
547
|
case 6:
|
|
548
548
|
// 删除之后找一下是否存在上传过程中错误的文件
|
|
549
549
|
hasError = arr.some(function (f) {
|
|
550
|
-
return f.status === 'failed';
|
|
550
|
+
return (f === null || f === void 0 ? void 0 : f.status) === 'failed';
|
|
551
551
|
});
|
|
552
552
|
|
|
553
553
|
if (!hasError) {
|
|
@@ -556,7 +556,7 @@ var UploadPhoto = function UploadPhoto(props) {
|
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
rst = arr.map(function (f) {
|
|
559
|
-
if (f.status === 'failed') {
|
|
559
|
+
if ((f === null || f === void 0 ? void 0 : f.status) === 'failed') {
|
|
560
560
|
return {
|
|
561
561
|
errorMsg: f.errorMsg
|
|
562
562
|
};
|
|
@@ -844,7 +844,7 @@ var UploadPhoto = function UploadPhoto(props) {
|
|
|
844
844
|
children: [(0, _jsxRuntime.jsxs)("label", {
|
|
845
845
|
htmlFor: uploadId,
|
|
846
846
|
className: (0, _classnames6.default)((_classnames4 = {}, _defineProperty(_classnames4, "".concat(prefix, "-content-button"), true), _defineProperty(_classnames4, 'dont-show-error-status', Array.isArray(value) && value.some(function (file) {
|
|
847
|
-
return typeof file !== 'string' && file.status === 'failed';
|
|
847
|
+
return typeof file !== 'string' && (file === null || file === void 0 ? void 0 : file.status) === 'failed';
|
|
848
848
|
})), _classnames4)),
|
|
849
849
|
children: [(0, _jsxRuntime.jsx)(_iglooicon.UploadOutlined, {
|
|
850
850
|
style: {
|