wargerm 0.6.9 → 0.6.11
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/components/NtTable/index.d.ts +3 -2
- package/dist/index.css +6 -0
- package/dist/index.esm.css +6 -0
- package/dist/index.esm.js +25 -12
- package/dist/index.js +25 -12
- package/package.json +92 -92
@@ -72,7 +72,7 @@ declare type Props = {
|
|
72
72
|
pageSize?: number;
|
73
73
|
current?: number;
|
74
74
|
}, sort?: any, filter?: any) => Promise<any>;
|
75
|
-
onLoad?: (dataSource: Record<string, any>[]) => void;
|
75
|
+
onLoad?: (dataSource: Record<string, any>[], res: Record<string, any>) => void;
|
76
76
|
onSubmit?: (params: Record<string, any>) => void;
|
77
77
|
onReset?: () => void;
|
78
78
|
rowKey: ((record: Record<string, any>) => number | string) | string;
|
@@ -94,4 +94,5 @@ declare namespace NtTable {
|
|
94
94
|
rowKey: string;
|
95
95
|
};
|
96
96
|
}
|
97
|
-
|
97
|
+
declare const _default: React.MemoExoticComponent<typeof NtTable>;
|
98
|
+
export default _default;
|
package/dist/index.css
CHANGED
@@ -28096,6 +28096,12 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
28096
28096
|
background: #4d82ff;
|
28097
28097
|
color: #ffffff;
|
28098
28098
|
}
|
28099
|
+
[data-prefers-color='light'] .ant-table-tbody > tr.ant-table-row:hover > td a,
|
28100
|
+
[data-prefers-color='light'] .ant-table-tbody > tr > td.ant-table-cell-row-hover a,
|
28101
|
+
[data-prefers-color='light'] .ant-table-tbody > tr.ant-table-row:hover > td .ant-typography,
|
28102
|
+
[data-prefers-color='light'] .ant-table-tbody > tr > td.ant-table-cell-row-hover .ant-typography {
|
28103
|
+
color: #ffffff;
|
28104
|
+
}
|
28099
28105
|
[data-prefers-color='light'] .ant-table-tbody > tr > td.ant-table-cell-row-hover:first-child {
|
28100
28106
|
border-radius: 4px 0px 0px 4px;
|
28101
28107
|
}
|
package/dist/index.esm.css
CHANGED
@@ -28096,6 +28096,12 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
28096
28096
|
background: #4d82ff;
|
28097
28097
|
color: #ffffff;
|
28098
28098
|
}
|
28099
|
+
[data-prefers-color='light'] .ant-table-tbody > tr.ant-table-row:hover > td a,
|
28100
|
+
[data-prefers-color='light'] .ant-table-tbody > tr > td.ant-table-cell-row-hover a,
|
28101
|
+
[data-prefers-color='light'] .ant-table-tbody > tr.ant-table-row:hover > td .ant-typography,
|
28102
|
+
[data-prefers-color='light'] .ant-table-tbody > tr > td.ant-table-cell-row-hover .ant-typography {
|
28103
|
+
color: #ffffff;
|
28104
|
+
}
|
28099
28105
|
[data-prefers-color='light'] .ant-table-tbody > tr > td.ant-table-cell-row-hover:first-child {
|
28100
28106
|
border-radius: 4px 0px 0px 4px;
|
28101
28107
|
}
|
package/dist/index.esm.js
CHANGED
@@ -1533,7 +1533,11 @@ var WSelect = function WSelect(props) {
|
|
1533
1533
|
return /*#__PURE__*/React.createElement(_Select, _objectSpread2({
|
1534
1534
|
showSearch: true,
|
1535
1535
|
filterOption: function filterOption(input, option) {
|
1536
|
-
|
1536
|
+
var _ref3;
|
1537
|
+
|
1538
|
+
var children = option.children,
|
1539
|
+
label = option.label;
|
1540
|
+
return ((_ref3 = children || label) === null || _ref3 === void 0 ? void 0 : _ref3.toLowerCase().indexOf(input === null || input === void 0 ? void 0 : input.toLowerCase())) >= 0;
|
1537
1541
|
}
|
1538
1542
|
}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
1539
1543
|
};
|
@@ -2680,7 +2684,8 @@ function Table(_ref) {
|
|
2680
2684
|
tableList = _ref.dataSource,
|
2681
2685
|
request = _ref.request,
|
2682
2686
|
onLoad = _ref.onLoad,
|
2683
|
-
params = _ref.params,
|
2687
|
+
_ref$params = _ref.params,
|
2688
|
+
params = _ref$params === void 0 ? {} : _ref$params,
|
2684
2689
|
onSubmit = _ref.onSubmit,
|
2685
2690
|
_ref$rowKey = _ref.rowKey,
|
2686
2691
|
rowKey = _ref$rowKey === void 0 ? 'key' : _ref$rowKey,
|
@@ -6635,7 +6640,7 @@ function Xgplay(_ref, fRef) {
|
|
6635
6640
|
setRef(null);
|
6636
6641
|
playerRef.current = null;
|
6637
6642
|
};
|
6638
|
-
}, []);
|
6643
|
+
}, [type]);
|
6639
6644
|
useImperativeHandle(fRef, function () {
|
6640
6645
|
return {
|
6641
6646
|
player: playerRef.current
|
@@ -7117,6 +7122,7 @@ function FrameBox$1(_ref) {
|
|
7117
7122
|
}
|
7118
7123
|
|
7119
7124
|
var _excluded$n = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
|
7125
|
+
|
7120
7126
|
function NtTable(_ref) {
|
7121
7127
|
var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
|
7122
7128
|
|
@@ -7124,7 +7130,8 @@ function NtTable(_ref) {
|
|
7124
7130
|
tableList = _ref.dataSource,
|
7125
7131
|
request = _ref.request,
|
7126
7132
|
onLoad = _ref.onLoad,
|
7127
|
-
params = _ref.params,
|
7133
|
+
_ref$params = _ref.params,
|
7134
|
+
params = _ref$params === void 0 ? {} : _ref$params,
|
7128
7135
|
onSubmit = _ref.onSubmit,
|
7129
7136
|
_ref$rowKey = _ref.rowKey,
|
7130
7137
|
rowKey = _ref$rowKey === void 0 ? 'key' : _ref$rowKey,
|
@@ -7531,12 +7538,14 @@ function NtTable(_ref) {
|
|
7531
7538
|
case 7:
|
7532
7539
|
res = _context.sent;
|
7533
7540
|
setLoading(false);
|
7534
|
-
onLoad && onLoad(res.data);
|
7535
|
-
setDataSource(res.data);
|
7536
|
-
setTotal(res.total || 0);
|
7541
|
+
onLoad && onLoad(res === null || res === void 0 ? void 0 : res.data, res);
|
7542
|
+
setDataSource((res === null || res === void 0 ? void 0 : res.data) || []);
|
7543
|
+
setTotal((res === null || res === void 0 ? void 0 : res.total) || 0);
|
7537
7544
|
setpaginationParams(function (c) {
|
7545
|
+
var _res$data;
|
7546
|
+
|
7538
7547
|
return _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
|
7539
|
-
total: res.total || res.data.length
|
7548
|
+
total: (res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) || 0
|
7540
7549
|
}, pagination), requestParams);
|
7541
7550
|
});
|
7542
7551
|
_context.next = 16;
|
@@ -7544,13 +7553,15 @@ function NtTable(_ref) {
|
|
7544
7553
|
|
7545
7554
|
case 15:
|
7546
7555
|
setpaginationParams(function (c) {
|
7556
|
+
var _tableList$slice;
|
7557
|
+
|
7547
7558
|
var obj = _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
|
7548
|
-
total: tableList
|
7559
|
+
total: (tableList === null || tableList === void 0 ? void 0 : tableList.length) || 0
|
7549
7560
|
}, pagination), pageParams);
|
7550
7561
|
|
7551
7562
|
var current = obj.current,
|
7552
7563
|
pageSize = obj.pageSize;
|
7553
|
-
setDataSource(tableList ? tableList.slice((current - 1) * pageSize, current * pageSize)
|
7564
|
+
setDataSource((tableList === null || tableList === void 0 ? void 0 : (_tableList$slice = tableList.slice) === null || _tableList$slice === void 0 ? void 0 : _tableList$slice.call(tableList, (current - 1) * pageSize, current * pageSize)) || []);
|
7554
7565
|
return obj;
|
7555
7566
|
});
|
7556
7567
|
|
@@ -7561,7 +7572,7 @@ function NtTable(_ref) {
|
|
7561
7572
|
}
|
7562
7573
|
}, _callee);
|
7563
7574
|
}))();
|
7564
|
-
}, [params, pageParams, pagination, tableList, formSearch, columns]);
|
7575
|
+
}, [JSON.stringify(params), JSON.stringify(pageParams), JSON.stringify(pagination), JSON.stringify(tableList), formSearch, JSON.stringify(columns)]);
|
7565
7576
|
|
7566
7577
|
var onFormSubmit = function onFormSubmit(values) {
|
7567
7578
|
onSubmit && onSubmit(values);
|
@@ -7678,9 +7689,11 @@ function NtTable(_ref) {
|
|
7678
7689
|
}
|
7679
7690
|
}, paginationParams)));
|
7680
7691
|
}
|
7692
|
+
|
7681
7693
|
NtTable.defaultProps = {
|
7682
7694
|
rowKey: 'key'
|
7683
7695
|
};
|
7696
|
+
var index$7 = /*#__PURE__*/memo(NtTable);
|
7684
7697
|
|
7685
7698
|
/*
|
7686
7699
|
* @Author: lijin
|
@@ -8477,4 +8490,4 @@ if (REACT_APP_ENV == 'development') {
|
|
8477
8490
|
document.documentElement.setAttribute(COLOR_ATTR_NAME, 'nt');
|
8478
8491
|
}
|
8479
8492
|
|
8480
|
-
export { Index$a as AutoScroll, Index$c as Breadcrumb, WButton as Button, index$4 as Calendar, index$2 as Card, WCascader as Cascader, Index$4 as Checkbox, Index$9 as CountUp, Index$2 as DatePicker, DragBox, index as IconFont, Index as Input, WInputNumber as InputNumber, LineEcharts, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, NtTable, Index$8 as Number, NumericInput, Index$3 as Radio, Select, Index$b as Swiper, WSwitch as Switch, index$3 as TabelCard, index$1 as Table, Index$7 as TreeSelect, Upload, index$6 as Video, index$5 as VideoPlayer, Index$6 as WDatePicker, WForm$1 as WForm, WaterLevelCharts, WebsocketHeart, useEventEmitter, create as whox, wmox };
|
8493
|
+
export { Index$a as AutoScroll, Index$c as Breadcrumb, WButton as Button, index$4 as Calendar, index$2 as Card, WCascader as Cascader, Index$4 as Checkbox, Index$9 as CountUp, Index$2 as DatePicker, DragBox, index as IconFont, Index as Input, WInputNumber as InputNumber, LineEcharts, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, index$7 as NtTable, Index$8 as Number, NumericInput, Index$3 as Radio, Select, Index$b as Swiper, WSwitch as Switch, index$3 as TabelCard, index$1 as Table, Index$7 as TreeSelect, Upload, index$6 as Video, index$5 as VideoPlayer, Index$6 as WDatePicker, WForm$1 as WForm, WaterLevelCharts, WebsocketHeart, useEventEmitter, create as whox, wmox };
|
package/dist/index.js
CHANGED
@@ -1598,7 +1598,11 @@ var WSelect = function WSelect(props) {
|
|
1598
1598
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread2({
|
1599
1599
|
showSearch: true,
|
1600
1600
|
filterOption: function filterOption(input, option) {
|
1601
|
-
|
1601
|
+
var _ref3;
|
1602
|
+
|
1603
|
+
var children = option.children,
|
1604
|
+
label = option.label;
|
1605
|
+
return ((_ref3 = children || label) === null || _ref3 === void 0 ? void 0 : _ref3.toLowerCase().indexOf(input === null || input === void 0 ? void 0 : input.toLowerCase())) >= 0;
|
1602
1606
|
}
|
1603
1607
|
}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
1604
1608
|
};
|
@@ -2745,7 +2749,8 @@ function Table(_ref) {
|
|
2745
2749
|
tableList = _ref.dataSource,
|
2746
2750
|
request = _ref.request,
|
2747
2751
|
onLoad = _ref.onLoad,
|
2748
|
-
params = _ref.params,
|
2752
|
+
_ref$params = _ref.params,
|
2753
|
+
params = _ref$params === void 0 ? {} : _ref$params,
|
2749
2754
|
onSubmit = _ref.onSubmit,
|
2750
2755
|
_ref$rowKey = _ref.rowKey,
|
2751
2756
|
rowKey = _ref$rowKey === void 0 ? 'key' : _ref$rowKey,
|
@@ -6700,7 +6705,7 @@ function Xgplay(_ref, fRef) {
|
|
6700
6705
|
setRef(null);
|
6701
6706
|
playerRef.current = null;
|
6702
6707
|
};
|
6703
|
-
}, []);
|
6708
|
+
}, [type]);
|
6704
6709
|
React.useImperativeHandle(fRef, function () {
|
6705
6710
|
return {
|
6706
6711
|
player: playerRef.current
|
@@ -7182,6 +7187,7 @@ function FrameBox$1(_ref) {
|
|
7182
7187
|
}
|
7183
7188
|
|
7184
7189
|
var _excluded$n = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
|
7190
|
+
|
7185
7191
|
function NtTable(_ref) {
|
7186
7192
|
var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
|
7187
7193
|
|
@@ -7189,7 +7195,8 @@ function NtTable(_ref) {
|
|
7189
7195
|
tableList = _ref.dataSource,
|
7190
7196
|
request = _ref.request,
|
7191
7197
|
onLoad = _ref.onLoad,
|
7192
|
-
params = _ref.params,
|
7198
|
+
_ref$params = _ref.params,
|
7199
|
+
params = _ref$params === void 0 ? {} : _ref$params,
|
7193
7200
|
onSubmit = _ref.onSubmit,
|
7194
7201
|
_ref$rowKey = _ref.rowKey,
|
7195
7202
|
rowKey = _ref$rowKey === void 0 ? 'key' : _ref$rowKey,
|
@@ -7596,12 +7603,14 @@ function NtTable(_ref) {
|
|
7596
7603
|
case 7:
|
7597
7604
|
res = _context.sent;
|
7598
7605
|
setLoading(false);
|
7599
|
-
onLoad && onLoad(res.data);
|
7600
|
-
setDataSource(res.data);
|
7601
|
-
setTotal(res.total || 0);
|
7606
|
+
onLoad && onLoad(res === null || res === void 0 ? void 0 : res.data, res);
|
7607
|
+
setDataSource((res === null || res === void 0 ? void 0 : res.data) || []);
|
7608
|
+
setTotal((res === null || res === void 0 ? void 0 : res.total) || 0);
|
7602
7609
|
setpaginationParams(function (c) {
|
7610
|
+
var _res$data;
|
7611
|
+
|
7603
7612
|
return _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
|
7604
|
-
total: res.total || res.data.length
|
7613
|
+
total: (res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) || 0
|
7605
7614
|
}, pagination), requestParams);
|
7606
7615
|
});
|
7607
7616
|
_context.next = 16;
|
@@ -7609,13 +7618,15 @@ function NtTable(_ref) {
|
|
7609
7618
|
|
7610
7619
|
case 15:
|
7611
7620
|
setpaginationParams(function (c) {
|
7621
|
+
var _tableList$slice;
|
7622
|
+
|
7612
7623
|
var obj = _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
|
7613
|
-
total: tableList
|
7624
|
+
total: (tableList === null || tableList === void 0 ? void 0 : tableList.length) || 0
|
7614
7625
|
}, pagination), pageParams);
|
7615
7626
|
|
7616
7627
|
var current = obj.current,
|
7617
7628
|
pageSize = obj.pageSize;
|
7618
|
-
setDataSource(tableList ? tableList.slice((current - 1) * pageSize, current * pageSize)
|
7629
|
+
setDataSource((tableList === null || tableList === void 0 ? void 0 : (_tableList$slice = tableList.slice) === null || _tableList$slice === void 0 ? void 0 : _tableList$slice.call(tableList, (current - 1) * pageSize, current * pageSize)) || []);
|
7619
7630
|
return obj;
|
7620
7631
|
});
|
7621
7632
|
|
@@ -7626,7 +7637,7 @@ function NtTable(_ref) {
|
|
7626
7637
|
}
|
7627
7638
|
}, _callee);
|
7628
7639
|
}))();
|
7629
|
-
}, [params, pageParams, pagination, tableList, formSearch, columns]);
|
7640
|
+
}, [JSON.stringify(params), JSON.stringify(pageParams), JSON.stringify(pagination), JSON.stringify(tableList), formSearch, JSON.stringify(columns)]);
|
7630
7641
|
|
7631
7642
|
var onFormSubmit = function onFormSubmit(values) {
|
7632
7643
|
onSubmit && onSubmit(values);
|
@@ -7743,9 +7754,11 @@ function NtTable(_ref) {
|
|
7743
7754
|
}
|
7744
7755
|
}, paginationParams)));
|
7745
7756
|
}
|
7757
|
+
|
7746
7758
|
NtTable.defaultProps = {
|
7747
7759
|
rowKey: 'key'
|
7748
7760
|
};
|
7761
|
+
var index$7 = /*#__PURE__*/React.memo(NtTable);
|
7749
7762
|
|
7750
7763
|
/*
|
7751
7764
|
* @Author: lijin
|
@@ -8559,7 +8572,7 @@ exports.LineEcharts = LineEcharts;
|
|
8559
8572
|
exports.Modal = Modal;
|
8560
8573
|
exports.ModalForm = ModalForm$1;
|
8561
8574
|
exports.ModalTips = Modal$1;
|
8562
|
-
exports.NtTable =
|
8575
|
+
exports.NtTable = index$7;
|
8563
8576
|
exports.Number = Index$8;
|
8564
8577
|
exports.NumericInput = NumericInput;
|
8565
8578
|
exports.Radio = Index$3;
|
package/package.json
CHANGED
@@ -1,92 +1,92 @@
|
|
1
|
-
{
|
2
|
-
"private": false,
|
3
|
-
"name": "wargerm",
|
4
|
-
"version": "0.6.
|
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": "^2.79.0",
|
50
|
-
"animate.css": "^4.1.1",
|
51
|
-
"echarts": "^5.2.2",
|
52
|
-
"echarts-for-react": "^3.0.2",
|
53
|
-
"lodash-es": "^4.17.21",
|
54
|
-
"moment": "^2.29.4",
|
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": "^4.16.13",
|
82
|
-
"babel-plugin-import": "^1.13.3",
|
83
|
-
"classnames": "^2.3.1",
|
84
|
-
"dumi": "^1.1.31",
|
85
|
-
"father-build": "^1.19.1",
|
86
|
-
"gh-pages": "^3.0.0",
|
87
|
-
"lint-staged": "^10.0.7",
|
88
|
-
"prettier": "^1.19.1",
|
89
|
-
"react": "^16.12.0",
|
90
|
-
"yorkie": "^2.0.0"
|
91
|
-
}
|
92
|
-
}
|
1
|
+
{
|
2
|
+
"private": false,
|
3
|
+
"name": "wargerm",
|
4
|
+
"version": "0.6.11",
|
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": "^2.79.0",
|
50
|
+
"animate.css": "^4.1.1",
|
51
|
+
"echarts": "^5.2.2",
|
52
|
+
"echarts-for-react": "^3.0.2",
|
53
|
+
"lodash-es": "^4.17.21",
|
54
|
+
"moment": "^2.29.4",
|
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": "^4.16.13",
|
82
|
+
"babel-plugin-import": "^1.13.3",
|
83
|
+
"classnames": "^2.3.1",
|
84
|
+
"dumi": "^1.1.31",
|
85
|
+
"father-build": "^1.19.1",
|
86
|
+
"gh-pages": "^3.0.0",
|
87
|
+
"lint-staged": "^10.0.7",
|
88
|
+
"prettier": "^1.19.1",
|
89
|
+
"react": "^16.12.0",
|
90
|
+
"yorkie": "^2.0.0"
|
91
|
+
}
|
92
|
+
}
|