wargerm 0.6.15 → 0.6.16

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.
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
+ export default _default;
package/dist/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export { default as Table } from './components/Table';
15
15
  export { default as Checkbox } from './components/Checkbox';
16
16
  export { default as Radio } from './components/Radio';
17
17
  export { default as Select } from './components/Select';
18
+ export { default as RequestRenderDom } from './components/RequestRenderDom';
18
19
  export { default as DatePicker } from './components/DatePicker';
19
20
  export { default as WDatePicker } from './components/WDatePicker';
20
21
  export { default as Switch } from './components/Switch';
package/dist/index.esm.js CHANGED
@@ -4071,6 +4071,7 @@ var WForm = function WForm(props, ref) {
4071
4071
  form: form,
4072
4072
  columnsFields: columnsFields,
4073
4073
  handleSubmit: form.submit,
4074
+ handleSearch: handleSearch,
4074
4075
  handleRest: handleRest,
4075
4076
  resetFields: handleRest,
4076
4077
  setFieldsValue: setFieldsValue,
@@ -4722,7 +4723,85 @@ Table.defaultProps = {
4722
4723
  };
4723
4724
  var index$1 = /*#__PURE__*/memo(Table);
4724
4725
 
4725
- var _excluded$b = ["height", "width", "count", "style", "numberStyle"],
4726
+ var _excluded$b = ["value", "renderDom", "onLoad", "params", "onChange", "request"];
4727
+
4728
+ function Index$8(props, ref) {
4729
+ var value = props.value,
4730
+ renderDom = props.renderDom,
4731
+ onLoad = props.onLoad,
4732
+ params = props.params,
4733
+ onChange = props.onChange,
4734
+ request = props.request,
4735
+ rest = _objectWithoutProperties(props, _excluded$b);
4736
+
4737
+ var _useState = useState(''),
4738
+ _useState2 = _slicedToArray(_useState, 2),
4739
+ areaValue = _useState2[0],
4740
+ setAreaValue = _useState2[1];
4741
+
4742
+ var _useState3 = useState(null),
4743
+ _useState4 = _slicedToArray(_useState3, 2),
4744
+ resList = _useState4[0],
4745
+ setResList = _useState4[1];
4746
+
4747
+ useEffect(function () {
4748
+ setAreaValue(value);
4749
+ }, [value]);
4750
+ useEffect(function () {
4751
+ var isUnmount = false;
4752
+
4753
+ _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
4754
+ var res;
4755
+ return regeneratorRuntime.wrap(function _callee$(_context) {
4756
+ while (1) {
4757
+ switch (_context.prev = _context.next) {
4758
+ case 0:
4759
+ if (!request) {
4760
+ _context.next = 8;
4761
+ break;
4762
+ }
4763
+
4764
+ _context.next = 3;
4765
+ return request();
4766
+
4767
+ case 3:
4768
+ res = _context.sent;
4769
+
4770
+ if (!isUnmount) {
4771
+ _context.next = 6;
4772
+ break;
4773
+ }
4774
+
4775
+ return _context.abrupt("return");
4776
+
4777
+ case 6:
4778
+ setResList(res);
4779
+ onLoad && onLoad(res);
4780
+
4781
+ case 8:
4782
+ case "end":
4783
+ return _context.stop();
4784
+ }
4785
+ }
4786
+ }, _callee);
4787
+ }))();
4788
+
4789
+ return function () {
4790
+ isUnmount = true;
4791
+ };
4792
+ }, [JSON.stringify(params || {})]);
4793
+ useImperativeHandle(ref, function () {
4794
+ return {
4795
+ areaValue: areaValue,
4796
+ resList: resList
4797
+ };
4798
+ });
4799
+ return /*#__PURE__*/React.createElement("div", _objectSpread2({}, rest), renderDom(resList));
4800
+ }
4801
+
4802
+ var index$2 = /*#__PURE__*/React.forwardRef(Index$8);
4803
+
4804
+ var _excluded$c = ["height", "width", "count", "style", "numberStyle"],
4726
4805
  _excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
4727
4806
 
