wargerm 0.6.10 → 0.6.12

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.
@@ -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
- export default NtTable;
97
+ declare const _default: React.MemoExoticComponent<typeof NtTable>;
98
+ export default _default;
@@ -9,6 +9,7 @@ declare type propsType = {
9
9
  layoutIndex?: number;
10
10
  config?: Object;
11
11
  url?: string[];
12
+ onDoubleClickCapture?: any;
12
13
  };
13
14
  declare const _default: React.ForwardRefExoticComponent<propsType & React.RefAttributes<unknown>>;
14
15
  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
  }
@@ -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
@@ -2684,7 +2684,8 @@ function Table(_ref) {
2684
2684
  tableList = _ref.dataSource,
2685
2685
  request = _ref.request,
2686
2686
  onLoad = _ref.onLoad,
2687
- params = _ref.params,
2687
+ _ref$params = _ref.params,
2688
+ params = _ref$params === void 0 ? {} : _ref$params,
2688
2689
  onSubmit = _ref.onSubmit,
2689
2690
  _ref$rowKey = _ref.rowKey,
2690
2691
  rowKey = _ref$rowKey === void 0 ? 'key' : _ref$rowKey,
@@ -6628,7 +6629,6 @@ function Xgplay(_ref, fRef) {
6628
6629
  }
6629
6630
  }
6630
6631
 
