wargerm 0.7.17 → 0.7.19
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/hooks/wmox.d.ts +11 -4
- package/dist/index.css +2 -5
- package/dist/index.esm.css +2 -5
- package/dist/index.esm.js +107 -30
- package/dist/index.js +107 -30
- package/package.json +90 -90
package/dist/hooks/wmox.d.ts
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
-
declare type
|
2
|
-
declare type
|
3
|
-
declare
|
1
|
+
declare type VoidFn = () => void;
|
2
|
+
declare type OneAction<V> = V | ((val: V) => V);
|
3
|
+
declare type ObjUpdater<Obj> = (obj: Obj) => Partial<Obj>;
|
4
|
+
declare type Setter<Obj> = {
|
5
|
+
<K extends keyof Obj>(key: K, oneAction: OneAction<Obj[K]>): void;
|
6
|
+
(obj: Partial<Obj>): void;
|
7
|
+
(objUpdater: ObjUpdater<Obj>): void;
|
8
|
+
};
|
9
|
+
declare type Store<Obj> = Obj & Setter<Obj>;
|
10
|
+
declare let run: (fn: VoidFn) => void;
|
4
11
|
declare const wmox: {
|
5
|
-
<
|
12
|
+
<Obj extends Record<string, unknown>>(obj: Obj): Store<Obj>;
|
6
13
|
config({ batch }: {
|
7
14
|
batch: typeof run;
|
8
15
|
}): void;
|
package/dist/index.css
CHANGED
@@ -39025,7 +39025,7 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
39025
39025
|
background: #fff;
|
39026
39026
|
text-shadow: 0 -1px 0 rgb(0 0 0%);
|
39027
39027
|
border-radius: 8px;
|
39028
|
-
box-shadow: 0px 4px 7px 4px rgba(118, 140, 173, 0.33), 0px 2px 9px 1px rgba(
|
39028
|
+
box-shadow: 0px 4px 7px 4px rgba(118, 140, 173, 0.33), 0px 2px 9px 1px rgba(116, 67, 67, 0.26) inset;
|
39029
39029
|
}
|
39030
39030
|
[data-prefers-color='light'] .ant-btn-primary {
|
39031
39031
|
color: #fff;
|
@@ -39036,10 +39036,7 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
39036
39036
|
[data-prefers-color='light'] .ant-btn-default {
|
39037
39037
|
background: rgba(118, 140, 173, 0.2);
|
39038
39038
|
border-radius: 8px;
|
39039
|
-
box-shadow: 0px 4px
|
39040
|
-
font-size: 16px;
|
39041
|
-
font-family: Microsoft YaHei Regular, Microsoft YaHei Regular-Regular;
|
39042
|
-
font-weight: 400;
|
39039
|
+
box-shadow: 0px 1px 4px 0px rgba(118, 140, 173, 0.17);
|
39043
39040
|
color: #708191;
|
39044
39041
|
}
|
39045
39042
|
[data-prefers-color='light'] .ant-input {
|
package/dist/index.esm.css
CHANGED
@@ -39025,7 +39025,7 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
39025
39025
|
background: #fff;
|
39026
39026
|
text-shadow: 0 -1px 0 rgb(0 0 0%);
|
39027
39027
|
border-radius: 8px;
|
39028
|
-
box-shadow: 0px 4px 7px 4px rgba(118, 140, 173, 0.33), 0px 2px 9px 1px rgba(
|
39028
|
+
box-shadow: 0px 4px 7px 4px rgba(118, 140, 173, 0.33), 0px 2px 9px 1px rgba(116, 67, 67, 0.26) inset;
|
39029
39029
|
}
|
39030
39030
|
[data-prefers-color='light'] .ant-btn-primary {
|
39031
39031
|
color: #fff;
|
@@ -39036,10 +39036,7 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
39036
39036
|
[data-prefers-color='light'] .ant-btn-default {
|
39037
39037
|
background: rgba(118, 140, 173, 0.2);
|
39038
39038
|
border-radius: 8px;
|
39039
|
-
box-shadow: 0px 4px
|
39040
|
-
font-size: 16px;
|
39041
|
-
font-family: Microsoft YaHei Regular, Microsoft YaHei Regular-Regular;
|
39042
|
-
font-weight: 400;
|
39039
|
+
box-shadow: 0px 1px 4px 0px rgba(118, 140, 173, 0.17);
|
39043
39040
|
color: #708191;
|
39044
39041
|
}
|
39045
39042
|
[data-prefers-color='light'] .ant-input {
|
package/dist/index.esm.js
CHANGED
@@ -634,25 +634,41 @@ create.config = function (_ref) {
|
|
634
634
|
run = batch;
|
635
635
|
};
|
636
636
|
|
637
|
+
var __DEV__$1 = process.env.NODE_ENV !== 'production';
|
638
|
+
|
639
|
+
var isObj = function isObj(val) {
|
640
|
+
return Object.prototype.toString.call(val) === '[object Object]';
|
641
|
+
};
|
642
|
+
|
643
|
+
var isGetStateInMethod = false;
|
644
|
+
|
637
645
|
var run$1 = function run(fn) {
|
638
646
|
fn();
|
639
647
|
};
|
640
648
|
|
641
|
-
var
|
642
|
-
|
643
|
-
var wmox = function wmox(state) {
|
644
|
-
if (__DEV__$1 && Object.prototype.toString.call(state) !== '[object Object]') {
|
649
|
+
var wmox = function wmox(obj) {
|
650
|
+
if (__DEV__$1 && !isObj(obj)) {
|
645
651
|
throw new Error('object required');
|
646
652
|
}
|
647
653
|
|
648
|
-
var
|
649
|
-
|
650
|
-
|
654
|
+
var state = {};
|
655
|
+
var methods = {};
|
656
|
+
Object.keys(obj).forEach(function (key) {
|
657
|
+
var initVal = obj[key];
|
658
|
+
|
659
|
+
if (initVal instanceof Function) {
|
660
|
+
methods[key] = function () {
|
661
|
+
isGetStateInMethod = true;
|
662
|
+
var res = initVal.apply(void 0, arguments);
|
663
|
+
isGetStateInMethod = false;
|
664
|
+
return res;
|
665
|
+
};
|
666
|
+
|
651
667
|
return;
|
652
668
|
}
|
653
669
|
|
654
670
|
var listeners = new Set();
|
655
|
-
|
671
|
+
state[key] = {
|
656
672
|
subscribe: function subscribe(listener) {
|
657
673
|
listeners.add(listener);
|
658
674
|
return function () {
|
@@ -660,11 +676,11 @@ var wmox = function wmox(state) {
|
|
660
676
|
};
|
661
677
|
},
|
662
678
|
getSnapshot: function getSnapshot() {
|
663
|
-
return
|
679
|
+
return obj[key];
|
664
680
|
},
|
665
681
|
setSnapshot: function setSnapshot(val) {
|
666
|
-
if (val !==
|
667
|
-
|
682
|
+
if (val !== obj[key]) {
|
683
|
+
obj[key] = val;
|
668
684
|
run$1(function () {
|
669
685
|
return listeners.forEach(function (listener) {
|
670
686
|
return listener();
|
@@ -673,27 +689,85 @@ var wmox = function wmox(state) {
|
|
673
689
|
}
|
674
690
|
},
|
675
691
|
useSnapshot: function useSnapshot() {
|
676
|
-
return useSyncExternalStore(
|
692
|
+
return useSyncExternalStore(state[key].subscribe, state[key].getSnapshot, state[key].getSnapshot);
|
677
693
|
}
|
678
694
|
};
|
679
695
|
});
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
696
|
+
|
697
|
+
var setState = function setState(key, val) {
|
698
|
+
if (key in obj) {
|
699
|
+
if (key in state) {
|
700
|
+
var newVal = val instanceof Function ? val(obj[key]) : val;
|
701
|
+
state[key].setSnapshot(newVal);
|
702
|
+
} else if (__DEV__$1) {
|
703
|
+
throw new Error("`".concat(key, "` is a method, can not update"));
|
704
|
+
}
|
705
|
+
} else if (__DEV__$1) {
|
706
|
+
throw new Error("`".concat(key, "` is not initialized in store"));
|
707
|
+
}
|
708
|
+
};
|
709
|
+
|
710
|
+
return new Proxy(function () {
|
711
|
+
return undefined;
|
712
|
+
}, {
|
713
|
+
get: function get(_target, key) {
|
714
|
+
if (key in methods) {
|
715
|
+
return methods[key];
|
716
|
+
}
|
717
|
+
|
718
|
+
if (key in state) {
|
719
|
+
if (isGetStateInMethod) {
|
720
|
+
return obj[key];
|
721
|
+
}
|
722
|
+
|
723
|
+
try {
|
724
|
+
return state[key].useSnapshot();
|
725
|
+
} catch (err) {
|
726
|
+
return obj[key];
|
727
|
+
}
|
728
|
+
}
|
729
|
+
|
730
|
+
if (__DEV__$1) {
|
731
|
+
if (key !== 'prototype' && key !== 'name' && key !== 'displayName') {
|
732
|
+
throw new Error("`".concat(key, "` is not initialized in store"));
|
733
|
+
}
|
686
734
|
}
|
687
735
|
},
|
688
|
-
set: function set(
|
689
|
-
|
736
|
+
set: function set(_target, key, val) {
|
737
|
+
setState(key, val);
|
690
738
|
return true;
|
739
|
+
},
|
740
|
+
apply: function apply(_target, _thisArg, _ref) {
|
741
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
742
|
+
firstArg = _ref2[0],
|
743
|
+
oneAction = _ref2[1];
|
744
|
+
|
745
|
+
if (typeof firstArg === 'string') {
|
746
|
+
setState(firstArg, oneAction);
|
747
|
+
return;
|
748
|
+
}
|
749
|
+
|
750
|
+
if (isObj(firstArg)) {
|
751
|
+
var newObj = firstArg;
|
752
|
+
Object.keys(newObj).forEach(function (key) {
|
753
|
+
setState(key, newObj[key]);
|
754
|
+
});
|
755
|
+
return;
|
756
|
+
}
|
757
|
+
|
758
|
+
if (typeof firstArg === 'function') {
|
759
|
+
var _newObj = firstArg(obj);
|
760
|
+
|
761
|
+
Object.keys(_newObj).forEach(function (key) {
|
762
|
+
setState(key, _newObj[key]);
|
763
|
+
});
|
764
|
+
}
|
691
765
|
}
|
692
766
|
});
|
693
767
|
};
|
694
768
|
|
695
|
-
wmox.config = function (
|
696
|
-
var batch =
|
769
|
+
wmox.config = function (_ref3) {
|
770
|
+
var batch = _ref3.batch;
|
697
771
|
run$1 = batch;
|
698
772
|
};
|
699
773
|
|
@@ -2380,14 +2454,15 @@ function Index$1(_ref, ref) {
|
|
2380
2454
|
|
2381
2455
|
if (file.status === 'done' || file.status === 'removed') {
|
2382
2456
|
file.url = file.response;
|
2383
|
-
urls = newFileList.map(function (file) {
|
2457
|
+
urls = _toConsumableArray(newFileList).map(function (file) {
|
2384
2458
|
return file.url;
|
2385
2459
|
}).join(splitStr);
|
2386
2460
|
onChange && onChange(urls);
|
2387
|
-
}
|
2461
|
+
}
|
2388
2462
|
|
2463
|
+
setFileList(_toConsumableArray(newFileList));
|
2389
2464
|
|
2390
|
-
case
|
2465
|
+
case 3:
|
2391
2466
|
case "end":
|
2392
2467
|
return _context.stop();
|
2393
2468
|
}
|
@@ -2402,7 +2477,7 @@ function Index$1(_ref, ref) {
|
|
2402
2477
|
|
2403
2478
|
var request = /*#__PURE__*/function () {
|
2404
2479
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(options) {
|
2405
|
-
var onSuccess, onError, file, onProgress, url, fileObj
|
2480
|
+
var onSuccess, onError, file, onProgress, url, fileObj;
|
2406
2481
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
2407
2482
|
while (1) {
|
2408
2483
|
switch (_context2.prev = _context2.next) {
|
@@ -2424,9 +2499,9 @@ function Index$1(_ref, ref) {
|
|
2424
2499
|
thumbUrl: url,
|
2425
2500
|
originFileObj: file,
|
2426
2501
|
xhr: onProgress
|
2427
|
-
};
|
2428
|
-
|
2429
|
-
|
2502
|
+
}; // const newFileList = [...fileList, fileObj]
|
2503
|
+
// setFileList(newFileList);
|
2504
|
+
|
2430
2505
|
onSuccess(url, file);
|
2431
2506
|
}
|
2432
2507
|
|
@@ -7676,7 +7751,9 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7676
7751
|
valueType: 'option',
|
7677
7752
|
align: 'center',
|
7678
7753
|
render: function render(_, record, index) {
|
7679
|
-
return
|
7754
|
+
return /*#__PURE__*/React.createElement("div", {
|
7755
|
+
className: "flex w100p jc-c ai-c"
|
7756
|
+
}, tableActionDom(record, index));
|
7680
7757
|
}
|
7681
7758
|
}, optionColumnConfig)]).map(function (item) {
|
7682
7759
|
var obj = _objectSpread2({}, item);
|
package/dist/index.js
CHANGED
@@ -678,25 +678,41 @@ create.config = function (_ref) {
|
|
678
678
|
run = batch;
|
679
679
|
};
|
680
680
|
|
681
|
+
var __DEV__$1 = process.env.NODE_ENV !== 'production';
|
682
|
+
|
683
|
+
var isObj = function isObj(val) {
|
684
|
+
return Object.prototype.toString.call(val) === '[object Object]';
|
685
|
+
};
|
686
|
+
|
687
|
+
var isGetStateInMethod = false;
|
688
|
+
|
681
689
|
var run$1 = function run(fn) {
|
682
690
|
fn();
|
683
691
|
};
|
684
692
|
|
685
|
-
var
|
686
|
-
|
687
|
-
var wmox = function wmox(state) {
|
688
|
-
if (__DEV__$1 && Object.prototype.toString.call(state) !== '[object Object]') {
|
693
|
+
var wmox = function wmox(obj) {
|
694
|
+
if (__DEV__$1 && !isObj(obj)) {
|
689
695
|
throw new Error('object required');
|
690
696
|
}
|
691
697
|
|
692
|
-
var
|
693
|
-
|
694
|
-
|
698
|
+
var state = {};
|
699
|
+
var methods = {};
|
700
|
+
Object.keys(obj).forEach(function (key) {
|
701
|
+
var initVal = obj[key];
|
702
|
+
|
703
|
+
if (initVal instanceof Function) {
|
704
|
+
methods[key] = function () {
|
705
|
+
isGetStateInMethod = true;
|
706
|
+
var res = initVal.apply(void 0, arguments);
|
707
|
+
isGetStateInMethod = false;
|
708
|
+
return res;
|
709
|
+
};
|
710
|
+
|
695
711
|
return;
|
696
712
|
}
|
697
713
|
|
698
714
|
var listeners = new Set();
|
699
|
-
|
715
|
+
state[key] = {
|
700
716
|
subscribe: function subscribe(listener) {
|
701
717
|
listeners.add(listener);
|
702
718
|
return function () {
|
@@ -704,11 +720,11 @@ var wmox = function wmox(state) {
|
|
704
720
|
};
|
705
721
|
},
|
706
722
|
getSnapshot: function getSnapshot() {
|
707
|
-
return
|
723
|
+
return obj[key];
|
708
724
|
},
|
709
725
|
setSnapshot: function setSnapshot(val) {
|
710
|
-
if (val !==
|
711
|
-
|
726
|
+
if (val !== obj[key]) {
|
727
|
+
obj[key] = val;
|
712
728
|
run$1(function () {
|
713
729
|
return listeners.forEach(function (listener) {
|
714
730
|
return listener();
|
@@ -717,27 +733,85 @@ var wmox = function wmox(state) {
|
|
717
733
|
}
|
718
734
|
},
|
719
735
|
useSnapshot: function useSnapshot() {
|
720
|
-
return shim.useSyncExternalStore(
|
736
|
+
return shim.useSyncExternalStore(state[key].subscribe, state[key].getSnapshot, state[key].getSnapshot);
|
721
737
|
}
|
722
738
|
};
|
723
739
|
});
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
740
|
+
|
741
|
+
var setState = function setState(key, val) {
|
742
|
+
if (key in obj) {
|
743
|
+
if (key in state) {
|
744
|
+
var newVal = val instanceof Function ? val(obj[key]) : val;
|
745
|
+
state[key].setSnapshot(newVal);
|
746
|
+
} else if (__DEV__$1) {
|
747
|
+
throw new Error("`".concat(key, "` is a method, can not update"));
|
748
|
+
}
|
749
|
+
} else if (__DEV__$1) {
|
750
|
+
throw new Error("`".concat(key, "` is not initialized in store"));
|
751
|
+
}
|
752
|
+
};
|
753
|
+
|
754
|
+
return new Proxy(function () {
|
755
|
+
return undefined;
|
756
|
+
}, {
|
757
|
+
get: function get(_target, key) {
|
758
|
+
if (key in methods) {
|
759
|
+
return methods[key];
|
760
|
+
}
|
761
|
+
|
762
|
+
if (key in state) {
|
763
|
+
if (isGetStateInMethod) {
|
764
|
+
return obj[key];
|
765
|
+
}
|
766
|
+
|
767
|
+
try {
|
768
|
+
return state[key].useSnapshot();
|
769
|
+
} catch (err) {
|
770
|
+
return obj[key];
|
771
|
+
}
|
772
|
+
}
|
773
|
+
|
774
|
+
if (__DEV__$1) {
|
775
|
+
if (key !== 'prototype' && key !== 'name' && key !== 'displayName') {
|
776
|
+
throw new Error("`".concat(key, "` is not initialized in store"));
|
777
|
+
}
|
730
778
|
}
|
731
779
|
},
|
732
|
-
set: function set(
|
733
|
-
|
780
|
+
set: function set(_target, key, val) {
|
781
|
+
setState(key, val);
|
734
782
|
return true;
|
783
|
+
},
|
784
|
+
apply: function apply(_target, _thisArg, _ref) {
|
785
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
786
|
+
firstArg = _ref2[0],
|
787
|
+
oneAction = _ref2[1];
|
788
|
+
|
789
|
+
if (typeof firstArg === 'string') {
|
790
|
+
setState(firstArg, oneAction);
|
791
|
+
return;
|
792
|
+
}
|
793
|
+
|
794
|
+
if (isObj(firstArg)) {
|
795
|
+
var newObj = firstArg;
|
796
|
+
Object.keys(newObj).forEach(function (key) {
|
797
|
+
setState(key, newObj[key]);
|
798
|
+
});
|
799
|
+
return;
|
800
|
+
}
|
801
|
+
|
802
|
+
if (typeof firstArg === 'function') {
|
803
|
+
var _newObj = firstArg(obj);
|
804
|
+
|
805
|
+
Object.keys(_newObj).forEach(function (key) {
|
806
|
+
setState(key, _newObj[key]);
|
807
|
+
});
|
808
|
+
}
|
735
809
|
}
|
736
810
|
});
|
737
811
|
};
|
738
812
|
|
739
|
-
wmox.config = function (
|
740
|
-
var batch =
|
813
|
+
wmox.config = function (_ref3) {
|
814
|
+
var batch = _ref3.batch;
|
741
815
|
run$1 = batch;
|
742
816
|
};
|
743
817
|
|
@@ -2424,14 +2498,15 @@ function Index$1(_ref, ref) {
|
|
2424
2498
|
|
2425
2499
|
if (file.status === 'done' || file.status === 'removed') {
|
2426
2500
|
file.url = file.response;
|
2427
|
-
urls = newFileList.map(function (file) {
|
2501
|
+
urls = _toConsumableArray(newFileList).map(function (file) {
|
2428
2502
|
return file.url;
|
2429
2503
|
}).join(splitStr);
|
2430
2504
|
onChange && onChange(urls);
|
2431
|
-
}
|
2505
|
+
}
|
2432
2506
|
|
2507
|
+
setFileList(_toConsumableArray(newFileList));
|
2433
2508
|
|
2434
|
-
case
|
2509
|
+
case 3:
|
2435
2510
|
case "end":
|
2436
2511
|
return _context.stop();
|
2437
2512
|
}
|
@@ -2446,7 +2521,7 @@ function Index$1(_ref, ref) {
|
|
2446
2521
|
|
2447
2522
|
var request = /*#__PURE__*/function () {
|
2448
2523
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(options) {
|
2449
|
-
var onSuccess, onError, file, onProgress, url, fileObj
|
2524
|
+
var onSuccess, onError, file, onProgress, url, fileObj;
|
2450
2525
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
2451
2526
|
while (1) {
|
2452
2527
|
switch (_context2.prev = _context2.next) {
|
@@ -2468,9 +2543,9 @@ function Index$1(_ref, ref) {
|
|
2468
2543
|
thumbUrl: url,
|
2469
2544
|
originFileObj: file,
|
2470
2545
|
xhr: onProgress
|
2471
|
-
};
|
2472
|
-
|
2473
|
-
|
2546
|
+
}; // const newFileList = [...fileList, fileObj]
|
2547
|
+
// setFileList(newFileList);
|
2548
|
+
|
2474
2549
|
onSuccess(url, file);
|
2475
2550
|
}
|
2476
2551
|
|
@@ -7720,7 +7795,9 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7720
7795
|
valueType: 'option',
|
7721
7796
|
align: 'center',
|
7722
7797
|
render: function render(_, record, index) {
|
7723
|
-
return
|
7798
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
7799
|
+
className: "flex w100p jc-c ai-c"
|
7800
|
+
}, tableActionDom(record, index));
|
7724
7801
|
}
|
7725
7802
|
}, optionColumnConfig)]).map(function (item) {
|
7726
7803
|
var obj = _objectSpread2({}, item);
|
package/package.json
CHANGED
@@ -1,91 +1,91 @@
|
|
1
|
-
{
|
2
|
-
"private": false,
|
3
|
-
"name": "wargerm",
|
4
|
-
"version": "0.7.
|
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-table": "^3.3.1",
|
50
|
-
"animate.css": "^4.1.1",
|
51
|
-
"dayjs": "^1.11.7",
|
52
|
-
"echarts": "^5.2.2",
|
53
|
-
"echarts-for-react": "^3.0.2",
|
54
|
-
"lodash-es": "^4.17.21",
|
55
|
-
"react-countup": "^6.0.0",
|
56
|
-
"react-dom": "^17.0.2",
|
57
|
-
"react-file-viewer": "^1.2.1",
|
58
|
-
"swiper": "^6.7.0",
|
59
|
-
"use-sync-external-store": "^1.2.0",
|
60
|
-
"xgplayer": "^2.31.6",
|
61
|
-
"xgplayer-flv": "^2.5.1",
|
62
|
-
"xgplayer-flv.js": "^2.3.0",
|
63
|
-
"xgplayer-hls": "^2.5.2",
|
64
|
-
"xgplayer-hls.js": "^2.6.1"
|
65
|
-
},
|
66
|
-
"peerDependencies": {
|
67
|
-
"@ant-design/icons": ">=4.2.0",
|
68
|
-
"antd": ">=4.7.0",
|
69
|
-
"classnames": ">=2.2.0",
|
70
|
-
"echarts": "^5.2.2",
|
71
|
-
"echarts-for-react": "^3.0.2",
|
72
|
-
"lodash-es": ">=4.17.21",
|
73
|
-
"react": ">=17.0.0"
|
74
|
-
},
|
75
|
-
"devDependencies": {
|
76
|
-
"@ant-design/icons": "^4.6.4",
|
77
|
-
"@types/lodash-es": "^4.17.6",
|
78
|
-
"@types/react-dom": "^17.0.11",
|
79
|
-
"@types/use-sync-external-store": "^0.0.3",
|
80
|
-
"@umijs/test": "^3.0.5",
|
81
|
-
"antd": "^5.2.2",
|
82
|
-
"classnames": "^2.3.1",
|
83
|
-
"dumi": "^1.1.31",
|
84
|
-
"father-build": "^1.19.1",
|
85
|
-
"gh-pages": "^3.0.0",
|
86
|
-
"lint-staged": "^10.0.7",
|
87
|
-
"prettier": "^1.19.1",
|
88
|
-
"react": "^16.12.0",
|
89
|
-
"yorkie": "^2.0.0"
|
90
|
-
}
|
1
|
+
{
|
2
|
+
"private": false,
|
3
|
+
"name": "wargerm",
|
4
|
+
"version": "0.7.19",
|
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-table": "^3.3.1",
|
50
|
+
"animate.css": "^4.1.1",
|
51
|
+
"dayjs": "^1.11.7",
|
52
|
+
"echarts": "^5.2.2",
|
53
|
+
"echarts-for-react": "^3.0.2",
|
54
|
+
"lodash-es": "^4.17.21",
|
55
|
+
"react-countup": "^6.0.0",
|
56
|
+
"react-dom": "^17.0.2",
|
57
|
+
"react-file-viewer": "^1.2.1",
|
58
|
+
"swiper": "^6.7.0",
|
59
|
+
"use-sync-external-store": "^1.2.0",
|
60
|
+
"xgplayer": "^2.31.6",
|
61
|
+
"xgplayer-flv": "^2.5.1",
|
62
|
+
"xgplayer-flv.js": "^2.3.0",
|
63
|
+
"xgplayer-hls": "^2.5.2",
|
64
|
+
"xgplayer-hls.js": "^2.6.1"
|
65
|
+
},
|
66
|
+
"peerDependencies": {
|
67
|
+
"@ant-design/icons": ">=4.2.0",
|
68
|
+
"antd": ">=4.7.0",
|
69
|
+
"classnames": ">=2.2.0",
|
70
|
+
"echarts": "^5.2.2",
|
71
|
+
"echarts-for-react": "^3.0.2",
|
72
|
+
"lodash-es": ">=4.17.21",
|
73
|
+
"react": ">=17.0.0"
|
74
|
+
},
|
75
|
+
"devDependencies": {
|
76
|
+
"@ant-design/icons": "^4.6.4",
|
77
|
+
"@types/lodash-es": "^4.17.6",
|
78
|
+
"@types/react-dom": "^17.0.11",
|
79
|
+
"@types/use-sync-external-store": "^0.0.3",
|
80
|
+
"@umijs/test": "^3.0.5",
|
81
|
+
"antd": "^5.2.2",
|
82
|
+
"classnames": "^2.3.1",
|
83
|
+
"dumi": "^1.1.31",
|
84
|
+
"father-build": "^1.19.1",
|
85
|
+
"gh-pages": "^3.0.0",
|
86
|
+
"lint-staged": "^10.0.7",
|
87
|
+
"prettier": "^1.19.1",
|
88
|
+
"react": "^16.12.0",
|
89
|
+
"yorkie": "^2.0.0"
|
90
|
+
}
|
91
91
|
}
|