wargerm 0.5.11 → 0.5.14
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 +54 -18
- package/dist/index.js +54 -18
- package/package.json +88 -88
package/dist/index.esm.js
CHANGED
@@ -584,11 +584,12 @@ var Index = WInput;
|
|
584
584
|
Index.TextArea = _Input.TextArea;
|
585
585
|
WInput.defaultProps = {};
|
586
586
|
|
587
|
-
var _excluded$1 = ["value", "onChange", "beforeUpload", "uploadButton", "maxCount", "splitStr", "fetchMethod", "getFileList"];
|
587
|
+
var _excluded$1 = ["value", "onChange", "onRemove", "beforeUpload", "uploadButton", "maxCount", "splitStr", "fetchMethod", "getFileList"];
|
588
588
|
|
589
589
|
function Index$1(_ref, ref) {
|
590
590
|
var value = _ref.value,
|
591
591
|
onChange = _ref.onChange,
|
592
|
+
onRemove = _ref.onRemove,
|
592
593
|
beforeUpload = _ref.beforeUpload,
|
593
594
|
uploadButton = _ref.uploadButton,
|
594
595
|
maxCount = _ref.maxCount,
|
@@ -684,7 +685,7 @@ function Index$1(_ref, ref) {
|
|
684
685
|
}
|
685
686
|
|
686
687
|
_context.next = 4;
|
687
|
-
return fetchMethod ? fetchMethod(file.originFileObj) : getBase64(file.originFileObj);
|
688
|
+
return fetchMethod ? fetchMethod(file.originFileObj) : file.originFileObj ? getBase64(file.originFileObj) : Promise.resolve(file.url);
|
688
689
|
|
689
690
|
case 4:
|
690
691
|
url = _context.sent;
|
@@ -713,6 +714,15 @@ function Index$1(_ref, ref) {
|
|
713
714
|
};
|
714
715
|
}();
|
715
716
|
|
717
|
+
var handleronRemove = function handleronRemove(file) {
|
718
|
+
var index = fileList.indexOf(file);
|
719
|
+
onRemove && onRemove(file, function () {
|
720
|
+
var newFileList = fileList.slice();
|
721
|
+
newFileList.splice(index, 1);
|
722
|
+
setFileList(newFileList);
|
723
|
+
});
|
724
|
+
};
|
725
|
+
|
716
726
|
var handlePreview = /*#__PURE__*/function () {
|
717
727
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(file) {
|
718
728
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
@@ -763,7 +773,8 @@ function Index$1(_ref, ref) {
|
|
763
773
|
listType: "picture-card",
|
764
774
|
beforeUpload: beforeUploadIn,
|
765
775
|
onPreview: handlePreview,
|
766
|
-
onChange: handleChange
|
776
|
+
onChange: handleChange,
|
777
|
+
onRemove: handleronRemove
|
767
778
|
}, props), fileList.length >= maxCount ? null : uploadButton ? uploadButton : uploadButtonDom), /*#__PURE__*/React.createElement(_Modal, {
|
768
779
|
visible: previewVisible,
|
769
780
|
title: previewTitle,
|
@@ -830,7 +841,7 @@ Index$4.Group = _Checkbox.Group;
|
|
830
841
|
/*
|
831
842
|
* @Author: lijin
|
832
843
|
* @Date: 2021-10-27 22:18:49
|
833
|
-
* @LastEditTime: 2022-08-
|
844
|
+
* @LastEditTime: 2022-08-11 10:57:14
|
834
845
|
* @LastEditors: lijin
|
835
846
|
* @Description:
|
836
847
|
* @FilePath: \wargerm-components\src\utils\index.ts
|
@@ -904,10 +915,26 @@ function deepCopy(target) {
|
|
904
915
|
var result = Array.isArray(target) ? [] : {}; // eslint-disable-next-line no-restricted-syntax
|
905
916
|
|
906
917
|
for (var key in target) {
|
907
|
-
|
918
|
+
if (_typeof(target[key]) === 'object') {
|
919
|
+
if (Object.prototype.toString.call(target).slice(8, -1) == 'Object') {
|
920
|
+
var _target$key, _target$key2;
|
921
|
+
|
922
|
+
if (((_target$key = target[key]) === null || _target$key === void 0 ? void 0 : _target$key['$$typeof']) || ((_target$key2 = target[key]) === null || _target$key2 === void 0 ? void 0 : _target$key2['_isAMomentObject'])) {
|
923
|
+
result[key] = target[key];
|
924
|
+
} else {
|
925
|
+
result[key] = deepCopy(target[key]);
|
926
|
+
}
|
927
|
+
} else if (Object.prototype.toString.call(target).slice(8, -1) == 'Array') {
|
928
|
+
var _target$key3, _target$key4;
|
908
929
|
|
909
|
-
|
910
|
-
|
930
|
+
if (((_target$key3 = target[key]) === null || _target$key3 === void 0 ? void 0 : _target$key3['$$typeof']) || ((_target$key4 = target[key]) === null || _target$key4 === void 0 ? void 0 : _target$key4['_isAMomentObject'])) {
|
931
|
+
result[key] = target[key];
|
932
|
+
} else {
|
933
|
+
result[key] = deepCopy(target[key]);
|
934
|
+
}
|
935
|
+
} else {
|
936
|
+
result[key] = target[key];
|
937
|
+
}
|
911
938
|
} else {
|
912
939
|
result[key] = target[key];
|
913
940
|
}
|
@@ -962,7 +989,8 @@ function FrameBox(_ref) {
|
|
962
989
|
}
|
963
990
|
|
964
991
|
var _excluded$3 = ["request", "valueEnum", "onLoad", "children", "params"],
|
965
|
-
_excluded2 = ["
|
992
|
+
_excluded2 = ["value", "label"],
|
993
|
+
_excluded3 = ["children"];
|
966
994
|
|
967
995
|
var WSelect = function WSelect(props) {
|
968
996
|
var request = props.request,
|
@@ -1017,11 +1045,15 @@ var WSelect = function WSelect(props) {
|
|
1017
1045
|
case 6:
|
1018
1046
|
setResList(res);
|
1019
1047
|
onLoad && onLoad(res);
|
1020
|
-
node = res === null || res === void 0 ? void 0 : res.map(function (
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1048
|
+
node = res === null || res === void 0 ? void 0 : res.map(function (_ref2) {
|
1049
|
+
var value = _ref2.value,
|
1050
|
+
label = _ref2.label,
|
1051
|
+
extraProps = _objectWithoutProperties(_ref2, _excluded2);
|
1052
|
+
|
1053
|
+
return /*#__PURE__*/React.createElement(_Select.Option, _objectSpread2({
|
1054
|
+
key: value,
|
1055
|
+
value: value
|
1056
|
+
}, extraProps), label) || /*#__PURE__*/React.createElement(React.Fragment, null);
|
1025
1057
|
});
|
1026
1058
|
setChildrenNode(node);
|
1027
1059
|
|
@@ -1077,7 +1109,7 @@ WSelect.defaultProps = {};
|
|
1077
1109
|
|
1078
1110
|
var Option = function Option(props) {
|
1079
1111
|
var children = props.children,
|
1080
|
-
extraProps = _objectWithoutProperties(props,
|
1112
|
+
extraProps = _objectWithoutProperties(props, _excluded3);
|
1081
1113
|
|
1082
1114
|
return /*#__PURE__*/React.createElement(_Select.Option, _objectSpread2({}, extraProps), children);
|
1083
1115
|
};
|
@@ -10851,7 +10883,7 @@ function DragBox(_ref) {
|
|
10851
10883
|
}, children)) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
10852
10884
|
}
|
10853
10885
|
|
10854
|
-
var _excluded$h = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel"];
|
10886
|
+
var _excluded$h = ["columns", "extraColumns", "search", "visible", "setVisible", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel"];
|
10855
10887
|
|
10856
10888
|
var ModalForm = function ModalForm(props, ref) {
|
10857
10889
|
var columns = props.columns,
|
@@ -10859,6 +10891,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10859
10891
|
search = props.search,
|
10860
10892
|
visible = props.visible,
|
10861
10893
|
setVisible = props.setVisible,
|
10894
|
+
modalFormOpend = props.modalFormOpend,
|
10862
10895
|
disabled = props.disabled,
|
10863
10896
|
submitMethod = props.submitMethod,
|
10864
10897
|
onSubmitSuccess = props.onSubmitSuccess,
|
@@ -10903,7 +10936,8 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10903
10936
|
useImperativeHandle(ref, function () {
|
10904
10937
|
return {
|
10905
10938
|
formRef: formRef.current,
|
10906
|
-
onSubmit: onSubmit
|
10939
|
+
onSubmit: onSubmit,
|
10940
|
+
modalFormvisible: visible
|
10907
10941
|
};
|
10908
10942
|
});
|
10909
10943
|
|
@@ -10974,6 +11008,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10974
11008
|
if (visible) {
|
10975
11009
|
resetFields();
|
10976
11010
|
setFieldsValue(record);
|
11011
|
+
modalFormOpend && modalFormOpend(record);
|
10977
11012
|
}
|
10978
11013
|
}, [visible, record]);
|
10979
11014
|
return /*#__PURE__*/React.createElement(_Modal, _objectSpread2(_objectSpread2({
|
@@ -11038,6 +11073,8 @@ var TabelCard = function TabelCard(props, ref) {
|
|
11038
11073
|
formSearch = _useState6[0],
|
11039
11074
|
setFormSearch = _useState6[1];
|
11040
11075
|
|
11076
|
+
var modalFormColumn = deepCopy(columns) || [];
|
11077
|
+
var formSearchColumn = deepCopy(columns) || [];
|
11041
11078
|
useImperativeHandle(ref, function () {
|
11042
11079
|
return {
|
11043
11080
|
actionRef: actionRef.current,
|
@@ -11389,7 +11426,6 @@ var TabelCard = function TabelCard(props, ref) {
|
|
11389
11426
|
setFormSearch(obj);
|
11390
11427
|
}
|
11391
11428
|
}, [columns]);
|
11392
|
-
var formSearchColumn = columns || [];
|
11393
11429
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ModalForm$1, _objectSpread2(_objectSpread2({
|
11394
11430
|
ref: modalFormRef,
|
11395
11431
|
title: modalFormConfig.type || '新增',
|
@@ -11430,7 +11466,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
11430
11466
|
}, modalConfig), {}, {
|
11431
11467
|
onFormChange: onFormChange,
|
11432
11468
|
extraColumns: extraColumns || [],
|
11433
|
-
columns: (
|
11469
|
+
columns: (modalFormColumn || []).filter(function (item) {
|
11434
11470
|
if (item.hiddenInModalForm) {
|
11435
11471
|
return false;
|
11436
11472
|
}
|
package/dist/index.js
CHANGED
@@ -644,11 +644,12 @@ var Index = WInput;
|
|
644
644
|
Index.TextArea = _Input__default['default'].TextArea;
|
645
645
|
WInput.defaultProps = {};
|
646
646
|
|
647
|
-
var _excluded$1 = ["value", "onChange", "beforeUpload", "uploadButton", "maxCount", "splitStr", "fetchMethod", "getFileList"];
|
647
|
+
var _excluded$1 = ["value", "onChange", "onRemove", "beforeUpload", "uploadButton", "maxCount", "splitStr", "fetchMethod", "getFileList"];
|
648
648
|
|
649
649
|
function Index$1(_ref, ref) {
|
650
650
|
var value = _ref.value,
|
651
651
|
onChange = _ref.onChange,
|
652
|
+
onRemove = _ref.onRemove,
|
652
653
|
beforeUpload = _ref.beforeUpload,
|
653
654
|
uploadButton = _ref.uploadButton,
|
654
655
|
maxCount = _ref.maxCount,
|
@@ -744,7 +745,7 @@ function Index$1(_ref, ref) {
|
|
744
745
|
}
|
745
746
|
|
746
747
|
_context.next = 4;
|
747
|
-
return fetchMethod ? fetchMethod(file.originFileObj) : getBase64(file.originFileObj);
|
748
|
+
return fetchMethod ? fetchMethod(file.originFileObj) : file.originFileObj ? getBase64(file.originFileObj) : Promise.resolve(file.url);
|
748
749
|
|
749
750
|
case 4:
|
750
751
|
url = _context.sent;
|
@@ -773,6 +774,15 @@ function Index$1(_ref, ref) {
|
|
773
774
|
};
|
774
775
|
}();
|
775
776
|
|
777
|
+
var handleronRemove = function handleronRemove(file) {
|
778
|
+
var index = fileList.indexOf(file);
|
779
|
+
onRemove && onRemove(file, function () {
|
780
|
+
var newFileList = fileList.slice();
|
781
|
+
newFileList.splice(index, 1);
|
782
|
+
setFileList(newFileList);
|
783
|
+
});
|
784
|
+
};
|
785
|
+
|
776
786
|
var handlePreview = /*#__PURE__*/function () {
|
777
787
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(file) {
|
778
788
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
@@ -823,7 +833,8 @@ function Index$1(_ref, ref) {
|
|
823
833
|
listType: "picture-card",
|
824
834
|
beforeUpload: beforeUploadIn,
|
825
835
|
onPreview: handlePreview,
|
826
|
-
onChange: handleChange
|
836
|
+
onChange: handleChange,
|
837
|
+
onRemove: handleronRemove
|
827
838
|
}, props), fileList.length >= maxCount ? null : uploadButton ? uploadButton : uploadButtonDom), /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], {
|
828
839
|
visible: previewVisible,
|
829
840
|
title: previewTitle,
|
@@ -890,7 +901,7 @@ Index$4.Group = _Checkbox__default['default'].Group;
|
|
890
901
|
/*
|
891
902
|
* @Author: lijin
|
892
903
|
* @Date: 2021-10-27 22:18:49
|
893
|
-
* @LastEditTime: 2022-08-
|
904
|
+
* @LastEditTime: 2022-08-11 10:57:14
|
894
905
|
* @LastEditors: lijin
|
895
906
|
* @Description:
|
896
907
|
* @FilePath: \wargerm-components\src\utils\index.ts
|
@@ -964,10 +975,26 @@ function deepCopy(target) {
|
|
964
975
|
var result = Array.isArray(target) ? [] : {}; // eslint-disable-next-line no-restricted-syntax
|
965
976
|
|
966
977
|
for (var key in target) {
|
967
|
-
|
978
|
+
if (_typeof(target[key]) === 'object') {
|
979
|
+
if (Object.prototype.toString.call(target).slice(8, -1) == 'Object') {
|
980
|
+
var _target$key, _target$key2;
|
981
|
+
|
982
|
+
if (((_target$key = target[key]) === null || _target$key === void 0 ? void 0 : _target$key['$$typeof']) || ((_target$key2 = target[key]) === null || _target$key2 === void 0 ? void 0 : _target$key2['_isAMomentObject'])) {
|
983
|
+
result[key] = target[key];
|
984
|
+
} else {
|
985
|
+
result[key] = deepCopy(target[key]);
|
986
|
+
}
|
987
|
+
} else if (Object.prototype.toString.call(target).slice(8, -1) == 'Array') {
|
988
|
+
var _target$key3, _target$key4;
|
968
989
|
|
969
|
-
|
970
|
-
|
990
|
+
if (((_target$key3 = target[key]) === null || _target$key3 === void 0 ? void 0 : _target$key3['$$typeof']) || ((_target$key4 = target[key]) === null || _target$key4 === void 0 ? void 0 : _target$key4['_isAMomentObject'])) {
|
991
|
+
result[key] = target[key];
|
992
|
+
} else {
|
993
|
+
result[key] = deepCopy(target[key]);
|
994
|
+
}
|
995
|
+
} else {
|
996
|
+
result[key] = target[key];
|
997
|
+
}
|
971
998
|
} else {
|
972
999
|
result[key] = target[key];
|
973
1000
|
}
|
@@ -1022,7 +1049,8 @@ function FrameBox(_ref) {
|
|
1022
1049
|
}
|
1023
1050
|
|
1024
1051
|
var _excluded$3 = ["request", "valueEnum", "onLoad", "children", "params"],
|
1025
|
-
_excluded2 = ["
|
1052
|
+
_excluded2 = ["value", "label"],
|
1053
|
+
_excluded3 = ["children"];
|
1026
1054
|
|
1027
1055
|
var WSelect = function WSelect(props) {
|
1028
1056
|
var request = props.request,
|
@@ -1077,11 +1105,15 @@ var WSelect = function WSelect(props) {
|
|
1077
1105
|
case 6:
|
1078
1106
|
setResList(res);
|
1079
1107
|
onLoad && onLoad(res);
|
1080
|
-
node = res === null || res === void 0 ? void 0 : res.map(function (
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1108
|
+
node = res === null || res === void 0 ? void 0 : res.map(function (_ref2) {
|
1109
|
+
var value = _ref2.value,
|
1110
|
+
label = _ref2.label,
|
1111
|
+
extraProps = _objectWithoutProperties(_ref2, _excluded2);
|
1112
|
+
|
1113
|
+
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, _objectSpread2({
|
1114
|
+
key: value,
|
1115
|
+
value: value
|
1116
|
+
}, extraProps), label) || /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
1085
1117
|
});
|
1086
1118
|
setChildrenNode(node);
|
1087
1119
|
|
@@ -1137,7 +1169,7 @@ WSelect.defaultProps = {};
|
|
1137
1169
|
|
1138
1170
|
var Option = function Option(props) {
|
1139
1171
|
var children = props.children,
|
1140
|
-
extraProps = _objectWithoutProperties(props,
|
1172
|
+
extraProps = _objectWithoutProperties(props, _excluded3);
|
1141
1173
|
|
1142
1174
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, _objectSpread2({}, extraProps), children);
|
1143
1175
|
};
|
@@ -10911,7 +10943,7 @@ function DragBox(_ref) {
|
|
10911
10943
|
}, children)) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
10912
10944
|
}
|
10913
10945
|
|
10914
|
-
var _excluded$h = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel"];
|
10946
|
+
var _excluded$h = ["columns", "extraColumns", "search", "visible", "setVisible", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel"];
|
10915
10947
|
|
10916
10948
|
var ModalForm = function ModalForm(props, ref) {
|
10917
10949
|
var columns = props.columns,
|
@@ -10919,6 +10951,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10919
10951
|
search = props.search,
|
10920
10952
|
visible = props.visible,
|
10921
10953
|
setVisible = props.setVisible,
|
10954
|
+
modalFormOpend = props.modalFormOpend,
|
10922
10955
|
disabled = props.disabled,
|
10923
10956
|
submitMethod = props.submitMethod,
|
10924
10957
|
onSubmitSuccess = props.onSubmitSuccess,
|
@@ -10963,7 +10996,8 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10963
10996
|
React.useImperativeHandle(ref, function () {
|
10964
10997
|
return {
|
10965
10998
|
formRef: formRef.current,
|
10966
|
-
onSubmit: onSubmit
|
10999
|
+
onSubmit: onSubmit,
|
11000
|
+
modalFormvisible: visible
|
10967
11001
|
};
|
10968
11002
|
});
|
10969
11003
|
|
@@ -11034,6 +11068,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
11034
11068
|
if (visible) {
|
11035
11069
|
resetFields();
|
11036
11070
|
setFieldsValue(record);
|
11071
|
+
modalFormOpend && modalFormOpend(record);
|
11037
11072
|
}
|
11038
11073
|
}, [visible, record]);
|
11039
11074
|
return /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _objectSpread2(_objectSpread2({
|
@@ -11098,6 +11133,8 @@ var TabelCard = function TabelCard(props, ref) {
|
|
11098
11133
|
formSearch = _useState6[0],
|
11099
11134
|
setFormSearch = _useState6[1];
|
11100
11135
|
|
11136
|
+
var modalFormColumn = deepCopy(columns) || [];
|
11137
|
+
var formSearchColumn = deepCopy(columns) || [];
|
11101
11138
|
React.useImperativeHandle(ref, function () {
|
11102
11139
|
return {
|
11103
11140
|
actionRef: actionRef.current,
|
@@ -11449,7 +11486,6 @@ var TabelCard = function TabelCard(props, ref) {
|
|
11449
11486
|
setFormSearch(obj);
|
11450
11487
|
}
|
11451
11488
|
}, [columns]);
|
11452
|
-
var formSearchColumn = columns || [];
|
11453
11489
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(ModalForm$1, _objectSpread2(_objectSpread2({
|
11454
11490
|
ref: modalFormRef,
|
11455
11491
|
title: modalFormConfig.type || '新增',
|
@@ -11490,7 +11526,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
11490
11526
|
}, modalConfig), {}, {
|
11491
11527
|
onFormChange: onFormChange,
|
11492
11528
|
extraColumns: extraColumns || [],
|
11493
|
-
columns: (
|
11529
|
+
columns: (modalFormColumn || []).filter(function (item) {
|
11494
11530
|
if (item.hiddenInModalForm) {
|
11495
11531
|
return false;
|
11496
11532
|
}
|
package/package.json
CHANGED
@@ -1,88 +1,88 @@
|
|
1
|
-
{
|
2
|
-
"private": false,
|
3
|
-
"name": "wargerm",
|
4
|
-
"version": "0.5.
|
5
|
-
"scripts": {
|
6
|
-
"dev": "dumi dev",
|
7
|
-
"docs:build": "dumi build",
|
8
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
-
"build": "father-build",
|
10
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
-
"release": "npm run build && npm publish",
|
12
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
-
"test": "umi-test",
|
14
|
-
"test:coverage": "umi-test --coverage"
|
15
|
-
},
|
16
|
-
"main": "dist/index.js",
|
17
|
-
"module": "dist/index.esm.js",
|
18
|
-
"unpkg": "dist/index.umd.min.js",
|
19
|
-
"typings": "dist/index.d.ts",
|
20
|
-
"author": "jinly2",
|
21
|
-
"license": "MIT",
|
22
|
-
"keywords": [
|
23
|
-
"React",
|
24
|
-
"Component"
|
25
|
-
],
|
26
|
-
"gitHooks": {
|
27
|
-
"pre-commit": "lint-staged"
|
28
|
-
},
|
29
|
-
"repository": {
|
30
|
-
"type": "git",
|
31
|
-
"url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
|
32
|
-
"branch": "main"
|
33
|
-
},
|
34
|
-
"files": [
|
35
|
-
"dist",
|
36
|
-
"es",
|
37
|
-
"lib",
|
38
|
-
"index.css"
|
39
|
-
],
|
40
|
-
"lint-staged": {
|
41
|
-
"*.{js,jsx,less,md,json}": [
|
42
|
-
"prettier --write"
|
43
|
-
],
|
44
|
-
"*.ts?(x)": [
|
45
|
-
"prettier --parser=typescript --write"
|
46
|
-
]
|
47
|
-
},
|
48
|
-
"dependencies": {
|
49
|
-
"@ant-design/pro-form": "^1.49.3",
|
50
|
-
"@ant-design/pro-table": "^2.58.1",
|
51
|
-
"animate.css": "^4.1.1",
|
52
|
-
"react-countup": "^6.0.0",
|
53
|
-
"react-dom": "^17.0.2",
|
54
|
-
"echarts": "^5.2.2",
|
55
|
-
"echarts-for-react": "^3.0.2",
|
56
|
-
"swiper": "^6.7.0",
|
57
|
-
"xgplayer": "^2.31.6",
|
58
|
-
"xgplayer-flv": "^2.5.1",
|
59
|
-
"xgplayer-flv.js": "^2.3.0",
|
60
|
-
"xgplayer-hls": "^2.5.2",
|
61
|
-
"xgplayer-hls.js": "^2.6.1"
|
62
|
-
},
|
63
|
-
"peerDependencies": {
|
64
|
-
"@ant-design/icons": ">=4.2.0",
|
65
|
-
"antd": ">=4.7.0",
|
66
|
-
"classnames": ">=2.2.0",
|
67
|
-
"echarts": "^5.2.2",
|
68
|
-
"echarts-for-react": "^3.0.2",
|
69
|
-
"lodash": ">=4.0.0",
|
70
|
-
"react": ">=17.0.0"
|
71
|
-
},
|
72
|
-
"devDependencies": {
|
73
|
-
"@ant-design/icons": "^4.6.4",
|
74
|
-
"@types/lodash": "^4.14.173",
|
75
|
-
"@types/react-dom": "^17.0.11",
|
76
|
-
"@umijs/test": "^3.0.5",
|
77
|
-
"antd": "^4.16.13",
|
78
|
-
"babel-plugin-import": "^1.13.3",
|
79
|
-
"classnames": "^2.3.1",
|
80
|
-
"dumi": "^1.1.31",
|
81
|
-
"father-build": "^1.19.1",
|
82
|
-
"gh-pages": "^3.0.0",
|
83
|
-
"lint-staged": "^10.0.7",
|
84
|
-
"prettier": "^1.19.1",
|
85
|
-
"react": "^16.12.0",
|
86
|
-
"yorkie": "^2.0.0"
|
87
|
-
}
|
88
|
-
}
|
1
|
+
{
|
2
|
+
"private": false,
|
3
|
+
"name": "wargerm",
|
4
|
+
"version": "0.5.14",
|
5
|
+
"scripts": {
|
6
|
+
"dev": "dumi dev",
|
7
|
+
"docs:build": "dumi build",
|
8
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
+
"build": "father-build",
|
10
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
+
"release": "npm run build && npm publish",
|
12
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
+
"test": "umi-test",
|
14
|
+
"test:coverage": "umi-test --coverage"
|
15
|
+
},
|
16
|
+
"main": "dist/index.js",
|
17
|
+
"module": "dist/index.esm.js",
|
18
|
+
"unpkg": "dist/index.umd.min.js",
|
19
|
+
"typings": "dist/index.d.ts",
|
20
|
+
"author": "jinly2",
|
21
|
+
"license": "MIT",
|
22
|
+
"keywords": [
|
23
|
+
"React",
|
24
|
+
"Component"
|
25
|
+
],
|
26
|
+
"gitHooks": {
|
27
|
+
"pre-commit": "lint-staged"
|
28
|
+
},
|
29
|
+
"repository": {
|
30
|
+
"type": "git",
|
31
|
+
"url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
|
32
|
+
"branch": "main"
|
33
|
+
},
|
34
|
+
"files": [
|
35
|
+
"dist",
|
36
|
+
"es",
|
37
|
+
"lib",
|
38
|
+
"index.css"
|
39
|
+
],
|
40
|
+
"lint-staged": {
|
41
|
+
"*.{js,jsx,less,md,json}": [
|
42
|
+
"prettier --write"
|
43
|
+
],
|
44
|
+
"*.ts?(x)": [
|
45
|
+
"prettier --parser=typescript --write"
|
46
|
+
]
|
47
|
+
},
|
48
|
+
"dependencies": {
|
49
|
+
"@ant-design/pro-form": "^1.49.3",
|
50
|
+
"@ant-design/pro-table": "^2.58.1",
|
51
|
+
"animate.css": "^4.1.1",
|
52
|
+
"react-countup": "^6.0.0",
|
53
|
+
"react-dom": "^17.0.2",
|
54
|
+
"echarts": "^5.2.2",
|
55
|
+
"echarts-for-react": "^3.0.2",
|
56
|
+
"swiper": "^6.7.0",
|
57
|
+
"xgplayer": "^2.31.6",
|
58
|
+
"xgplayer-flv": "^2.5.1",
|
59
|
+
"xgplayer-flv.js": "^2.3.0",
|
60
|
+
"xgplayer-hls": "^2.5.2",
|
61
|
+
"xgplayer-hls.js": "^2.6.1"
|
62
|
+
},
|
63
|
+
"peerDependencies": {
|
64
|
+
"@ant-design/icons": ">=4.2.0",
|
65
|
+
"antd": ">=4.7.0",
|
66
|
+
"classnames": ">=2.2.0",
|
67
|
+
"echarts": "^5.2.2",
|
68
|
+
"echarts-for-react": "^3.0.2",
|
69
|
+
"lodash": ">=4.0.0",
|
70
|
+
"react": ">=17.0.0"
|
71
|
+
},
|
72
|
+
"devDependencies": {
|
73
|
+
"@ant-design/icons": "^4.6.4",
|
74
|
+
"@types/lodash": "^4.14.173",
|
75
|
+
"@types/react-dom": "^17.0.11",
|
76
|
+
"@umijs/test": "^3.0.5",
|
77
|
+
"antd": "^4.16.13",
|
78
|
+
"babel-plugin-import": "^1.13.3",
|
79
|
+
"classnames": "^2.3.1",
|
80
|
+
"dumi": "^1.1.31",
|
81
|
+
"father-build": "^1.19.1",
|
82
|
+
"gh-pages": "^3.0.0",
|
83
|
+
"lint-staged": "^10.0.7",
|
84
|
+
"prettier": "^1.19.1",
|
85
|
+
"react": "^16.12.0",
|
86
|
+
"yorkie": "^2.0.0"
|
87
|
+
}
|
88
|
+
}
|