6631
- console.log('playerRef.current', playerRef.current);
6632
6632
  return function () {
6633
6633
  var _playerRef$current, _playerRef$current2, _playerRef$current2$h, _playerRef$current3, _playerRef$current3$f, _playerRef$current4;
6634
6634
 
@@ -6681,6 +6681,7 @@ function VideoPlayer(_ref, ref) {
6681
6681
  _ref$config = _ref.config,
6682
6682
  config = _ref$config === void 0 ? {} : _ref$config,
6683
6683
  layoutIndex = _ref.layoutIndex,
6684
+ _onDoubleClickCapture = _ref.onDoubleClickCapture,
6684
6685
  _ref$url = _ref.url,
6685
6686
  url = _ref$url === void 0 ? [] : _ref$url,
6686
6687
  _ref$layouts = _ref.layouts,
@@ -6752,9 +6753,12 @@ function VideoPlayer(_ref, ref) {
6752
6753
  return arr.map(function (item, index) {
6753
6754
  return /*#__PURE__*/React.createElement("div", {
6754
6755
  key: index,
6755
- className: "camera ".concat(currentPlayerIndex == index ? index !== 0 ? 'activeCamera' : 'noneborder' : ''),
6756
+ className: "camera ".concat(currentPlayerIndex == index && arr.length > 1 ? 'activeCamera' : 'noneborder'),
6756
6757
  onClickCapture: function onClickCapture() {
6757
6758
  setCurrentPlayerIndex(index);
6759
+ },
6760
+ onDoubleClickCapture: function onDoubleClickCapture() {
6761
+ _onDoubleClickCapture && _onDoubleClickCapture(index, !document.fullscreenElement);
6758
6762
  }
6759
6763
  }, urls[index] ? /*#__PURE__*/React.createElement(Xgplay$1, {
6760
6764
  setRef: function setRef(ref) {
@@ -6810,6 +6814,15 @@ function VideoPlayer(_ref, ref) {
6810
6814
 
6811
6815
  setUrls(function (urls) {
6812
6816
  urls[currentPlayerIndex] = url;
6817
+ setCurrentPlayerIndex(function (pre) {
6818
+ pre++;
6819
+
6820
+ if (pre == allLayouts[currentLayoutIndex || 0].span) {
6821
+ return 0;
6822
+ }
6823
+
6824
+ return pre;
6825
+ });
6813
6826
  return _toConsumableArray(urls);
6814
6827
  });
6815
6828
  };
@@ -6837,7 +6850,7 @@ function VideoPlayer(_ref, ref) {
6837
6850
  key: index,
6838
6851
  className: "btnbox",
6839
6852
  onClick: function onClick() {
6840
- var playerIndex = allLayouts[index || 0].span > url.length ? url.length - 1 >= 0 ? url.length : 0 : allLayouts[index || 0].span - 1;
6853
+ var playerIndex = allLayouts[index || 0].span > urls.length ? urls.length - 1 >= 0 ? urls.length : 0 : allLayouts[index || 0].span - 1;
6841
6854
  setCurrentPlayerIndex(playerIndex);
6842
6855
  setCurrentLayoutIndex(index);
6843
6856
  }
@@ -7121,6 +7134,7 @@ function FrameBox$1(_ref) {
7121
7134
  }
7122
7135
 
7123
7136
  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"];
7137
+
7124
7138
  function NtTable(_ref) {
7125
7139
  var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
7126
7140
 
@@ -7128,7 +7142,8 @@ function NtTable(_ref) {
7128
7142
  tableList = _ref.dataSource,
7129
7143
  request = _ref.request,
7130
7144
  onLoad = _ref.onLoad,
7131
- params = _ref.params,
7145
+ _ref$params = _ref.params,
7146
+ params = _ref$params === void 0 ? {} : _ref$params,
7132
7147
  onSubmit = _ref.onSubmit,
7133
7148
  _ref$rowKey = _ref.rowKey,
7134
7149
  rowKey = _ref$rowKey === void 0 ? 'key' : _ref$rowKey,
@@ -7535,12 +7550,14 @@ function NtTable(_ref) {
7535
7550
  case 7:
7536
7551
  res = _context.sent;
7537
7552
  setLoading(false);
7538
- onLoad && onLoad(res.data);
7539
- setDataSource(res.data);
7540
- setTotal(res.total || 0);
7553
+ onLoad && onLoad(res === null || res === void 0 ? void 0 : res.data, res);
7554
+ setDataSource((res === null || res === void 0 ? void 0 : res.data) || []);
7555
+ setTotal((res === null || res === void 0 ? void 0 : res.total) || 0);
7541
7556
  setpaginationParams(function (c) {
7557
+ var _res$data;
7558
+
7542
7559
  return _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
7543
- total: res.total || res.data.length
7560
+ 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
7544
7561
  }, pagination), requestParams);
7545
7562
  });
7546
7563
  _context.next = 16;
@@ -7548,13 +7565,15 @@ function NtTable(_ref) {
7548
7565
 
7549
7566
  case 15:
7550
7567
  setpaginationParams(function (c) {
7568
+ var _tableList$slice;
7569
+
7551
7570
  var obj = _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
7552
- total: tableList && tableList.length || 0
7571
+ total: (tableList === null || tableList === void 0 ? void 0 : tableList.length) || 0
7553
7572
  }, pagination), pageParams);
7554
7573
 
7555
7574
  var current = obj.current,
7556
7575
  pageSize = obj.pageSize;
7557
- setDataSource(tableList ? tableList.slice((current - 1) * pageSize, current * pageSize) : []);
7576
+ 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)) || []);
7558
7577
  return obj;
7559
7578
  });
7560
7579
 
@@ -7565,7 +7584,7 @@ function NtTable(_ref) {
7565
7584
  }
7566
7585
  }, _callee);
7567
7586
  }))();
7568
- }, [params, pageParams, pagination, tableList, formSearch, columns]);
7587
+ }, [JSON.stringify(params), JSON.stringify(pageParams), JSON.stringify(pagination), JSON.stringify(tableList), formSearch, JSON.stringify(columns)]);
7569
7588
 
7570
7589
  var onFormSubmit = function onFormSubmit(values) {
7571
7590
  onSubmit && onSubmit(values);
@@ -7682,9 +7701,11 @@ function NtTable(_ref) {
7682
7701
  }
7683
7702
  }, paginationParams)));
7684
7703
  }
7704
+
7685
7705
  NtTable.defaultProps = {
7686
7706
  rowKey: 'key'
7687
7707
  };
7708
+ var index$7 = /*#__PURE__*/memo(NtTable);
7688
7709
 