4728
4807
  var Number = function Number(_ref) {
@@ -4732,7 +4811,7 @@ var Number = function Number(_ref) {
4732
4811
  count = _ref$count === void 0 ? 0 : _ref$count,
4733
4812
  style = _ref.style,
4734
4813
  numberStyle = _ref.numberStyle,
4735
- props = _objectWithoutProperties(_ref, _excluded$b);
4814
+ props = _objectWithoutProperties(_ref, _excluded$c);
4736
4815
 
4737
4816
  // 上次的值
4738
4817
  var _useState = useState(0),
@@ -4852,7 +4931,7 @@ Number.defaultProps = {
4852
4931
  height: 40
4853
4932
  };
4854
4933
 
4855
- var Index$8 = function Index(props) {
4934
+ var Index$9 = function Index(props) {
4856
4935
  var count = props.count,
4857
4936
  _props$numberCount = props.numberCount,
4858
4937
  numberCount = _props$numberCount === void 0 ? 5 : _props$numberCount,
@@ -4896,13 +4975,13 @@ var Index$8 = function Index(props) {
4896
4975
  }));
4897
4976
  };
4898
4977
 
4899
- var _excluded$c = ["duration", "className"];
4978
+ var _excluded$d = ["duration", "className"];
4900
4979
 
4901
- var Index$9 = function Index(props) {
4980
+ var Index$a = function Index(props) {
4902
4981
  var _props$duration = props.duration,
4903
4982
  duration = _props$duration === void 0 ? 2.75 : _props$duration,
4904
4983
  className = props.className,
4905
- extraProps = _objectWithoutProperties(props, _excluded$c);
4984
+ extraProps = _objectWithoutProperties(props, _excluded$d);
4906
4985
  return /*#__PURE__*/React.createElement(CountUp, _objectSpread2(_objectSpread2({
4907
4986
  duration: duration
4908
4987
  }, extraProps), {}, {
@@ -4910,9 +4989,9 @@ var Index$9 = function Index(props) {
4910
4989
  }));
4911
4990
  };
4912
4991
 
4913
- Index$9.defaultProps = {};
4992
+ Index$a.defaultProps = {};
4914
4993
 
4915
- var _excluded$d = ["list", "render", "none", "partSize"];
4994
+ var _excluded$e = ["list", "render", "none", "partSize"];
4916
4995
 
4917
4996
  function AutoScroll(props) {
4918
4997
  var inner1 = useRef();
@@ -4991,13 +5070,13 @@ function AutoScroll(props) {
4991
5070
  }));
4992
5071
  }
4993
5072
 
4994
- var Index$a = function Index(_ref) {
5073
+ var Index$b = function Index(_ref) {
4995
5074
  var list = _ref.list,
4996
5075
  render = _ref.render,
4997
5076
  none = _ref.none,
4998
5077
  _ref$partSize = _ref.partSize,
4999
5078
  partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
5000
- otherProps = _objectWithoutProperties(_ref, _excluded$d);
5079
+ otherProps = _objectWithoutProperties(_ref, _excluded$e);
5001
5080
 
5002
5081
  var _useState = useState([]),
5003
5082
  _useState2 = _slicedToArray(_useState, 2),
@@ -5080,11 +5159,11 @@ var Index$a = function Index(_ref) {
5080
5159
  }, none || '暂无数据');
5081
5160
  };
5082
5161
 
5083
- var _excluded$e = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
5162
+ var _excluded$f = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
5084
5163
 
5085
5164
  SwiperCore.use([Pagination, Navigation, Autoplay, Virtual]);
5086
5165
 
5087
- var Index$b = function Index(props) {
5166
+ var Index$c = function Index(props) {
5088
5167
  var data = props.data,
5089
5168
  _onClick = props.onClick,
5090
5169
  _props$slidesPerView = props.slidesPerView,
@@ -5092,7 +5171,7 @@ var Index$b = function Index(props) {
5092
5171
  rowKey = props.rowKey,
5093
5172
  onSwiperChange = props.onSwiperChange,
5094
5173
  renderItem = props.renderItem,
5095
- extraProps = _objectWithoutProperties(props, _excluded$e);
5174
+ extraProps = _objectWithoutProperties(props, _excluded$f);
5096
5175
 
5097
5176
  var _useState = useState(null),
5098
5177
  _useState2 = _slicedToArray(_useState, 2),
@@ -5147,7 +5226,7 @@ var Index$b = function Index(props) {
5147
5226
  }));
5148
5227
  };
5149
5228
 
5150
- Index$b.defaultProps = {};
5229
+ Index$c.defaultProps = {};
5151
5230
 
5152
5231
  function _extends$1() {
5153
5232
  _extends$1 = Object.assign || function (target) {
@@ -5743,7 +5822,7 @@ function createBrowserHistory(props) {
5743
5822
  return history;
5744
5823
  }
5745
5824
 
5746
- var _excluded$f = ["routes", "className"];
5825
+ var _excluded$g = ["routes", "className"];
5747
5826
  var history = createBrowserHistory();
5748
5827
 
5749
5828
  function itemRender(route, params, routes, paths) {
@@ -5758,10 +5837,10 @@ function itemRender(route, params, routes, paths) {
5758
5837
  }, route.breadcrumbName);
5759
5838
  }
5760
5839
 
5761
- var Index$c = function Index(_ref) {
5840
+ var Index$d = function Index(_ref) {
5762
5841
  var routes = _ref.routes,
5763
5842
  className = _ref.className,
5764
- props = _objectWithoutProperties(_ref, _excluded$f);
5843
+ props = _objectWithoutProperties(_ref, _excluded$g);
5765
5844
 
5766
5845
  return /*#__PURE__*/React.createElement(_Breadcrumb, _objectSpread2({
5767
5846
  className: className || 'default',
@@ -5771,9 +5850,9 @@ var Index$c = function Index(_ref) {
5771
5850
  }, props));
5772
5851
  };
5773
5852
 
5774
- var _excluded$g = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
5853
+ var _excluded$h = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
5775
5854
 
5776
- var Index$d = function Index(_ref, ref) {
5855
+ var Index$e = function Index(_ref, ref) {
5777
5856
  var _classNames, _sliderTabs$component, _sliderTabs$tabs;
5778
5857
 
5779
5858
  var title = _ref.title,
@@ -5782,7 +5861,7 @@ var Index$d = function Index(_ref, ref) {
5782
5861
  headerTail = _ref.headerTail,
5783
5862
  headerCenter = _ref.headerCenter,
5784
5863
  sliderTabs = _ref.sliderTabs,
5785
- props = _objectWithoutProperties(_ref, _excluded$g);
5864
+ props = _objectWithoutProperties(_ref, _excluded$h);
5786
5865
 
5787
5866
  useImperativeHandle(ref, function () {
5788
5867
  return {
@@ -5824,7 +5903,7 @@ var Index$d = function Index(_ref, ref) {
5824
5903
  }))));
5825
5904
  };
5826
5905
 
5827
- var index$2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Index$d));
5906
+ var index$3 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Index$e));
5828
5907
 
5829
5908
  var controlShow = function controlShow(f1, f2, value, timer) {
5830
5909
  f1(value);
@@ -6026,7 +6105,7 @@ function DialogModel(props, ref) {
6026
6105
 
6027
6106
  var Dialog = /*#__PURE__*/React.forwardRef(DialogModel);
6028
6107
 
6029
- var _excluded$h = ["visible", "width", "closeCb", "onClose", "className", "style"],
6108
+ var _excluded$i = ["visible", "width", "closeCb", "onClose", "className", "style"],
6030
6109
  _excluded2$3 = ["visible"];
6031
6110
 
6032
6111
  var Modal = /*#__PURE__*/function (_React$PureComponent) {
@@ -6144,7 +6223,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
6144
6223
  onClose = _this$props4.onClose,
6145
6224
  className = _this$props4.className,
6146
6225
  style = _this$props4.style,
6147
- other = _objectWithoutProperties(_this$props4, _excluded$h);
6226
+ other = _objectWithoutProperties(_this$props4, _excluded$i);
6148
6227
 
6149
6228
  return /*#__PURE__*/React.createElement(Dialog, _objectSpread2({
6150
6229
  ref: this.containerRef,
@@ -6327,7 +6406,7 @@ function DialogModel$1(props) {
6327
6406
  return renderChildren;
6328
6407
  }
6329
6408
 
6330
- var _excluded$i = ["visible"];
6409
+ var _excluded$j = ["visible"];
6331
6410
 
6332
6411
  var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
6333
6412
  _inherits(Modal, _React$PureComponent);
@@ -6468,7 +6547,7 @@ Modal$1.show = function (config) {
6468
6547
  manager.setShow = setShow;
6469
6548
 
6470
6549
  var visible = props.visible,
6471
- trueProps = _objectWithoutProperties(props, _excluded$i);
6550
+ trueProps = _objectWithoutProperties(props, _excluded$j);
6472
6551
 
6473
6552
  useEffect(function () {
6474
6553
  manager.mounted = true;
@@ -6668,7 +6747,7 @@ function DragBox(_ref) {
6668
6747
  }, children)) : /*#__PURE__*/React.createElement(React.Fragment, null);
6669
6748
  }
6670
6749
 
6671
- var _excluded$j = ["columns", "extraColumns", "search", "visible", "setVisible", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSolt", "modalFooterSolt", "formProps"];
6750
+ var _excluded$k = ["columns", "extraColumns", "search", "visible", "setVisible", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSolt", "modalFooterSolt", "formProps"];
6672
6751
 
6673
6752
  var ModalForm = function ModalForm(props, ref) {
6674
6753
  var columns = props.columns,
@@ -6688,7 +6767,7 @@ var ModalForm = function ModalForm(props, ref) {
6688
6767
  modalHeaderSolt = props.modalHeaderSolt,
6689
6768
  modalFooterSolt = props.modalFooterSolt,
6690
6769
  formProps = props.formProps,
6691
- extraProps = _objectWithoutProperties(props, _excluded$j);
6770
+ extraProps = _objectWithoutProperties(props, _excluded$k);
6692
6771
 
6693
6772
  var formRef = useRef(null);
6694
6773
 
@@ -6835,7 +6914,7 @@ var ModalForm = function ModalForm(props, ref) {
6835
6914
 
6836
6915
  var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
6837
6916
 
6838
- var _excluded$k = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered"];
6917
+ var _excluded$l = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered"];
6839
6918
 
6840
6919
  var TabelCard = function TabelCard(props, ref) {
6841
6920
  var columns = props.columns,
@@ -6854,7 +6933,7 @@ var TabelCard = function TabelCard(props, ref) {
6854
6933
  optionColumnConfig = props.optionColumnConfig,
6855
6934
  pagination = props.pagination,
6856
6935
  noBordered = props.noBordered,
6857
- extraProps = _objectWithoutProperties(props, _excluded$k);
6936
+ extraProps = _objectWithoutProperties(props, _excluded$l);
6858
6937
 
6859
6938
  var actionRef = useRef();
6860
6939
  var modalFormRef = useRef(null);
@@ -7287,9 +7366,10 @@ var TabelCard = function TabelCard(props, ref) {
7287
7366
  var _searchFormRef$curren, _searchFormRef$curren2;
7288
7367
 
7289
7368
  if ((_searchFormRef$curren = searchFormRef.current) === null || _searchFormRef$curren === void 0 ? void 0 : (_searchFormRef$curren2 = _searchFormRef$curren.form) === null || _searchFormRef$curren2 === void 0 ? void 0 : _searchFormRef$curren2.getFieldsValue) {
7290
- var _searchFormRef$curren3, _searchFormRef$curren4;
7369
+ var _searchFormRef$curren3;
7291
7370
 
7292
- var obj = filterObj((_searchFormRef$curren3 = searchFormRef.current) === null || _searchFormRef$curren3 === void 0 ? void 0 : (_searchFormRef$curren4 = _searchFormRef$curren3.form) === null || _searchFormRef$curren4 === void 0 ? void 0 : _searchFormRef$curren4.getFieldsValue()) || {};
7371
+ var obj = // filterObj(searchFormRef.current?.form?.getFieldsValue()) || {};
7372
+ filterObj((_searchFormRef$curren3 = searchFormRef.current) === null || _searchFormRef$curren3 === void 0 ? void 0 : _searchFormRef$curren3.handleSearch()) || {};
7293
7373
  (columns || []).filter(function (c) {
7294
7374
  return c.notInitialValueInSearch;
7295
7375
  }).forEach(function (item) {
@@ -7514,7 +7594,7 @@ var TabelCard = function TabelCard(props, ref) {
7514
7594
  }, extraProps)));
7515
7595
  };
7516
7596
 
7517
- var index$3 = /*#__PURE__*/React.forwardRef(TabelCard);
7597
+ var index$4 = /*#__PURE__*/React.forwardRef(TabelCard);
7518
7598
 
7519
7599
  var YEAER_MONTH_FORMAT_EN = 'YYYY-MM';
7520
7600
 
@@ -7887,7 +7967,7 @@ function Calendar(_ref, ref) {
7887
7967
  })))));
7888
7968
  }
7889
7969
 
7890
- var index$4 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Calendar));
7970
+ var index$5 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Calendar));
7891
7971
 
7892
7972
  var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
7893
7973
  var _this = this;
@@ -8338,16 +8418,16 @@ function VideoPlayer(_ref, ref) {
8338
8418
  })) : null));
