wargerm 0.6.15 → 0.6.17

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