7689
7710
  /*
7690
7711
  * @Author: lijin
@@ -8481,4 +8502,4 @@ if (REACT_APP_ENV == 'development') {
8481
8502
  document.documentElement.setAttribute(COLOR_ATTR_NAME, 'nt');
8482
8503
  }
8483
8504
 
8484
- 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 };
8505
+ 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
@@ -2749,7 +2749,8 @@ function Table(_ref) {
2749
2749
  tableList = _ref.dataSource,
2750
2750
  request = _ref.request,
2751
2751
  onLoad = _ref.onLoad,
2752
- params = _ref.params,
2752
+ _ref$params = _ref.params,
2753
+ params = _ref$params === void 0 ? {} : _ref$params,
2753
2754
  onSubmit = _ref.onSubmit,
2754
2755
  _ref$rowKey = _ref.rowKey,
2755
2756
  rowKey = _ref$rowKey === void 0 ? 'key' : _ref$rowKey,
@@ -6693,7 +6694,6 @@ function Xgplay(_ref, fRef) {
6693
6694
  }
6694
6695
  }
6695
6696
 
6696
- console.log('playerRef.current', playerRef.current);
6697
6697
  return function () {
6698
6698
  var _playerRef$current, _playerRef$current2, _playerRef$current2$h, _playerRef$current3, _playerRef$current3$f, _playerRef$current4;
6699
6699
 
@@ -6746,6 +6746,7 @@ function VideoPlayer(_ref, ref) {
6746
6746
  _ref$config = _ref.config,
6747
6747
  config = _ref$config === void 0 ? {} : _ref$config,
6748
6748
  layoutIndex = _ref.layoutIndex,
6749
+ _onDoubleClickCapture = _ref.onDoubleClickCapture,
6749
6750
  _ref$url = _ref.url,
6750
6751
  url = _ref$url === void 0 ? [] : _ref$url,
6751
6752
  _ref$layouts = _ref.layouts,
@@ -6817,9 +6818,12 @@ function VideoPlayer(_ref, ref) {
6817
6818
  return arr.map(function (item, index) {
6818
6819
  return /*#__PURE__*/React__default['default'].createElement("div", {
6819
6820
  key: index,
6820
- className: "camera ".concat(currentPlayerIndex == index ? index !== 0 ? 'activeCamera' : 'noneborder' : ''),
6821
+ className: "camera ".concat(currentPlayerIndex == index && arr.length > 1 ? 'activeCamera' : 'noneborder'),
6821
6822
  onClickCapture: function onClickCapture() {
6822
6823
  setCurrentPlayerIndex(index);
6824
+ },
6825
+ onDoubleClickCapture: function onDoubleClickCapture() {
6826
+ _onDoubleClickCapture && _onDoubleClickCapture(index, !document.fullscreenElement);
6823
6827
  }
6824
6828
  }, urls[index] ? /*#__PURE__*/React__default['default'].createElement(Xgplay$1, {
6825
6829
  setRef: function setRef(ref) {
@@ -6875,6 +6879,15 @@ function VideoPlayer(_ref, ref) {
6875
6879
 
6876
6880
  setUrls(function (urls) {
6877
6881
  urls[currentPlayerIndex] = url;
6882
+ setCurrentPlayerIndex(function (pre) {
6883
+ pre++;
6884
+
6885
+ if (pre == allLayouts[currentLayoutIndex || 0].span) {
6886
+ return 0;
6887
+ }
6888
+
6889
+ return pre;
6890
+ });
6878
6891
  return _toConsumableArray(urls);
6879
6892
  });
6880
6893
  };
@@ -6902,7 +6915,7 @@ function VideoPlayer(_ref, ref) {
6902
6915
  key: index,
6903
6916
  className: "btnbox",
6904
6917
  onClick: function onClick() {
6905
- var playerIndex = allLayouts[index || 0].span > url.length ? url.length - 1 >= 0 ? url.length : 0 : allLayouts[index || 0].span - 1;
6918
+ var playerIndex = allLayouts[index || 0].span > urls.length ? urls.length - 1 >= 0 ? urls.length : 0 : allLayouts[index || 0].span - 1;
6906
6919
  setCurrentPlayerIndex(playerIndex);
6907
6920
  setCurrentLayoutIndex(index);
6908
6921
  }
@@ -7186,6 +7199,7 @@ function FrameBox$1(_ref) {
7186
7199
  }
7187
7200
 
7188
7201
  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"];
7202
+
7189
7203
  function NtTable(_ref) {
7190
7204
  var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
7191
7205
 
@@ -7193,7 +7207,8 @@ function NtTable(_ref) {
7193
7207
  tableList = _ref.dataSource,
7194
7208
  request = _ref.request,
7195
7209
  onLoad = _ref.onLoad,
7196
- params = _ref.params,
7210
+ _ref$params = _ref.params,
7211
+ params = _ref$params === void 0 ? {} : _ref$params,
7197
7212
  onSubmit = _ref.onSubmit,
7198
7213
  _ref$rowKey = _ref.rowKey,
7199
7214
  rowKey = _ref$rowKey === void 0 ? 'key' : _ref$rowKey,
@@ -7600,12 +7615,14 @@ function NtTable(_ref) {
7600
7615
  case 7:
7601
7616
  res = _context.sent;
7602
7617
  setLoading(false);
7603
- onLoad && onLoad(res.data);
7604
- setDataSource(res.data);
7605
- setTotal(res.total || 0);
7618
+ onLoad && onLoad(res === null || res === void 0 ? void 0 : res.data, res);
7619
+ setDataSource((res === null || res === void 0 ? void 0 : res.data) || []);
7620
+ setTotal((res === null || res === void 0 ? void 0 : res.total) || 0);
7606
7621
  setpaginationParams(function (c) {
7622
+ var _res$data;
7623
+
7607
7624
  return _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
7608
- total: res.total || res.data.length
7625
+ 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
7609
7626
  }, pagination), requestParams);
7610
7627
  });
7611
7628
  _context.next = 16;
@@ -7613,13 +7630,15 @@ function NtTable(_ref) {
7613
7630
 
7614
7631
  case 15:
7615
7632
  setpaginationParams(function (c) {
7633
+ var _tableList$slice;
7634
+
7616
7635
  var obj = _objectSpread2(_objectSpread2(_objectSpread2({}, c), {}, {
7617
- total: tableList && tableList.length || 0
7636
+ total: (tableList === null || tableList === void 0 ? void 0 : tableList.length) || 0
7618
7637
  }, pagination), pageParams);
7619
7638
 
7620
7639
  var current = obj.current,
7621
7640
  pageSize = obj.pageSize;
7622
- setDataSource(tableList ? tableList.slice((current - 1) * pageSize, current * pageSize) : []);
7641
+ 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)) || []);
7623
7642
  return obj;
7624
7643
  });
7625
7644
 
@@ -7630,7 +7649,7 @@ function NtTable(_ref) {
7630
7649
  }
7631
7650
  }, _callee);
7632
7651
  }))();
