wargerm 0.5.8 → 0.5.9
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/dist/index.esm.js
CHANGED
@@ -585,7 +585,7 @@ var Index = WInput;
|
|
585
585
|
Index.TextArea = _Input.TextArea;
|
586
586
|
WInput.defaultProps = {};
|
587
587
|
|
588
|
-
var _excluded$1 = ["value", "onChange", "beforeUpload", "uploadButton", "maxCount", "
|
588
|
+
var _excluded$1 = ["value", "onChange", "beforeUpload", "uploadButton", "maxCount", "fetchMethod", "getFileList"];
|
589
589
|
|
590
590
|
function Index$1(_ref, ref) {
|
591
591
|
var value = _ref.value,
|
@@ -593,7 +593,7 @@ function Index$1(_ref, ref) {
|
|
593
593
|
beforeUpload = _ref.beforeUpload,
|
594
594
|
uploadButton = _ref.uploadButton,
|
595
595
|
maxCount = _ref.maxCount,
|
596
|
-
|
596
|
+
fetchMethod = _ref.fetchMethod,
|
597
597
|
getFileList = _ref.getFileList,
|
598
598
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
599
599
|
|
@@ -683,7 +683,7 @@ function Index$1(_ref, ref) {
|
|
683
683
|
}
|
684
684
|
|
685
685
|
_context.next = 4;
|
686
|
-
return
|
686
|
+
return fetchMethod ? fetchMethod(file.originFileObj) : getBase64(file.originFileObj);
|
687
687
|
|
688
688
|
case 4:
|
689
689
|
url = _context.sent;
|
@@ -829,7 +829,7 @@ Index$4.Group = _Checkbox.Group;
|
|
829
829
|
/*
|
830
830
|
* @Author: lijin
|
831
831
|
* @Date: 2021-10-27 22:18:49
|
832
|
-
* @LastEditTime: 2022-
|
832
|
+
* @LastEditTime: 2022-08-09 09:35:23
|
833
833
|
* @LastEditors: lijin
|
834
834
|
* @Description:
|
835
835
|
* @FilePath: \wargerm-components\src\utils\index.ts
|
package/dist/index.js
CHANGED
@@ -646,7 +646,7 @@ var Index = WInput;
|
|
646
646
|
Index.TextArea = _Input__default['default'].TextArea;
|
647
647
|
WInput.defaultProps = {};
|
648
648
|
|
649
|
-
var _excluded$1 = ["value", "onChange", "beforeUpload", "uploadButton", "maxCount", "
|
649
|
+
var _excluded$1 = ["value", "onChange", "beforeUpload", "uploadButton", "maxCount", "fetchMethod", "getFileList"];
|
650
650
|
|
651
651
|
function Index$1(_ref, ref) {
|
652
652
|
var value = _ref.value,
|
@@ -654,7 +654,7 @@ function Index$1(_ref, ref) {
|
|
654
654
|
beforeUpload = _ref.beforeUpload,
|
655
655
|
uploadButton = _ref.uploadButton,
|
656
656
|
maxCount = _ref.maxCount,
|
657
|
-
|
657
|
+
fetchMethod = _ref.fetchMethod,
|
658
658
|
getFileList = _ref.getFileList,
|
659
659
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
660
660
|
|
@@ -744,7 +744,7 @@ function Index$1(_ref, ref) {
|
|
744
744
|
}
|
745
745
|
|
746
746
|
_context.next = 4;
|
747
|
-
return
|
747
|
+
return fetchMethod ? fetchMethod(file.originFileObj) : getBase64(file.originFileObj);
|
748
748
|
|
749
749
|
case 4:
|
750
750
|
url = _context.sent;
|
@@ -890,7 +890,7 @@ Index$4.Group = _Checkbox__default['default'].Group;
|
|
890
890
|
/*
|
891
891
|
* @Author: lijin
|
892
892
|
* @Date: 2021-10-27 22:18:49
|
893
|
-
* @LastEditTime: 2022-
|
893
|
+
* @LastEditTime: 2022-08-09 09:35:23
|
894
894
|
* @LastEditors: lijin
|
895
895
|
* @Description:
|
896
896
|
* @FilePath: \wargerm-components\src\utils\index.ts
|
package/dist/utils/index.d.ts
CHANGED
@@ -14,3 +14,4 @@ export declare function filterObj(obj: Record<string, any>): Record<string, any>
|
|
14
14
|
export declare function getArrayLayer(arr: any, attr: string | number, index?: number): number;
|
15
15
|
export declare const calcWidth: (width: number) => number;
|
16
16
|
export declare const calcHeight: (height: number) => number;
|
17
|
+
export declare function deepCopy(target: any): any;
|