8339
8419
  }
8340
8420
 
8341
- var index$5 = /*#__PURE__*/forwardRef(VideoPlayer);
8421
+ var index$6 = /*#__PURE__*/forwardRef(VideoPlayer);
8342
8422
 
8343
- var _excluded$l = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
8423
+ var _excluded$m = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
8344
8424
 
8345
8425
  var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2]; // 默认记忆提示文字展示时长(s)
8346
8426
 
8347
8427
  var DEFAULT_LAST_PLAY_TIME_DELAY = 5; // 默认音量大小
8348
8428
 
8349
8429
  var DEFAULT_VOLUME = 0.6;
8350
- var index$6 = (function (_ref) {
8430
+ var index$7 = (function (_ref) {
8351
8431
  var id = _ref.id,
8352
8432
  _ref$videoUrls = _ref.videoUrls,
8353
8433
  videoUrls = _ref$videoUrls === void 0 ? [] : _ref$videoUrls,
@@ -8371,7 +8451,7 @@ var index$6 = (function (_ref) {
8371
8451
  enableMemory = _ref$enableMemory === void 0 ? false : _ref$enableMemory,
8372
8452
  _ref$lastPlayTimeHide = _ref.lastPlayTimeHideDelay,
8373
8453
  lastPlayTimeHideDelay = _ref$lastPlayTimeHide === void 0 ? DEFAULT_LAST_PLAY_TIME_DELAY : _ref$lastPlayTimeHide,
8374
- props = _objectWithoutProperties(_ref, _excluded$l);
8454
+ props = _objectWithoutProperties(_ref, _excluded$m);
8375
8455
 
8376
8456
  var player = useRef();
8377
8457
  var currentPlayerIndex = useRef(0); // 内置的 index 状态管理
@@ -8570,7 +8650,7 @@ var index$6 = (function (_ref) {
8570
8650
  });
8571
8651
  });
8572
8652
 
8573
- var _excluded$m = ["className", "frameStyle", "style", "direction", "children"];
8653
+ var _excluded$n = ["className", "frameStyle", "style", "direction", "children"];
8574
8654
  function FrameBox$1(_ref) {
8575
8655
  var _classnames;
8576
8656
 
@@ -8580,7 +8660,7 @@ function FrameBox$1(_ref) {
8580
8660
  _ref$direction = _ref.direction,
8581
8661
  direction = _ref$direction === void 0 ? 'in' : _ref$direction,
8582
8662
  children = _ref.children,
8583
- props = _objectWithoutProperties(_ref, _excluded$m);
8663
+ props = _objectWithoutProperties(_ref, _excluded$n);
8584
8664
 
8585
8665
  return /*#__PURE__*/React.createElement("div", _objectSpread2({
8586
8666
  className: classnames((_classnames = {}, _defineProperty(_classnames, 'frame', true), _defineProperty(_classnames, className || '', true), _classnames)),
@@ -8608,7 +8688,7 @@ function FrameBox$1(_ref) {
8608
8688
  }), children);
8609
8689
  }
8610
8690
 
8611
- 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"];
8691
+ var _excluded$o = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
8612
8692
 
8613
8693
  function NtTable(_ref) {
8614
8694
  var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
@@ -8641,7 +8721,7 @@ function NtTable(_ref) {
8641
8721
  frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
8642
8722
  formRef = _ref.formRef,
8643
8723
  none = _ref.none,
8644
- props = _objectWithoutProperties(_ref, _excluded$n);
8724
+ props = _objectWithoutProperties(_ref, _excluded$o);
8645
8725
 
8646
8726
  var _useState = useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
8647
8727
  _useState2 = _slicedToArray(_useState, 2),
@@ -9180,7 +9260,7 @@ function NtTable(_ref) {
9180
9260
  NtTable.defaultProps = {
9181
9261
  rowKey: 'key'
9182
9262
  };
9183
- var index$7 = /*#__PURE__*/memo(NtTable);
9263
+ var index$8 = /*#__PURE__*/memo(NtTable);
9184
9264
 
9185
9265
  /*
9186
9266
  * @Author: lijin
@@ -9964,7 +10044,7 @@ function WaterLevelCharts(config) {
9964
10044
  /*
9965
10045
  * @Author: lijin
9966
10046
  * @Date: 2021-09-09 11:02:54
9967
- * @LastEditTime: 2022-12-13 19:29:01
10047
+ * @LastEditTime: 2022-12-15 17:52:15
9968
10048
  * @LastEditors: lijin
9969
10049
  * @Description:
9970
10050
  * @FilePath: \wargerm-components\src\index.ts
@@ -9977,4 +10057,4 @@ if (REACT_APP_ENV == 'development') {
9977
10057
  document.documentElement.setAttribute(COLOR_ATTR_NAME, 'nt');
9978
10058
  }
9979
10059
 
9980
- 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, wTracing, create as whox, wmox };
10060
+ export { Index$b as AutoScroll, Index$d as Breadcrumb, WButton as Button, index$5 as Calendar, index$3 as Card, WCascader as Cascader, Index$4 as Checkbox, Index$a 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$8 as NtTable, Index$9 as Number, NumericInput, Index$3 as Radio, index$2 as RequestRenderDom, Select, Index$c as Swiper, WSwitch as Switch, index$4 as TabelCard, index$1 as Table, Index$7 as TreeSelect, Upload, index$7 as Video, index$6 as VideoPlayer, Index$6 as WDatePicker, WForm$1 as WForm, WaterLevelCharts, WebsocketHeart, useEventEmitter, wTracing, create as whox, wmox };
package/dist/index.js CHANGED
@@ -4136,6 +4136,7 @@ var WForm = function WForm(props, ref) {
4136
4136
  form: form,
4137
4137
  columnsFields: columnsFields,
4138
4138
  handleSubmit: form.submit,
4139
+ handleSearch: handleSearch,
4139
4140
  handleRest: handleRest,
4140
4141
  resetFields: handleRest,
4141
4142
  setFieldsValue: setFieldsValue,
@@ -4787,7 +4788,85 @@ Table.defaultProps = {
4787
4788
  };
4788
4789
  var index$1 = /*#__PURE__*/React.memo(Table);
4789
4790
 
4790
- var _excluded$b = ["height", "width", "count", "style", "numberStyle"],
4791
+ var _excluded$b = ["value", "renderDom", "onLoad", "params", "onChange", "request"];
4792
+
4793
+ function Index$8(props, ref) {
4794
+ var value = props.value,
4795
+ renderDom = props.renderDom,
4796
+ onLoad = props.onLoad,
4797
+ params = props.params,
4798
+ onChange = props.onChange,
4799
+ request = props.request,
4800
+ rest = _objectWithoutProperties(props, _excluded$b);
4801
+
4802
+ var _useState = React.useState(''),
4803
+ _useState2 = _slicedToArray(_useState, 2),
4804
+ areaValue = _useState2[0],
4805
+ setAreaValue = _useState2[1];
4806
+
4807
+ var _useState3 = React.useState(null),
4808
+ _useState4 = _slicedToArray(_useState3, 2),
4809
+ resList = _useState4[0],
4810
+ setResList = _useState4[1];
4811
+
4812
+ React.useEffect(function () {
4813
+ setAreaValue(value);
4814
+ }, [value]);
4815
+ React.useEffect(function () {
4816
+ var isUnmount = false;
4817
+
4818
+ _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
4819
+ var res;
4820
+ return regeneratorRuntime.wrap(function _callee$(_context) {
4821
+ while (1) {
4822
+ switch (_context.prev = _context.next) {
4823
+ case 0:
4824
+ if (!request) {
4825
+ _context.next = 8;
4826
+ break;
4827
+ }
4828
+
4829
+ _context.next = 3;
4830
+ return request();
4831
+
4832
+ case 3:
4833
+ res = _context.sent;
4834
+
4835
+ if (!isUnmount) {
4836
+ _context.next = 6;
4837
+ break;
4838
+ }
4839
+
4840
+ return _context.abrupt("return");
4841
+
4842
+ case 6:
4843
+ setResList(res);
4844
+ onLoad && onLoad(res);
4845
+
4846
+ case 8:
4847
+ case "end":
4848
+ return _context.stop();
4849
+ }
4850
+ }
4851
+ }, _callee);
4852
+ }))();
4853
+
4854
+ return function () {
4855
+ isUnmount = true;
4856
+ };
4857
+ }, [JSON.stringify(params || {})]);
4858
+ React.useImperativeHandle(ref, function () {
4859
+ return {
4860
+ areaValue: areaValue,
4861
+ resList: resList
4862
+ };
4863
+ });
4864
+ return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({}, rest), renderDom(resList));
4865
+ }
4866
+
4867
+ var index$2 = /*#__PURE__*/React__default['default'].forwardRef(Index$8);
4868
+
4869
+ var _excluded$c = ["height", "width", "count", "style", "numberStyle"],
4791
4870
  _excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
4792
4871
 
4793
4872
  var Number = function Number(_ref) {
@@ -4797,7 +4876,7 @@ var Number = function Number(_ref) {
4797
4876
  count = _ref$count === void 0 ? 0 : _ref$count,
4798
4877
  style = _ref.style,
4799
4878
  numberStyle = _ref.numberStyle,
4800
- props = _objectWithoutProperties(_ref, _excluded$b);
4879
+ props = _objectWithoutProperties(_ref, _excluded$c);
4801
4880
 
4802
4881
  // 上次的值
4803
4882
  var _useState = React.useState(0),
@@ -4917,7 +4996,7 @@ Number.defaultProps = {
4917
4996
  height: 40
4918
4997
  };
4919
4998
 
4920
- var Index$8 = function Index(props) {
4999
+ var Index$9 = function Index(props) {
4921
5000
  var count = props.count,
4922
5001
  _props$numberCount = props.numberCount,
4923
5002
  numberCount = _props$numberCount === void 0 ? 5 : _props$numberCount,
@@ -4961,13 +5040,13 @@ var Index$8 = function Index(props) {
4961
5040
  }));
4962
5041
  };
4963
5042
 
4964
- var _excluded$c = ["duration", "className"];
5043
+ var _excluded$d = ["duration", "className"];
4965
5044
 
4966
- var Index$9 = function Index(props) {
5045
+ var Index$a = function Index(props) {
4967
5046
  var _props$duration = props.duration,
4968
5047
  duration = _props$duration === void 0 ? 2.75 : _props$duration,
4969
5048
  className = props.className,
4970
- extraProps = _objectWithoutProperties(props, _excluded$c);
5049
+ extraProps = _objectWithoutProperties(props, _excluded$d);
4971
5050
  return /*#__PURE__*/React__default['default'].createElement(CountUp__default['default'], _objectSpread2(_objectSpread2({
4972
5051
  duration: duration
4973
5052
  }, extraProps), {}, {
@@ -4975,9 +5054,9 @@ var Index$9 = function Index(props) {
4975
5054
  }));
4976
5055
  };
4977
5056
 
4978
- Index$9.defaultProps = {};
5057
+ Index$a.defaultProps = {};
4979
5058
 
4980
- var _excluded$d = ["list", "render", "none", "partSize"];
5059
+ var _excluded$e = ["list", "render", "none", "partSize"];
4981
5060
 
4982
5061
  function AutoScroll(props) {
4983
5062
  var inner1 = React.useRef();
@@ -5056,13 +5135,13 @@ function AutoScroll(props) {
5056
5135
  }));
5057
5136
  }
5058
5137
 
5059
- var Index$a = function Index(_ref) {
5138
+ var Index$b = function Index(_ref) {
5060
5139
  var list = _ref.list,
5061
5140
  render = _ref.render,
5062
5141
  none = _ref.none,
5063
5142
  _ref$partSize = _ref.partSize,
5064
5143
  partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
5065
- otherProps = _objectWithoutProperties(_ref, _excluded$d);
5144
+ otherProps = _objectWithoutProperties(_ref, _excluded$e);
5066
5145
 
5067
5146
  var _useState = React.useState([]),
5068
5147
  _useState2 = _slicedToArray(_useState, 2),
@@ -5145,11 +5224,11 @@ var Index$a = function Index(_ref) {
5145
5224
  }, none || '暂无数据');
5146
5225
  };
5147
5226
 
5148
- var _excluded$e = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
5227
+ var _excluded$f = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
5149
5228
 
5150
5229
  SwiperCore__default['default'].use([SwiperCore.Pagination, SwiperCore.Navigation, SwiperCore.Autoplay, SwiperCore.Virtual]);
5151
5230
 
5152
- var Index$b = function Index(props) {
5231
+ var Index$c = function Index(props) {
5153
5232
  var data = props.data,
5154
5233
  _onClick = props.onClick,
5155
5234
  _props$slidesPerView = props.slidesPerView,
@@ -5157,7 +5236,7 @@ var Index$b = function Index(props) {
5157
5236
  rowKey = props.rowKey,
5158
5237
  onSwiperChange = props.onSwiperChange,
5159
5238
  renderItem = props.renderItem,
5160
- extraProps = _objectWithoutProperties(props, _excluded$e);
5239
+ extraProps = _objectWithoutProperties(props, _excluded$f);
5161
5240
 
5162
5241
  var _useState = React.useState(null),
5163
5242
  _useState2 = _slicedToArray(_useState, 2),
@@ -5212,7 +5291,7 @@ var Index$b = function Index(props) {
5212
5291
  }));
5213
5292
  };
5214
5293
 
5215
- Index$b.defaultProps = {};
5294
+ Index$c.defaultProps = {};
5216
5295
 
5217
5296
  function _extends$1() {
5218
5297
  _extends$1 = Object.assign || function (target) {
@@ -5808,7 +5887,7 @@ function createBrowserHistory(props) {
5808
5887
  return history;
5809
5888
  }
5810
5889
 
5811
- var _excluded$f = ["routes", "className"];
5890
+ var _excluded$g = ["routes", "className"];
5812
5891
  var history = createBrowserHistory();
5813
5892
 
5814
5893
  function itemRender(route, params, routes, paths) {
@@ -5823,10 +5902,10 @@ function itemRender(route, params, routes, paths) {
5823
5902
  }, route.breadcrumbName);
5824
5903
  }
5825
5904
 
5826
- var Index$c = function Index(_ref) {
5905
+ var Index$d = function Index(_ref) {
5827
5906
  var routes = _ref.routes,
5828
5907
  className = _ref.className,
5829
- props = _objectWithoutProperties(_ref, _excluded$f);
5908
+ props = _objectWithoutProperties(_ref, _excluded$g);
5830
5909
 
5831
5910
  return /*#__PURE__*/React__default['default'].createElement(_Breadcrumb__default['default'], _objectSpread2({
5832
5911
  className: className || 'default',
@@ -5836,9 +5915,9 @@ var Index$c = function Index(_ref) {
5836
5915
  }, props));
5837
5916
  };
5838
5917
 
5839
- var _excluded$g = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
5918
+ var _excluded$h = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
5840
5919
 
5841
- var Index$d = function Index(_ref, ref) {
5920
+ var Index$e = function Index(_ref, ref) {
5842
5921
  var _classNames, _sliderTabs$component, _sliderTabs$tabs;
5843
5922
 
5844
5923
  var title = _ref.title,
@@ -5847,7 +5926,7 @@ var Index$d = function Index(_ref, ref) {
5847
5926
  headerTail = _ref.headerTail,
5848
5927
  headerCenter = _ref.headerCenter,
5849
5928
  sliderTabs = _ref.sliderTabs,
5850
- props = _objectWithoutProperties(_ref, _excluded$g);
5929
+ props = _objectWithoutProperties(_ref, _excluded$h);
5851
5930
 
5852
5931
  React.useImperativeHandle(ref, function () {
5853
5932
  return {
@@ -5889,7 +5968,7 @@ var Index$d = function Index(_ref, ref) {
5889
5968
  }))));
5890
5969
  };
5891
5970
 
5892
- var index$2 = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Index$d));
5971
+ var index$3 = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Index$e));
5893
5972
 
5894
5973
  var controlShow = function controlShow(f1, f2, value, timer) {
5895
5974
  f1(value);
@@ -6091,7 +6170,7 @@ function DialogModel(props, ref) {
6091
6170
 
6092
6171
  var Dialog = /*#__PURE__*/React__default['default'].forwardRef(DialogModel);
6093
6172
 
6094
- var _excluded$h = ["visible", "width", "closeCb", "onClose", "className", "style"],
6173
+ var _excluded$i = ["visible", "width", "closeCb", "onClose", "className", "style"],
6095
6174
  _excluded2$3 = ["visible"];
6096
6175
 
6097
6176
  var Modal = /*#__PURE__*/function (_React$PureComponent) {
@@ -6209,7 +6288,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
6209
6288
  onClose = _this$props4.onClose,
6210
6289
  className = _this$props4.className,
6211
6290
  style = _this$props4.style,
6212
- other = _objectWithoutProperties(_this$props4, _excluded$h);
6291
+ other = _objectWithoutProperties(_this$props4, _excluded$i);
6213
6292
 
6214
6293
  return /*#__PURE__*/React__default['default'].createElement(Dialog, _objectSpread2({
6215
6294
  ref: this.containerRef,
@@ -6392,7 +6471,7 @@ function DialogModel$1(props) {
6392
6471
  return renderChildren;
6393
6472
  }
6394
6473
 
6395
- var _excluded$i = ["visible"];
6474
+ var _excluded$j = ["visible"];
6396
6475
 
6397
6476
  var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
6398
6477
  _inherits(Modal, _React$PureComponent);
@@ -6533,7 +6612,7 @@ Modal$1.show = function (config) {
6533
6612
  manager.setShow = setShow;
6534
6613
 
6535
6614
  var visible = props.visible,
6536
- trueProps = _objectWithoutProperties(props, _excluded$i);
6615
+ trueProps = _objectWithoutProperties(props, _excluded$j);
6537
6616
 
6538
6617
  React.useEffect(function () {
6539
6618
  manager.mounted = true;
@@ -6733,7 +6812,7 @@ function DragBox(_ref) {
6733
6812
  }, children)) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
6734
6813
  }
6735
6814
 
6736
- var _excluded$j = ["columns", "extraColumns", "search", "visible", "setVisible", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSolt", "modalFooterSolt", "formProps"];
6815
+ var _excluded$k = ["columns", "extraColumns", "search", "visible", "setVisible", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSolt", "modalFooterSolt", "formProps"];
6737
6816
 
6738
6817
  var ModalForm = function ModalForm(props, ref) {
6739
6818
  var columns = props.columns,
@@ -6753,7 +6832,7 @@ var ModalForm = function ModalForm(props, ref) {
6753
6832
  modalHeaderSolt = props.modalHeaderSolt,
6754
6833
  modalFooterSolt = props.modalFooterSolt,
6755
6834
  formProps = props.formProps,
6756
- extraProps = _objectWithoutProperties(props, _excluded$j);
6835
+ extraProps = _objectWithoutProperties(props, _excluded$k);
6757
6836
 
6758
6837
  var formRef = React.useRef(null);
6759
6838
 
@@ -6900,7 +6979,7 @@ var ModalForm = function ModalForm(props, ref) {
6900
6979
 
6901
6980
  var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
6902
6981
 
6903
- var _excluded$k = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered"];
6982
+ var _excluded$l = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered"];
6904
6983
 
6905
6984
  var TabelCard = function TabelCard(props, ref) {
6906
6985
  var columns = props.columns,
@@ -6919,7 +6998,7 @@ var TabelCard = function TabelCard(props, ref) {
6919
6998
  optionColumnConfig = props.optionColumnConfig,
6920
6999
  pagination = props.pagination,
6921
7000
  noBordered = props.noBordered,
6922
- extraProps = _objectWithoutProperties(props, _excluded$k);
7001
+ extraProps = _objectWithoutProperties(props, _excluded$l);
6923
7002
 
6924
7003
  var actionRef = React.useRef();
6925
7004
  var modalFormRef = React.useRef(null);
@@ -7352,9 +7431,10 @@ var TabelCard = function TabelCard(props, ref) {
7352
7431
  var _searchFormRef$curren, _searchFormRef$curren2;
7353
7432
 
7354
7433
  if ((_searchFormRef$curren = searchFormRef.current) === null || _searchFormRef$curren === void 0 ? void 0 : (_searchFormRef$curren2 = _searchFormRef$curren.form) === null || _searchFormRef$curren2 === void 0 ? void 0 : _searchFormRef$curren2.getFieldsValue) {
7355
- var _searchFormRef$curren3, _searchFormRef$curren4;
7434
+ var _searchFormRef$curren3;
7356
7435
 
7357
- var obj = filterObj((_searchFormRef$curren3 = searchFormRef.current) === null || _searchFormRef$curren3 === void 0 ? void 0 : (_searchFormRef$curren4 = _searchFormRef$curren3.form) === null || _searchFormRef$curren4 === void 0 ? void 0 : _searchFormRef$curren4.getFieldsValue()) || {};
7436
+ var obj = // filterObj(searchFormRef.current?.form?.getFieldsValue()) || {};
7437
+ filterObj((_searchFormRef$curren3 = searchFormRef.current) === null || _searchFormRef$curren3 === void 0 ? void 0 : _searchFormRef$curren3.handleSearch()) || {};
7358
7438
  (columns || []).filter(function (c) {
7359
7439
  return c.notInitialValueInSearch;
7360
7440
  }).forEach(function (item) {
@@ -7579,7 +7659,7 @@ var TabelCard = function TabelCard(props, ref) {
7579
7659
  }, extraProps)));
7580
7660
  };
7581
7661
 
7582
- var index$3 = /*#__PURE__*/React__default['default'].forwardRef(TabelCard);
7662
+ var index$4 = /*#__PURE__*/React__default['default'].forwardRef(TabelCard);
7583
7663
 
7584
7664
  var YEAER_MONTH_FORMAT_EN = 'YYYY-MM';
7585
7665
 
@@ -7952,7 +8032,7 @@ function Calendar(_ref, ref) {
7952
8032
  })))));
7953
8033
  }
7954
8034
 
7955
- var index$4 = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Calendar));
8035
+ var index$5 = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Calendar));
7956
8036
 
7957
8037
  var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
7958
8038
  var _this = this;
@@ -8403,16 +8483,16 @@ function VideoPlayer(_ref, ref) {
8403
8483
  })) : null));
8404
8484
  }
8405
8485
 
8406
- var index$5 = /*#__PURE__*/React.forwardRef(VideoPlayer);
8486
+ var index$6 = /*#__PURE__*/React.forwardRef(VideoPlayer);
8407
8487
 
8408
- var _excluded$l = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
8488
+ var _excluded$m = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
8409
8489
 
8410
8490
  var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2]; // 默认记忆提示文字展示时长(s)
8411
8491
 
8412
8492
  var DEFAULT_LAST_PLAY_TIME_DELAY = 5; // 默认音量大小
8413
8493
 
8414
8494
  var DEFAULT_VOLUME = 0.6;
8415
- var index$6 = (function (_ref) {
8495
+ var index$7 = (function (_ref) {
8416
8496
  var id = _ref.id,
8417
8497
  _ref$videoUrls = _ref.videoUrls,
8418
8498
  videoUrls = _ref$videoUrls === void 0 ? [] : _ref$videoUrls,
@@ -8436,7 +8516,7 @@ var index$6 = (function (_ref) {
8436
8516
  enableMemory = _ref$enableMemory === void 0 ? false : _ref$enableMemory,
8437
8517
  _ref$lastPlayTimeHide = _ref.lastPlayTimeHideDelay,
8438
8518
  lastPlayTimeHideDelay = _ref$lastPlayTimeHide === void 0 ? DEFAULT_LAST_PLAY_TIME_DELAY : _ref$lastPlayTimeHide,
8439
- props = _objectWithoutProperties(_ref, _excluded$l);
8519
+ props = _objectWithoutProperties(_ref, _excluded$m);
8440
8520
 
8441
8521
  var player = React.useRef();
8442
8522
  var currentPlayerIndex = React.useRef(0); // 内置的 index 状态管理
@@ -8635,7 +8715,7 @@ var index$6 = (function (_ref) {
8635
8715
  });
8636
8716
  });
8637
8717
 
8638
- var _excluded$m = ["className", "frameStyle", "style", "direction", "children"];
8718
+ var _excluded$n = ["className", "frameStyle", "style", "direction", "children"];
8639
8719
  function FrameBox$1(_ref) {
8640
8720
  var _classnames;
8641
8721
 
@@ -8645,7 +8725,7 @@ function FrameBox$1(_ref) {
8645
8725
  _ref$direction = _ref.direction,
8646
8726
  direction = _ref$direction === void 0 ? 'in' : _ref$direction,
8647
8727
  children = _ref.children,
8648
- props = _objectWithoutProperties(_ref, _excluded$m);
8728
+ props = _objectWithoutProperties(_ref, _excluded$n);
8649
8729
 
8650
8730
  return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({
8651
8731
  className: classnames__default['default']((_classnames = {}, _defineProperty(_classnames, 'frame', true), _defineProperty(_classnames, className || '', true), _classnames)),
@@ -8673,7 +8753,7 @@ function FrameBox$1(_ref) {
8673
8753
  }), children);
8674
8754
  }
8675
8755
 
8676
- 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"];
8756
+ var _excluded$o = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
8677
8757
 
8678
8758
  function NtTable(_ref) {
8679
8759
  var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
@@ -8706,7 +8786,7 @@ function NtTable(_ref) {
8706
8786
  frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
8707
8787
  formRef = _ref.formRef,
8708
8788
  none = _ref.none,
8709
- props = _objectWithoutProperties(_ref, _excluded$n);
8789
+ props = _objectWithoutProperties(_ref, _excluded$o);
8710
8790
 
8711
8791
  var _useState = React.useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
8712
8792
  _useState2 = _slicedToArray(_useState, 2),
@@ -9245,7 +9325,7 @@ function NtTable(_ref) {
9245
9325
  NtTable.defaultProps = {
9246
9326
  rowKey: 'key'
9247
9327
  };
9248
- var index$7 = /*#__PURE__*/React.memo(NtTable);
9328
+ var index$8 = /*#__PURE__*/React.memo(NtTable);
9249
9329
 
9250
9330
  /*
9251
9331
  * @Author: lijin
@@ -10029,7 +10109,7 @@ function WaterLevelCharts(config) {
10029
10109
  /*
10030
10110
  * @Author: lijin
10031
10111
  * @Date: 2021-09-09 11:02:54
10032
- * @LastEditTime: 2022-12-13 19:29:01
10112
+ * @LastEditTime: 2022-12-15 17:52:15
10033
10113
  * @LastEditors: lijin
10034
10114
  * @Description:
10035
10115
  * @FilePath: \wargerm-components\src\index.ts
@@ -10042,14 +10122,14 @@ if (REACT_APP_ENV == 'development') {
10042
10122
  document.documentElement.setAttribute(COLOR_ATTR_NAME, 'nt');
10043
10123
  }
10044
10124
 
10045
- exports.AutoScroll = Index$a;
10046
- exports.Breadcrumb = Index$c;
10125
+ exports.AutoScroll = Index$b;
10126
+ exports.Breadcrumb = Index$d;
10047
10127
  exports.Button = WButton;
10048
- exports.Calendar = index$4;
10049
- exports.Card = index$2;
10128
+ exports.Calendar = index$5;
10129
+ exports.Card = index$3;
10050
10130
  exports.Cascader = WCascader;
10051
10131
  exports.Checkbox = Index$4;
10052
- exports.CountUp = Index$9;
10132
+ exports.CountUp = Index$a;
10053
10133
  exports.DatePicker = Index$2;
10054
10134
  exports.DragBox = DragBox;
10055
10135
  exports.IconFont = index;
@@ -10059,19 +10139,20 @@ exports.LineEcharts = LineEcharts;
10059
10139
  exports.Modal = Modal;
10060
10140
  exports.ModalForm = ModalForm$1;
10061
10141
  exports.ModalTips = Modal$1;
10062
- exports.NtTable = index$7;
10063
- exports.Number = Index$8;
10142
+ exports.NtTable = index$8;
10143
+ exports.Number = Index$9;
10064
10144
  exports.NumericInput = NumericInput;
10065
10145
  exports.Radio = Index$3;
10146
+ exports.RequestRenderDom = index$2;
10066
10147
  exports.Select = Select;
10067
- exports.Swiper = Index$b;
10148
+ exports.Swiper = Index$c;
10068
10149
  exports.Switch = WSwitch;
10069
- exports.TabelCard = index$3;
10150
+ exports.TabelCard = index$4;
10070
10151
  exports.Table = index$1;
10071
10152
  exports.TreeSelect = Index$7;
10072
10153
  exports.Upload = Upload;
10073
- exports.Video = index$6;
10074
- exports.VideoPlayer = index$5;
10154
+ exports.Video = index$7;
10155
+ exports.VideoPlayer = index$6;
10075
10156
  exports.WDatePicker = Index$6;
10076
10157
  exports.WForm = WForm$1;
10077
10158
  exports.WaterLevelCharts = WaterLevelCharts;
package/package.json CHANGED
@@ -1,92 +1,92 @@
1
- {
2
- "private": false,
3
- "name": "wargerm",
4
- "version": "0.6.15",
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.16",
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
+ }