7633
- }, [params, pageParams, pagination, tableList, formSearch, columns]);
7652
+ }, [JSON.stringify(params), JSON.stringify(pageParams), JSON.stringify(pagination), JSON.stringify(tableList), formSearch, JSON.stringify(columns)]);
7634
7653
 
7635
7654
  var onFormSubmit = function onFormSubmit(values) {
7636
7655
  onSubmit && onSubmit(values);
@@ -7747,9 +7766,11 @@ function NtTable(_ref) {
7747
7766
  }
7748
7767
  }, paginationParams)));
7749
7768
  }
7769
+
7750
7770
  NtTable.defaultProps = {
7751
7771
  rowKey: 'key'
7752
7772
  };
7773
+ var index$7 = /*#__PURE__*/React.memo(NtTable);
7753
7774
 
7754
7775
  /*
7755
7776
  * @Author: lijin
@@ -8563,7 +8584,7 @@ exports.LineEcharts = LineEcharts;
8563
8584
  exports.Modal = Modal;
8564
8585
  exports.ModalForm = ModalForm$1;
8565
8586
  exports.ModalTips = Modal$1;
8566
- exports.NtTable = NtTable;
8587
+ exports.NtTable = index$7;
8567
8588
  exports.Number = Index$8;
8568
8589
  exports.NumericInput = NumericInput;
8569
8590
  exports.Radio = Index$3;
package/package.json CHANGED
@@ -1,92 +1,92 @@
1
- {
2
- "private": false,
3
- "name": "wargerm",
4
- "version": "0.6.10",
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.12",
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
+ }