wargerm 0.5.7 → 0.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import React, { useRef, useEffect, useMemo, memo, useState, useImperativeHandle, forwardRef, createRef, useCallback } from 'react';
1
+ import React, { useRef, useEffect, useMemo, useState, useImperativeHandle, memo, forwardRef, createRef, useCallback } from 'react';
2
2
  import { cloneDeep, isEmpty } from 'lodash';
3
3
  import 'antd/es/button/style';
4
4
  import _Button from 'antd/es/button';
@@ -6,9 +6,15 @@ import 'antd/es/dropdown/style';
6
6
  import _Dropdown from 'antd/es/dropdown';
7
7
  import 'antd/es/menu/style';
8
8
  import _Menu from 'antd/es/menu';
9
- import { createFromIconfontCN, SearchOutlined, ReloadOutlined, CloseCircleOutlined, PlusOutlined, EllipsisOutlined, ExclamationCircleOutlined, EyeOutlined, EditOutlined, DeleteOutlined } from '@ant-design/icons';
9
+ import { createFromIconfontCN, PlusOutlined, SearchOutlined, ReloadOutlined, CloseCircleOutlined, EllipsisOutlined, ExclamationCircleOutlined, EyeOutlined, EditOutlined, DeleteOutlined } from '@ant-design/icons';
10
10
  import 'antd/es/input/style';
11
11
  import _Input from 'antd/es/input';
12
+ import 'antd/es/modal/style';
13
+ import _Modal from 'antd/es/modal';
14
+ import 'antd/es/upload/style';
15
+ import _Upload from 'antd/es/upload';
16
+ import 'antd/es/message/style';
17
+ import _message from 'antd/es/message';
12
18
  import 'antd/es/input-number/style';
13
19
  import _InputNumber from 'antd/es/input-number';
14
20
  import 'antd/es/pagination/style';
@@ -39,15 +45,12 @@ import 'antd/es/tree-select/style';
39
45
  import _TreeSelect from 'antd/es/tree-select';
40
46
  import 'antd/es/cascader/style';
41
47
  import _Cascader from 'antd/es/cascader';
42
- import cloneDeep$1 from 'lodash/cloneDeep';
43
48
  import CountUp from 'react-countup';
44
49
  import { Swiper, SwiperSlide } from 'swiper/react';
45
50
  import SwiperCore, { Pagination, Navigation, Autoplay, Virtual } from 'swiper';
46
51
  import 'antd/es/breadcrumb/style';
47
52
  import _Breadcrumb from 'antd/es/breadcrumb';
48
53
  import ReactDOM from 'react-dom';
49
- import 'antd/es/modal/style';
50
- import _Modal from 'antd/es/modal';
51
54
  import ProTable from '@ant-design/pro-table';
52
55
  import Player from 'xgplayer';
53
56
  import FlvPlayer from 'xgplayer-flv.js';
@@ -581,6 +584,200 @@ var Index = WInput;
581
584
  Index.TextArea = _Input.TextArea;
582
585
  WInput.defaultProps = {};
583
586
 
587
+ var _excluded$1 = ["value", "onChange", "beforeUpload", "uploadButton", "maxCount", "fetchMethod", "getFileList"];
588
+
589
+ function Index$1(_ref, ref) {
590
+ var value = _ref.value,
591
+ onChange = _ref.onChange,
592
+ beforeUpload = _ref.beforeUpload,
593
+ uploadButton = _ref.uploadButton,
594
+ maxCount = _ref.maxCount,
595
+ fetchMethod = _ref.fetchMethod,
596
+ getFileList = _ref.getFileList,
597
+ props = _objectWithoutProperties(_ref, _excluded$1);
598
+
599
+ var _useState = useState([]),
600
+ _useState2 = _slicedToArray(_useState, 2),
601
+ fileList = _useState2[0],
602
+ setFileList = _useState2[1];
603
+
604
+ useEffect(function () {
605
+ setFileList(value ? value.split(',').map(function (url) {
606
+ return {
607
+ uid: Math.random().toString(36).slice(2, 36),
608
+ name: '',
609
+ status: 'done',
610
+ url: url
611
+ };
612
+ }) : []);
613
+ }, [value]);
614
+ useEffect(function () {
615
+ getFileList && getFileList(fileList.map(function (file) {
616
+ return file.url;
617
+ }), fileList);
618
+ }, [fileList]);
619
+
620
+ var _useState3 = useState(false),
621
+ _useState4 = _slicedToArray(_useState3, 2),
622
+ previewVisible = _useState4[0],
623
+ setPreviewVisible = _useState4[1];
624
+
625
+ var _useState5 = useState(''),
626
+ _useState6 = _slicedToArray(_useState5, 2),
627
+ previewImage = _useState6[0],
628
+ setPreviewImage = _useState6[1];
629
+
630
+ var _useState7 = useState(''),
631
+ _useState8 = _slicedToArray(_useState7, 2),
632
+ previewTitle = _useState8[0],
633
+ setPreviewTitle = _useState8[1];
634
+
635
+ var getBase64 = function getBase64(file) {
636
+ return new Promise(function (resolve, reject) {
637
+ var reader = new FileReader();
638
+ reader.readAsDataURL(file);
639
+
640
+ reader.onload = function () {
641
+ return resolve(reader.result);
642
+ };
643
+
644
+ reader.onerror = function (error) {
645
+ return reject(error);
646
+ };
647
+ });
648
+ };
649
+
650
+ var handleCancel = function handleCancel() {
651
+ return setPreviewVisible(false);
652
+ };
653
+
654
+ var beforeUploadIn = function beforeUploadIn(file) {
655
+ var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
656
+
657
+ if (!isJpgOrPng) {
658
+ _message.error('You can only upload JPG/PNG file!');
659
+ }
660
+
661
+ var isLt2M = file.size / 1024 / 1024 < 2;
662
+
663
+ if (!isLt2M) {
664
+ _message.error('Image must smaller than 2MB!');
665
+ }
666
+
667
+ return beforeUpload ? beforeUpload(file) : isJpgOrPng && isLt2M;
668
+ };
669
+
670
+ var handleChange = /*#__PURE__*/function () {
671
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(_ref2) {
672
+ var file, newFileList, url, urls;
673
+ return regeneratorRuntime.wrap(function _callee$(_context) {
674
+ while (1) {
675
+ switch (_context.prev = _context.next) {
676
+ case 0:
677
+ file = _ref2.file, newFileList = _ref2.fileList;
678
+
679
+ if (!(file.status === 'done')) {
680
+ _context.next = 6;
681
+ break;
682
+ }
683
+
684
+ _context.next = 4;
685
+ return fetchMethod ? fetchMethod(file.originFileObj) : getBase64(file.originFileObj);
686
+
687
+ case 4:
688
+ url = _context.sent;
689
+
690
+ if (!file.url) {
691
+ file.url = url;
692
+ }
693
+
694
+ case 6:
695
+ urls = newFileList.map(function (file) {
696
+ return file.url;
697
+ }).join(',');
698
+ onChange && onChange(urls);
699
+ setFileList(newFileList);
700
+
701
+ case 9:
702
+ case "end":
703
+ return _context.stop();
704
+ }
705
+ }
706
+ }, _callee);
707
+ }));
708
+
709
+ return function handleChange(_x) {
710
+ return _ref3.apply(this, arguments);
711
+ };
712
+ }();
713
+
714
+ var handlePreview = /*#__PURE__*/function () {
715
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(file) {
716
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
717
+ while (1) {
718
+ switch (_context2.prev = _context2.next) {
719
+ case 0:
720
+ if (!(!file.url && !file.preview)) {
721
+ _context2.next = 4;
722
+ break;
723
+ }
724
+
725
+ _context2.next = 3;
726
+ return getBase64(file.originFileObj);
727
+
728
+ case 3:
729
+ file.preview = _context2.sent;
730
+
731
+ case 4:
732
+ setPreviewImage(file.url || file.preview);
733
+ setPreviewVisible(true);
734
+ setPreviewTitle(file.name || file.url.substring(file.url.lastIndexOf('/') + 1));
735
+
736
+ case 7:
737
+ case "end":
738
+ return _context2.stop();
739
+ }
740
+ }
741
+ }, _callee2);
742
+ }));
743
+
744
+ return function handlePreview(_x2) {
745
+ return _ref4.apply(this, arguments);
746
+ };
747
+ }();
748
+
749
+ var uploadButtonDom = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("div", {
750
+ style: {
751
+ marginTop: 8
752
+ }
753
+ }, /*#__PURE__*/React.createElement("div", null, "\u4E0A\u4F20")));
754
+ useImperativeHandle(ref, function () {
755
+ return {
756
+ fileList: fileList
757
+ };
758
+ });
759
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Upload, _objectSpread2({
760
+ fileList: fileList,
761
+ listType: "picture-card",
762
+ beforeUpload: beforeUploadIn,
763
+ onPreview: handlePreview,
764
+ onChange: handleChange
765
+ }, props), fileList.length >= maxCount ? null : uploadButton ? uploadButton : uploadButtonDom), /*#__PURE__*/React.createElement(_Modal, {
766
+ visible: previewVisible,
767
+ title: previewTitle,
768
+ footer: null,
769
+ onCancel: handleCancel
770
+ }, /*#__PURE__*/React.createElement("img", {
771
+ alt: "example",
772
+ style: {
773
+ width: '100%'
774
+ },
775
+ src: previewImage
776
+ })));
777
+ }
778
+
779
+ var Upload = /*#__PURE__*/React.forwardRef(Index$1);
780
+
584
781
  var WInputNumber = function WInputNumber(props) {
585
782
  var extraProps = _extends({}, props);
586
783
 
@@ -604,8 +801,8 @@ var RangePicker = function RangePicker(props) {
604
801
  };
605
802
 
606
803
  RangePicker.defaultProps = {};
607
- var Index$1 = WDatePicker;
608
- Index$1.RangePicker = RangePicker;
804
+ var Index$2 = WDatePicker;
805
+ Index$2.RangePicker = RangePicker;
609
806
 
610
807
  var WRadio = function WRadio(props) {
611
808
  var extraProps = _extends({}, props);
@@ -613,9 +810,9 @@ var WRadio = function WRadio(props) {
613
810
  return /*#__PURE__*/React.createElement(_Radio, _objectSpread2({}, extraProps));
614
811
  };
615
812
 
616
- var Index$2 = WRadio;
617
- Index$2.Group = _Radio.Group;
618
- Index$2.Button = _Radio.Button;
813
+ var Index$3 = WRadio;
814
+ Index$3.Group = _Radio.Group;
815
+ Index$3.Button = _Radio.Button;
619
816
  WRadio.defaultProps = {};
620
817
 
621
818
  var WCheckbox = function WCheckbox(props) {
@@ -625,13 +822,13 @@ var WCheckbox = function WCheckbox(props) {
625
822
  };
626
823
 
627
824
  WCheckbox.defaultProps = {};
628
- var Index$3 = WCheckbox;
629
- Index$3.Group = _Checkbox.Group;
825
+ var Index$4 = WCheckbox;
826
+ Index$4.Group = _Checkbox.Group;
630
827
 
631
828
  /*
632
829
  * @Author: lijin
633
830
  * @Date: 2021-10-27 22:18:49
634
- * @LastEditTime: 2022-07-22 15:17:01
831
+ * @LastEditTime: 2022-08-09 09:35:23
635
832
  * @LastEditors: lijin
636
833
  * @Description:
637
834
  * @FilePath: \wargerm-components\src\utils\index.ts
@@ -698,8 +895,29 @@ var calcWidth = function calcWidth(width) {
698
895
  var calcHeight = function calcHeight(height) {
699
896
  return document.body.clientHeight / 2160 * height;
700
897
  };
898
+ /* eslint-disable no-param-reassign */
701
899
 
702
- var _excluded$1 = ["className", "frameStyle", "style", "direction", "children"];
900
+ function deepCopy(target) {
901
+ if (Object.prototype.toString.call({}).slice(8, -1) == 'Object') {
902
+ var result = Array.isArray(target) ? [] : {}; // eslint-disable-next-line no-restricted-syntax
903
+
904
+ for (var key in target) {
905
+ var _target$key;
906
+
907
+ if (Object.prototype.toString.call(target).slice(8, -1) == 'Object' && !((_target$key = target[key]) === null || _target$key === void 0 ? void 0 : _target$key['$$typeof'])) {
908
+ result[key] = deepCopy(target[key]);
909
+ } else {
910
+ result[key] = target[key];
911
+ }
912
+ }
913
+
914
+ return result;
915
+ }
916
+
917
+ return target;
918
+ }
919
+
920
+ var _excluded$2 = ["className", "frameStyle", "style", "direction", "children"];
703
921
  function FrameBox(_ref) {
704
922
  var _classnames;
705
923
 
@@ -709,7 +927,7 @@ function FrameBox(_ref) {
709
927
  _ref$direction = _ref.direction,
710
928
  direction = _ref$direction === void 0 ? 'in' : _ref$direction,
711
929
  children = _ref.children,
712
- props = _objectWithoutProperties(_ref, _excluded$1);
930
+ props = _objectWithoutProperties(_ref, _excluded$2);
713
931
 
714
932
  return /*#__PURE__*/React.createElement("div", _objectSpread2({
715
933
  className: classnames((_classnames = {}, _defineProperty(_classnames, 'frame', true), _defineProperty(_classnames, className || '', true), _classnames)),
@@ -741,7 +959,7 @@ function FrameBox(_ref) {
741
959
  }), children);
742
960
  }
743
961
 
744
- var _excluded$2 = ["request", "valueEnum", "onLoad", "children", "params"],
962
+ var _excluded$3 = ["request", "valueEnum", "onLoad", "children", "params"],
745
963
  _excluded2 = ["children"];
746
964
 
747
965
  var WSelect = function WSelect(props) {
@@ -750,7 +968,7 @@ var WSelect = function WSelect(props) {
750
968
  onLoad = props.onLoad,
751
969
  children = props.children,
752
970
  params = props.params,
753
- extraProps = _objectWithoutProperties(props, _excluded$2);
971
+ extraProps = _objectWithoutProperties(props, _excluded$3);
754
972
 
755
973
  var _useState = useState([]),
756
974
  _useState2 = _slicedToArray(_useState, 2),
@@ -862,9 +1080,9 @@ var Option = function Option(props) {
862
1080
  return /*#__PURE__*/React.createElement(_Select.Option, _objectSpread2({}, extraProps), children);
863
1081
  };
864
1082
 
865
- var Index$4 = WSelect;
866
- Index$4.Option = Option;
867
- var Select = /*#__PURE__*/memo(Index$4);
1083
+ var Index$5 = WSelect;
1084
+ Index$5.Option = Option;
1085
+ var Select = /*#__PURE__*/memo(Index$5);
868
1086
 
869
1087
  //! moment.js
870
1088
  //! version : 2.29.1
@@ -6527,7 +6745,7 @@ hooks.HTML5_FMT = {
6527
6745
  MONTH: 'YYYY-MM', // <input type="month" />
6528
6746
  };
6529
6747
 
6530
- var _excluded$3 = ["defaultValue", "format", "value", "onChange"],
6748
+ var _excluded$4 = ["defaultValue", "format", "value", "onChange"],
6531
6749
  _excluded2$1 = ["defaultValue", "value", "format", "showTime", "onChange"];
6532
6750
 
6533
6751
  var momentValue = function momentValue(value) {
@@ -6543,7 +6761,7 @@ var WDatePicker$1 = function WDatePicker(props) {
6543
6761
  format = props.format,
6544
6762
  value = props.value,
6545
6763
  _onChange = props.onChange,
6546
- extraProps = _objectWithoutProperties(props, _excluded$3);
6764
+ extraProps = _objectWithoutProperties(props, _excluded$4);
6547
6765
 
6548
6766
  return /*#__PURE__*/React.createElement(_DatePicker, _objectSpread2({
6549
6767
  defaultValue: momentValue(defaultValue),
@@ -6579,8 +6797,8 @@ var RangePicker$1 = function RangePicker(props) {
6579
6797
  };
6580
6798
 
6581
6799
  RangePicker$1.defaultProps = {};
6582
- var Index$5 = WDatePicker$1;
6583
- Index$5.RangePicker = RangePicker$1;
6800
+ var Index$6 = WDatePicker$1;
6801
+ Index$6.RangePicker = RangePicker$1;
6584
6802
 
6585
6803
  var WSwitch = function WSwitch(props) {
6586
6804
  var extraProps = _extends({}, props);
@@ -6680,7 +6898,7 @@ var NumericInput = /*#__PURE__*/function (_React$Component) {
6680
6898
  return NumericInput;
6681
6899
  }(React.Component);
6682
6900
 
6683
- var _excluded$4 = ["treeNodeLabelProp", "treeNodeValueProp", "treeNodeChildrenProp", "request", "onLoad", "params", "treeData"];
6901
+ var _excluded$5 = ["treeNodeLabelProp", "treeNodeValueProp", "treeNodeChildrenProp", "request", "onLoad", "params", "treeData"];
6684
6902
 
6685
6903
  var TreeSelect = function TreeSelect(_ref) {
6686
6904
  var _ref$treeNodeLabelPro = _ref.treeNodeLabelProp,
@@ -6693,7 +6911,7 @@ var TreeSelect = function TreeSelect(_ref) {
6693
6911
  onLoad = _ref.onLoad,
6694
6912
  params = _ref.params,
6695
6913
  treePropsData = _ref.treeData,
6696
- props = _objectWithoutProperties(_ref, _excluded$4);
6914
+ props = _objectWithoutProperties(_ref, _excluded$5);
6697
6915
 
6698
6916
  var renderTree = function renderTree(data) {
6699
6917
  return data === null || data === void 0 ? void 0 : data.map(function (item) {
@@ -6765,10 +6983,10 @@ var TreeSelect = function TreeSelect(_ref) {
6765
6983
  }, props), !props.children ? renderTree(treeData) : props.children);
6766
6984
  };
6767
6985
 
6768
- var Index$6 = TreeSelect;
6769
- Index$6.TreeNode = _TreeSelect.TreeNode;
6986
+ var Index$7 = TreeSelect;
6987
+ Index$7.TreeNode = _TreeSelect.TreeNode;
6770
6988
 
6771
- var _excluded$5 = ["request", "options", "onLoad", "value", "onChange", "params"];
6989
+ var _excluded$6 = ["request", "options", "onLoad", "value", "onChange", "params"];
6772
6990
 
6773
6991
  var WCascader = function WCascader(props) {
6774
6992
  var request = props.request,
@@ -6777,7 +6995,7 @@ var WCascader = function WCascader(props) {
6777
6995
  value = props.value,
6778
6996
  _onChange = props.onChange,
6779
6997
  params = props.params,
6780
- extraProps = _objectWithoutProperties(props, _excluded$5);
6998
+ extraProps = _objectWithoutProperties(props, _excluded$6);
6781
6999
 
6782
7000
  var _useState = useState(null),
6783
7001
  _useState2 = _slicedToArray(_useState, 2),
@@ -6844,8 +7062,8 @@ var WCascader = function WCascader(props) {
6844
7062
  }, extraProps));
6845
7063
  };
6846
7064
 
6847
- var _excluded$6 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm"];
6848
- var RangePicker$2 = Index$5.RangePicker;
7065
+ var _excluded$7 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm"];
7066
+ var RangePicker$2 = Index$6.RangePicker;
6849
7067
 
6850
7068
  var WForm = function WForm(props, ref) {
6851
7069
  var columns = props.columns,
@@ -6860,7 +7078,7 @@ var WForm = function WForm(props, ref) {
6860
7078
  onSubmit = props.onSubmit,
6861
7079
  onReset = props.onReset,
6862
7080
  setForm = props.setForm,
6863
- extraProps = _objectWithoutProperties(props, _excluded$6);
7081
+ extraProps = _objectWithoutProperties(props, _excluded$7);
6864
7082
 
6865
7083
  var _Form$useForm = _Form.useForm(),
6866
7084
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
@@ -6876,12 +7094,12 @@ var WForm = function WForm(props, ref) {
6876
7094
  columnsFields = _useState4[0],
6877
7095
  setColumnsFields = _useState4[1];
6878
7096
 
6879
- var filterFormColumns = cloneDeep$1(columns).filter(function (c) {
7097
+ var filterFormColumns = deepCopy(columns).filter(function (c) {
6880
7098
  return !c.hideInSearch || disabledHideInSearch;
6881
7099
  }).sort(function (a, b) {
6882
7100
  return (b.order || 0) - (a.order || 0);
6883
7101
  });
6884
- var filterExtraFormColumns = cloneDeep$1(extraColumns || []).filter(function (c) {
7102
+ var filterExtraFormColumns = deepCopy(extraColumns || []).filter(function (c) {
6885
7103
  return !c.hideInSearch || disabledHideInSearch;
6886
7104
  }).sort(function (a, b) {
6887
7105
  return (b.order || 0) - (a.order || 0);
@@ -6984,6 +7202,36 @@ var WForm = function WForm(props, ref) {
6984
7202
  });
6985
7203
  }
6986
7204
  }, c.fieldProps), _extraProps2))));
7205
+ } else if (c.valueType == 'upload') {
7206
+ var _labelCol2 = {};
7207
+
7208
+ if (search && search.labelWidth) {
7209
+ _labelCol2.style = {
7210
+ width: search.labelWidth
7211
+ };
7212
+ }
7213
+
7214
+ return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
7215
+ className: "pl12 pr12"
7216
+ }, colProps), {}, {
7217
+ key: c.dataIndex
7218
+ }), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
7219
+ initialValue: c.initialValue
7220
+ }, c.formItemProps), {}, {
7221
+ name: c.dataIndex,
7222
+ label: c.title,
7223
+ labelCol: _labelCol2
7224
+ }), /*#__PURE__*/React.createElement(Upload, _objectSpread2({
7225
+ getFileList: function getFileList(fileListUrls, fileList) {
7226
+ setColumnsFields(function (preColumnsFields) {
7227
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, {
7228
+ fileListUrls: fileListUrls,
7229
+ fileList: fileList
7230
+ }));
7231
+ });
7232
+ },
7233
+ disabled: disabled
7234
+ }, c.fieldProps))));
6987
7235
  } else if (c.valueType == 'treeSelect') {
6988
7236
  var _extraProps3 = {};
6989
7237
 
@@ -6991,10 +7239,10 @@ var WForm = function WForm(props, ref) {
6991
7239
  _extraProps3.request = c.request;
6992
7240
  }
6993
7241
 
6994
- var _labelCol2 = {};
7242
+ var _labelCol3 = {};
6995
7243
 
6996
7244
  if (search && search.labelWidth) {
6997
- _labelCol2.style = {
7245
+ _labelCol3.style = {
6998
7246
  width: search.labelWidth
6999
7247
  };
7000
7248
  }
@@ -7008,17 +7256,17 @@ var WForm = function WForm(props, ref) {
7008
7256
  }, c.formItemProps), {}, {
7009
7257
  name: c.dataIndex,
7010
7258
  label: c.title,
7011
- labelCol: _labelCol2
7012
- }), /*#__PURE__*/React.createElement(Index$6, _objectSpread2(_objectSpread2({
7259
+ labelCol: _labelCol3
7260
+ }), /*#__PURE__*/React.createElement(Index$7, _objectSpread2(_objectSpread2({
7013
7261
  disabled: disabled,
7014
7262
  placeholder: "\u8BF7\u9009\u62E9",
7015
7263
  onLoad: function onLoad(opt) {}
7016
7264
  }, c.fieldProps), _extraProps3))));
7017
7265
  } else if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear'].includes(c.valueType)) {
7018
- var _labelCol3 = {};
7266
+ var _labelCol4 = {};
7019
7267
 
7020
7268
  if (search && search.labelWidth) {
7021
- _labelCol3.style = {
7269
+ _labelCol4.style = {
7022
7270
  width: search.labelWidth
7023
7271
  };
7024
7272
  }
@@ -7055,16 +7303,16 @@ var WForm = function WForm(props, ref) {
7055
7303
  }, c.formItemProps), {}, {
7056
7304
  name: c.dataIndex,
7057
7305
  label: c.title,
7058
- labelCol: _labelCol3
7059
- }), /*#__PURE__*/React.createElement(Index$5, _objectSpread2(_objectSpread2(_objectSpread2({
7306
+ labelCol: _labelCol4
7307
+ }), /*#__PURE__*/React.createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
7060
7308
  disabled: disabled,
7061
7309
  placeholder: "\u8BF7\u8F93\u5165"
7062
7310
  }, picker), showTime), c.fieldProps))));
7063
7311
  } else if (c.valueType === 'dateRange' || c.valueType === 'dateTimeRange') {
7064
- var _labelCol4 = {};
7312
+ var _labelCol5 = {};
7065
7313
 
7066
7314
  if (search && search.labelWidth) {
7067
- _labelCol4.style = {
7315
+ _labelCol5.style = {
7068
7316
  width: search.labelWidth
7069
7317
  };
7070
7318
  }
@@ -7088,7 +7336,7 @@ var WForm = function WForm(props, ref) {
7088
7336
  }, c.formItemProps), {}, {
7089
7337
  name: c.dataIndex,
7090
7338
  label: c.title,
7091
- labelCol: _labelCol4
7339
+ labelCol: _labelCol5
7092
7340
  }), /*#__PURE__*/React.createElement(RangePicker$2, _objectSpread2(_objectSpread2({
7093
7341
  disabled: disabled
7094
7342
  }, _showTime), c.fieldProps))));
@@ -7115,10 +7363,10 @@ var WForm = function WForm(props, ref) {
7115
7363
  setColumnsFields(function (preColumnsFields) {
7116
7364
  return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
7117
7365
  });
7118
- var _labelCol5 = {};
7366
+ var _labelCol6 = {};
7119
7367
 
7120
7368
  if (search && search.labelWidth) {
7121
- _labelCol5.style = {
7369
+ _labelCol6.style = {
7122
7370
  width: search.labelWidth
7123
7371
  };
7124
7372
  }
@@ -7132,8 +7380,8 @@ var WForm = function WForm(props, ref) {
7132
7380
  }, c.formItemProps), {}, {
7133
7381
  name: c.dataIndex,
7134
7382
  label: c.title,
7135
- labelCol: _labelCol5
7136
- }), /*#__PURE__*/React.createElement(Index$3.Group, _objectSpread2({
7383
+ labelCol: _labelCol6
7384
+ }), /*#__PURE__*/React.createElement(Index$4.Group, _objectSpread2({
7137
7385
  disabled: disabled,
7138
7386
  options: options
7139
7387
  }, c.fieldProps))));
@@ -7161,10 +7409,10 @@ var WForm = function WForm(props, ref) {
7161
7409
  setColumnsFields(function (preColumnsFields) {
7162
7410
  return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options));
7163
7411
  });
7164
- var _labelCol6 = {};
7412
+ var _labelCol7 = {};
7165
7413
 
7166
7414
  if (search && search.labelWidth) {
7167
- _labelCol6.style = {
7415
+ _labelCol7.style = {
7168
7416
  width: search.labelWidth
7169
7417
  };
7170
7418
  }
@@ -7187,8 +7435,8 @@ var WForm = function WForm(props, ref) {
7187
7435
  }, c.formItemProps), {}, {
7188
7436
  name: c.dataIndex,
7189
7437
  label: c.title,
7190
- labelCol: _labelCol6
7191
- }), /*#__PURE__*/React.createElement(Index$2.Group, _objectSpread2(_objectSpread2({
7438
+ labelCol: _labelCol7
7439
+ }), /*#__PURE__*/React.createElement(Index$3.Group, _objectSpread2(_objectSpread2({
7192
7440
  disabled: disabled
7193
7441
  }, radioButtonProps), {}, {
7194
7442
  options: _options
@@ -7207,10 +7455,10 @@ var WForm = function WForm(props, ref) {
7207
7455
  }
7208
7456
  }
7209
7457
 
7210
- var _labelCol7 = {};
7458
+ var _labelCol8 = {};
7211
7459
 
7212
7460
  if (search && search.labelWidth) {
7213
- _labelCol7.style = {
7461
+ _labelCol8.style = {
7214
7462
  width: search.labelWidth
7215
7463
  };
7216
7464
  } // if (columnsFieldsRef.current) {
@@ -7231,15 +7479,15 @@ var WForm = function WForm(props, ref) {
7231
7479
  }, c.formItemProps), {}, {
7232
7480
  name: c.dataIndex,
7233
7481
  label: c.title,
7234
- labelCol: _labelCol7
7482
+ labelCol: _labelCol8
7235
7483
  }), /*#__PURE__*/React.createElement(WSwitch, _objectSpread2({
7236
7484
  disabled: disabled
7237
7485
  }, c.fieldProps))));
7238
7486
  } else if (c.valueType === 'digit') {
7239
- var _labelCol8 = {};
7487
+ var _labelCol9 = {};
7240
7488
 
7241
7489
  if (search && search.labelWidth) {
7242
- _labelCol8.style = {
7490
+ _labelCol9.style = {
7243
7491
  width: search.labelWidth
7244
7492
  };
7245
7493
  }
@@ -7253,16 +7501,16 @@ var WForm = function WForm(props, ref) {
7253
7501
  }, c.formItemProps), {}, {
7254
7502
  name: c.dataIndex,
7255
7503
  label: c.title,
7256
- labelCol: _labelCol8
7504
+ labelCol: _labelCol9
7257
7505
  }), /*#__PURE__*/React.createElement(NumericInput, _objectSpread2({
7258
7506
  disabled: disabled,
7259
7507
  placeholder: "\u8BF7\u8F93\u5165\u53C2\u6570(double/int)"
7260
7508
  }, c.fieldProps))));
7261
7509
  } else if (c.renderFormItem) {
7262
- var _labelCol9 = {};
7510
+ var _labelCol10 = {};
7263
7511
 
7264
7512
  if (search && search.labelWidth) {
7265
- _labelCol9.style = {
7513
+ _labelCol10.style = {
7266
7514
  width: search.labelWidth
7267
7515
  };
7268
7516
  }
@@ -7283,13 +7531,13 @@ var WForm = function WForm(props, ref) {
7283
7531
  }, c.formItemProps), {}, {
7284
7532
  name: c.dataIndex,
7285
7533
  label: c.title,
7286
- labelCol: _labelCol9
7534
+ labelCol: _labelCol10
7287
7535
  }), baseitem)) : null;
7288
7536
  } else if (c.valueType === 'textarea') {
7289
- var _labelCol10 = {};
7537
+ var _labelCol11 = {};
7290
7538
 
7291
7539
  if (search && search.labelWidth) {
7292
- _labelCol10.style = {
7540
+ _labelCol11.style = {
7293
7541
  width: search.labelWidth
7294
7542
  };
7295
7543
  }
@@ -7303,17 +7551,17 @@ var WForm = function WForm(props, ref) {
7303
7551
  }, c.formItemProps), {}, {
7304
7552
  name: c.dataIndex,
7305
7553
  label: c.title,
7306
- labelCol: _labelCol10
7554
+ labelCol: _labelCol11
7307
7555
  }), /*#__PURE__*/React.createElement(Index.TextArea, _objectSpread2({
7308
7556
  rows: 4,
7309
7557
  disabled: disabled,
7310
7558
  placeholder: "\u8BF7\u8F93\u5165"
7311
7559
  }, c.fieldProps))));
7312
7560
  } else if (c.valueType === 'inputNumber') {
7313
- var _labelCol11 = {};
7561
+ var _labelCol12 = {};
7314
7562
 
7315
7563
  if (search && search.labelWidth) {
7316
- _labelCol11.style = {
7564
+ _labelCol12.style = {
7317
7565
  width: search.labelWidth
7318
7566
  };
7319
7567
  }
@@ -7327,16 +7575,16 @@ var WForm = function WForm(props, ref) {
7327
7575
  }, c.formItemProps), {}, {
7328
7576
  name: c.dataIndex,
7329
7577
  label: c.title,
7330
- labelCol: _labelCol11
7578
+ labelCol: _labelCol12
7331
7579
  }), /*#__PURE__*/React.createElement(WInputNumber, _objectSpread2({
7332
7580
  disabled: disabled,
7333
7581
  placeholder: "\u8BF7\u8F93\u5165"
7334
7582
  }, c.fieldProps))));
7335
7583
  } else {
7336
- var _labelCol12 = {};
7584
+ var _labelCol13 = {};
7337
7585
 
7338
7586
  if (search && search.labelWidth) {
7339
- _labelCol12.style = {
7587
+ _labelCol13.style = {
7340
7588
  width: search.labelWidth
7341
7589
  };
7342
7590
  }
@@ -7350,7 +7598,7 @@ var WForm = function WForm(props, ref) {
7350
7598
  }, c.formItemProps), {}, {
7351
7599
  name: c.dataIndex,
7352
7600
  label: c.title,
7353
- labelCol: _labelCol12
7601
+ labelCol: _labelCol13
7354
7602
  }), /*#__PURE__*/React.createElement(Index, _objectSpread2({
7355
7603
  disabled: disabled,
7356
7604
  placeholder: "\u8BF7\u8F93\u5165"
@@ -7423,6 +7671,36 @@ var WForm = function WForm(props, ref) {
7423
7671
  }
7424
7672
  }
7425
7673
  }, c.fieldProps), _extraProps4))));
7674
+ } else if (c.valueType == 'upload') {
7675
+ var _labelCol14 = {};
7676
+
7677
+ if (search && search.labelWidth) {
7678
+ _labelCol14.style = {
7679
+ width: search.labelWidth
7680
+ };
7681
+ }
7682
+
7683
+ return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
7684
+ className: "pl12 pr12"
7685
+ }, colProps), {}, {
7686
+ key: c.dataIndex
7687
+ }), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
7688
+ initialValue: c.initialValue
7689
+ }, c.formItemProps), {}, {
7690
+ name: c.dataIndex,
7691
+ label: c.title,
7692
+ labelCol: _labelCol14
7693
+ }), /*#__PURE__*/React.createElement(Upload, _objectSpread2({
7694
+ getFileList: function getFileList(fileListUrls, fileList) {
7695
+ setColumnsFields(function (preColumnsFields) {
7696
+ return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, {
7697
+ fileListUrls: fileListUrls,
7698
+ fileList: fileList
7699
+ }));
7700
+ });
7701
+ },
7702
+ disabled: disabled
7703
+ }, c.fieldProps))));
7426
7704
  } else if (c.valueType == 'cascader') {
7427
7705
  var _extraProps5 = {};
7428
7706
 
@@ -7430,10 +7708,10 @@ var WForm = function WForm(props, ref) {
7430
7708
  _extraProps5.request = c.request;
7431
7709
  }
7432
7710
 
7433
- var _labelCol13 = {};
7711
+ var _labelCol15 = {};
7434
7712
 
7435
7713
  if (search && search.labelWidth) {
7436
- _labelCol13.style = {
7714
+ _labelCol15.style = {
7437
7715
  width: search.labelWidth
7438
7716
  };
7439
7717
  }
@@ -7447,7 +7725,7 @@ var WForm = function WForm(props, ref) {
7447
7725
  }, c.formItemProps), {}, {
7448
7726
  name: c.dataIndex,
7449
7727
  label: c.title,
7450
- labelCol: _labelCol13
7728
+ labelCol: _labelCol15
7451
7729
  }), /*#__PURE__*/React.createElement(WCascader, _objectSpread2(_objectSpread2({
7452
7730
  placeholder: "\u8BF7\u9009\u62E9",
7453
7731
  disabled: disabled,
@@ -7464,10 +7742,10 @@ var WForm = function WForm(props, ref) {
7464
7742
  _extraProps6.request = c.request;
7465
7743
  }
7466
7744
 
7467
- var _labelCol14 = {};
7745
+ var _labelCol16 = {};
7468
7746
 
7469
7747
  if (search && search.labelWidth) {
7470
- _labelCol14.style = {
7748
+ _labelCol16.style = {
7471
7749
  width: search.labelWidth
7472
7750
  };
7473
7751
  }
@@ -7481,17 +7759,17 @@ var WForm = function WForm(props, ref) {
7481
7759
  }, c.formItemProps), {}, {
7482
7760
  name: c.dataIndex,
7483
7761
  label: c.title,
7484
- labelCol: _labelCol14
7485
- }), /*#__PURE__*/React.createElement(Index$6, _objectSpread2(_objectSpread2({
7762
+ labelCol: _labelCol16
7763
+ }), /*#__PURE__*/React.createElement(Index$7, _objectSpread2(_objectSpread2({
7486
7764
  disabled: disabled,
7487
7765
  placeholder: "\u8BF7\u9009\u62E9",
7488
7766
  onLoad: function onLoad(opt) {}
7489
7767
  }, c.fieldProps), _extraProps6))));
7490
7768
  } else if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear'].includes(c.valueType)) {
7491
- var _labelCol15 = {};
7769
+ var _labelCol17 = {};
7492
7770
 
7493
7771
  if (search && search.labelWidth) {
7494
- _labelCol15.style = {
7772
+ _labelCol17.style = {
7495
7773
  width: search.labelWidth
7496
7774
  };
7497
7775
  }
@@ -7528,16 +7806,16 @@ var WForm = function WForm(props, ref) {
7528
7806
  }, c.formItemProps), {}, {
7529
7807
  name: c.dataIndex,
7530
7808
  label: c.title,
7531
- labelCol: _labelCol15
7532
- }), /*#__PURE__*/React.createElement(Index$5, _objectSpread2(_objectSpread2(_objectSpread2({
7809
+ labelCol: _labelCol17
7810
+ }), /*#__PURE__*/React.createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
7533
7811
  disabled: disabled,
7534
7812
  placeholder: "\u8BF7\u8F93\u5165"
7535
7813
  }, picker), showTime), c.fieldProps))));
7536
7814
  } else if (c.valueType === 'dateRange' || c.valueType === 'dateTimeRange') {
7537
- var _labelCol16 = {};
7815
+ var _labelCol18 = {};
7538
7816
 
7539
7817
  if (search && search.labelWidth) {
7540
- _labelCol16.style = {
7818
+ _labelCol18.style = {
7541
7819
  width: search.labelWidth
7542
7820
  };
7543
7821
  }
@@ -7561,7 +7839,7 @@ var WForm = function WForm(props, ref) {
7561
7839
  }, c.formItemProps), {}, {
7562
7840
  name: c.dataIndex,
7563
7841
  label: c.title,
7564
- labelCol: _labelCol16
7842
+ labelCol: _labelCol18
7565
7843
  }), /*#__PURE__*/React.createElement(RangePicker$2, _objectSpread2(_objectSpread2({
7566
7844
  disabled: disabled
7567
7845
  }, _showTime2), c.fieldProps))));
@@ -7588,10 +7866,10 @@ var WForm = function WForm(props, ref) {
7588
7866
  setColumnsFields(function (preColumnsFields) {
7589
7867
  return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
7590
7868
  });
7591
- var _labelCol17 = {};
7869
+ var _labelCol19 = {};
7592
7870
 
7593
7871
  if (search && search.labelWidth) {
7594
- _labelCol17.style = {
7872
+ _labelCol19.style = {
7595
7873
  width: search.labelWidth
7596
7874
  };
7597
7875
  }
@@ -7605,8 +7883,8 @@ var WForm = function WForm(props, ref) {
7605
7883
  }, c.formItemProps), {}, {
7606
7884
  name: c.dataIndex,
7607
7885
  label: c.title,
7608
- labelCol: _labelCol17
7609
- }), /*#__PURE__*/React.createElement(Index$3.Group, _objectSpread2({
7886
+ labelCol: _labelCol19
7887
+ }), /*#__PURE__*/React.createElement(Index$4.Group, _objectSpread2({
7610
7888
  disabled: disabled,
7611
7889
  options: options
7612
7890
  }, c.fieldProps))));
@@ -7634,10 +7912,10 @@ var WForm = function WForm(props, ref) {
7634
7912
  setColumnsFields(function (preColumnsFields) {
7635
7913
  return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options3));
7636
7914
  });
7637
- var _labelCol18 = {};
7915
+ var _labelCol20 = {};
7638
7916
 
7639
7917
  if (search && search.labelWidth) {
7640
- _labelCol18.style = {
7918
+ _labelCol20.style = {
7641
7919
  width: search.labelWidth
7642
7920
  };
7643
7921
  }
@@ -7660,8 +7938,8 @@ var WForm = function WForm(props, ref) {
7660
7938
  }, c.formItemProps), {}, {
7661
7939
  name: c.dataIndex,
7662
7940
  label: c.title,
7663
- labelCol: _labelCol18
7664
- }), /*#__PURE__*/React.createElement(Index$2.Group, _objectSpread2(_objectSpread2({
7941
+ labelCol: _labelCol20
7942
+ }), /*#__PURE__*/React.createElement(Index$3.Group, _objectSpread2(_objectSpread2({
7665
7943
  disabled: disabled
7666
7944
  }, radioButtonProps), {}, {
7667
7945
  options: _options3
@@ -7680,10 +7958,10 @@ var WForm = function WForm(props, ref) {
7680
7958
  }
7681
7959
  }
7682
7960
 
7683
- var _labelCol19 = {};
7961
+ var _labelCol21 = {};
7684
7962
 
7685
7963
  if (search && search.labelWidth) {
7686
- _labelCol19.style = {
7964
+ _labelCol21.style = {
7687
7965
  width: search.labelWidth
7688
7966
  };
7689
7967
  } // if (columnsFieldsRef.current) {
@@ -7704,15 +7982,15 @@ var WForm = function WForm(props, ref) {
7704
7982
  }, c.formItemProps), {}, {
7705
7983
  name: c.dataIndex,
7706
7984
  label: c.title,
7707
- labelCol: _labelCol19
7985
+ labelCol: _labelCol21
7708
7986
  }), /*#__PURE__*/React.createElement(WSwitch, _objectSpread2({
7709
7987
  disabled: disabled
7710
7988
  }, c.fieldProps))));
7711
7989
  } else if (c.valueType === 'digit') {
7712
- var _labelCol20 = {};
7990
+ var _labelCol22 = {};
7713
7991
 
7714
7992
  if (search && search.labelWidth) {
7715
- _labelCol20.style = {
7993
+ _labelCol22.style = {
7716
7994
  width: search.labelWidth
7717
7995
  };
7718
7996
  }
@@ -7726,16 +8004,16 @@ var WForm = function WForm(props, ref) {
7726
8004
  }, c.formItemProps), {}, {
7727
8005
  name: c.dataIndex,
7728
8006
  label: c.title,
7729
- labelCol: _labelCol20
8007
+ labelCol: _labelCol22
7730
8008
  }), /*#__PURE__*/React.createElement(NumericInput, _objectSpread2({
7731
8009
  disabled: disabled,
7732
8010
  placeholder: "\u8BF7\u8F93\u5165\u53C2\u6570(double/int)"
7733
8011
  }, c.fieldProps))));
7734
8012
  } else if (c.renderFormItem) {
7735
- var _labelCol21 = {};
8013
+ var _labelCol23 = {};
7736
8014
 
7737
8015
  if (search && search.labelWidth) {
7738
- _labelCol21.style = {
8016
+ _labelCol23.style = {
7739
8017
  width: search.labelWidth
7740
8018
  };
7741
8019
  }
@@ -7756,13 +8034,13 @@ var WForm = function WForm(props, ref) {
7756
8034
  }, c.formItemProps), {}, {
7757
8035
  name: c.dataIndex,
7758
8036
  label: c.title,
7759
- labelCol: _labelCol21
8037
+ labelCol: _labelCol23
7760
8038
  }), baseitem)) : null;
7761
8039
  } else if (c.valueType === 'textarea') {
7762
- var _labelCol22 = {};
8040
+ var _labelCol24 = {};
7763
8041
 
7764
8042
  if (search && search.labelWidth) {
7765
- _labelCol22.style = {
8043
+ _labelCol24.style = {
7766
8044
  width: search.labelWidth
7767
8045
  };
7768
8046
  }
@@ -7776,17 +8054,17 @@ var WForm = function WForm(props, ref) {
7776
8054
  }, c.formItemProps), {}, {
7777
8055
  name: c.dataIndex,
7778
8056
  label: c.title,
7779
- labelCol: _labelCol22
8057
+ labelCol: _labelCol24
7780
8058
  }), /*#__PURE__*/React.createElement(Index.TextArea, _objectSpread2({
7781
8059
  rows: 4,
7782
8060
  disabled: disabled,
7783
8061
  placeholder: "\u8BF7\u8F93\u5165"
7784
8062
  }, c.fieldProps))));
7785
8063
  } else if (c.valueType === 'inputNumber') {
7786
- var _labelCol23 = {};
8064
+ var _labelCol25 = {};
7787
8065
 
7788
8066
  if (search && search.labelWidth) {
7789
- _labelCol23.style = {
8067
+ _labelCol25.style = {
7790
8068
  width: search.labelWidth
7791
8069
  };
7792
8070
  }
@@ -7800,16 +8078,16 @@ var WForm = function WForm(props, ref) {
7800
8078
  }, c.formItemProps), {}, {
7801
8079
  name: c.dataIndex,
7802
8080
  label: c.title,
7803
- labelCol: _labelCol23
8081
+ labelCol: _labelCol25
7804
8082
  }), /*#__PURE__*/React.createElement(WInputNumber, _objectSpread2({
7805
8083
  disabled: disabled,
7806
8084
  placeholder: "\u8BF7\u8F93\u5165"
7807
8085
  }, c.fieldProps))));
7808
8086
  } else {
7809
- var _labelCol24 = {};
8087
+ var _labelCol26 = {};
7810
8088
 
7811
8089
  if (search && search.labelWidth) {
7812
- _labelCol24.style = {
8090
+ _labelCol26.style = {
7813
8091
  width: search.labelWidth
7814
8092
  };
7815
8093
  }
@@ -7823,7 +8101,7 @@ var WForm = function WForm(props, ref) {
7823
8101
  }, c.formItemProps), {}, {
7824
8102
  name: c.dataIndex,
7825
8103
  label: c.title,
7826
- labelCol: _labelCol24
8104
+ labelCol: _labelCol26
7827
8105
  }), /*#__PURE__*/React.createElement(Index, _objectSpread2({
7828
8106
  disabled: disabled,
7829
8107
  placeholder: "\u8BF7\u8F93\u5165"
@@ -8058,7 +8336,7 @@ var WForm = function WForm(props, ref) {
8058
8336
 
8059
8337
  var WForm$1 = /*#__PURE__*/React.forwardRef(WForm);
8060
8338
 
8061
- var _excluded$7 = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
8339
+ var _excluded$8 = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
8062
8340
 
8063
8341
  function Table(_ref) {
8064
8342
  var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
@@ -8090,7 +8368,7 @@ function Table(_ref) {
8090
8368
  frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
8091
8369
  formRef = _ref.formRef,
8092
8370
  none = _ref.none,
8093
- props = _objectWithoutProperties(_ref, _excluded$7);
8371
+ props = _objectWithoutProperties(_ref, _excluded$8);
8094
8372
 
8095
8373
  var _useState = useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
8096
8374
  _useState2 = _slicedToArray(_useState, 2),
@@ -8351,7 +8629,7 @@ function Table(_ref) {
8351
8629
  left: 6
8352
8630
  } : {}),
8353
8631
  className: "td ".concat(showColumns[0].fixed == 'left' ? 'fixedLeft' : '')
8354
- }, /*#__PURE__*/React.createElement(Index$3, {
8632
+ }, /*#__PURE__*/React.createElement(Index$4, {
8355
8633
  checked: (_ref2 = [].concat(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || []), _toConsumableArray(selectedRowKeys))) === null || _ref2 === void 0 ? void 0 : _ref2.includes(key),
8356
8634
  onClick: function onClick(e) {
8357
8635
  return e.stopPropagation();
@@ -8391,7 +8669,7 @@ function Table(_ref) {
8391
8669
  left: 6
8392
8670
  } : {}),
8393
8671
  className: "td ".concat(showColumns[0].fixed == 'left' ? 'fixedLeft' : '')
8394
- }, /*#__PURE__*/React.createElement(Index$2, {
8672
+ }, /*#__PURE__*/React.createElement(Index$3, {
8395
8673
  checked: (_ref3 = [].concat(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || []), _toConsumableArray(selectedRowKeys))) === null || _ref3 === void 0 ? void 0 : _ref3.includes(key),
8396
8674
  onClick: function onClick(e) {
8397
8675
  return e.stopPropagation();
@@ -8571,7 +8849,7 @@ function Table(_ref) {
8571
8849
  left: 6
8572
8850
  } : {}),
8573
8851
  className: "td ".concat(((_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.fixed) == 'left' ? 'fixedLeft' : '')
8574
- }, /*#__PURE__*/React.createElement(Index$3, {
8852
+ }, /*#__PURE__*/React.createElement(Index$4, {
8575
8853
  checked: dataSource.every(function (record) {
8576
8854
  return selectedRowKeys.includes(typeof rowKey === 'function' ? record[rowKey(record)] : record[rowKey]);
8577
8855
  }),
@@ -8630,7 +8908,7 @@ Table.defaultProps = {
8630
8908
  };
8631
8909
  var index$1 = /*#__PURE__*/memo(Table);
8632
8910
 
8633
- var _excluded$8 = ["height", "width", "count", "style", "numberStyle"],
8911
+ var _excluded$9 = ["height", "width", "count", "style", "numberStyle"],
8634
8912
  _excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
8635
8913
 
8636
8914
  var Number = function Number(_ref) {
@@ -8640,7 +8918,7 @@ var Number = function Number(_ref) {
8640
8918
  count = _ref$count === void 0 ? 0 : _ref$count,
8641
8919
  style = _ref.style,
8642
8920
  numberStyle = _ref.numberStyle,
8643
- props = _objectWithoutProperties(_ref, _excluded$8);
8921
+ props = _objectWithoutProperties(_ref, _excluded$9);
8644
8922
 
8645
8923
  // 上次的值
8646
8924
  var _useState = useState(0),
@@ -8760,7 +9038,7 @@ Number.defaultProps = {
8760
9038
  height: 40
8761
9039
  };
8762
9040
 
8763
- var Index$7 = function Index(props) {
9041
+ var Index$8 = function Index(props) {
8764
9042
  var count = props.count,
8765
9043
  _props$numberCount = props.numberCount,
8766
9044
  numberCount = _props$numberCount === void 0 ? 5 : _props$numberCount,
@@ -8804,20 +9082,20 @@ var Index$7 = function Index(props) {
8804
9082
  }));
8805
9083
  };
8806
9084
 
8807
- var _excluded$9 = ["duration"];
9085
+ var _excluded$a = ["duration"];
8808
9086
 
8809
- var Index$8 = function Index(props) {
9087
+ var Index$9 = function Index(props) {
8810
9088
  var _props$duration = props.duration,
8811
9089
  duration = _props$duration === void 0 ? 2.75 : _props$duration,
8812
- extraProps = _objectWithoutProperties(props, _excluded$9);
9090
+ extraProps = _objectWithoutProperties(props, _excluded$a);
8813
9091
  return /*#__PURE__*/React.createElement(CountUp, _objectSpread2({
8814
9092
  duration: duration
8815
9093
  }, extraProps));
8816
9094
  };
8817
9095
 
8818
- Index$8.defaultProps = {};
9096
+ Index$9.defaultProps = {};
8819
9097
 
8820
- var _excluded$a = ["list", "render", "none", "partSize"];
9098
+ var _excluded$b = ["list", "render", "none", "partSize"];
8821
9099
 
8822
9100
  function AutoScroll(props) {
8823
9101
  var inner1 = useRef();
@@ -8896,13 +9174,13 @@ function AutoScroll(props) {
8896
9174
  }));
8897
9175
  }
8898
9176
 
8899
- var Index$9 = function Index(_ref) {
9177
+ var Index$a = function Index(_ref) {
8900
9178
  var list = _ref.list,
8901
9179
  render = _ref.render,
8902
9180
  none = _ref.none,
8903
9181
  _ref$partSize = _ref.partSize,
8904
9182
  partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
8905
- otherProps = _objectWithoutProperties(_ref, _excluded$a);
9183
+ otherProps = _objectWithoutProperties(_ref, _excluded$b);
8906
9184
 
8907
9185
  var _useState = useState([]),
8908
9186
  _useState2 = _slicedToArray(_useState, 2),
@@ -8985,11 +9263,11 @@ var Index$9 = function Index(_ref) {
8985
9263
  }, none || '暂无数据');
8986
9264
  };
8987
9265
 
8988
- var _excluded$b = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
9266
+ var _excluded$c = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
8989
9267
 
8990
9268
  SwiperCore.use([Pagination, Navigation, Autoplay, Virtual]);
8991
9269
 
8992
- var Index$a = function Index(props) {
9270
+ var Index$b = function Index(props) {
8993
9271
  var data = props.data,
8994
9272
  _onClick = props.onClick,
8995
9273
  _props$slidesPerView = props.slidesPerView,
@@ -8997,7 +9275,7 @@ var Index$a = function Index(props) {
8997
9275
  rowKey = props.rowKey,
8998
9276
  onSwiperChange = props.onSwiperChange,
8999
9277
  renderItem = props.renderItem,
9000
- extraProps = _objectWithoutProperties(props, _excluded$b);
9278
+ extraProps = _objectWithoutProperties(props, _excluded$c);
9001
9279
 
9002
9280
  var _useState = useState(null),
9003
9281
  _useState2 = _slicedToArray(_useState, 2),
@@ -9052,7 +9330,7 @@ var Index$a = function Index(props) {
9052
9330
  }));
9053
9331
  };
9054
9332
 
9055
- Index$a.defaultProps = {};
9333
+ Index$b.defaultProps = {};
9056
9334
 
9057
9335
  function _extends$1() {
9058
9336
  _extends$1 = Object.assign || function (target) {
@@ -9648,7 +9926,7 @@ function createBrowserHistory(props) {
9648
9926
  return history;
9649
9927
  }
9650
9928
 
9651
- var _excluded$c = ["routes", "className"];
9929
+ var _excluded$d = ["routes", "className"];
9652
9930
  var history = createBrowserHistory();
9653
9931
 
9654
9932
  function itemRender(route, params, routes, paths) {
@@ -9663,10 +9941,10 @@ function itemRender(route, params, routes, paths) {
9663
9941
  }, route.breadcrumbName);
9664
9942
  }
9665
9943
 
9666
- var Index$b = function Index(_ref) {
9944
+ var Index$c = function Index(_ref) {
9667
9945
  var routes = _ref.routes,
9668
9946
  className = _ref.className,
9669
- props = _objectWithoutProperties(_ref, _excluded$c);
9947
+ props = _objectWithoutProperties(_ref, _excluded$d);
9670
9948
 
9671
9949
  return /*#__PURE__*/React.createElement(_Breadcrumb, _objectSpread2({
9672
9950
  className: className || 'default',
@@ -9676,9 +9954,9 @@ var Index$b = function Index(_ref) {
9676
9954
  }, props));
9677
9955
  };
9678
9956
 
9679
- var _excluded$d = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
9957
+ var _excluded$e = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
9680
9958
 
9681
- var Index$c = function Index(_ref, ref) {
9959
+ var Index$d = function Index(_ref, ref) {
9682
9960
  var _classNames, _sliderTabs$component, _sliderTabs$tabs;
9683
9961
 
9684
9962
  var title = _ref.title,
@@ -9687,7 +9965,7 @@ var Index$c = function Index(_ref, ref) {
9687
9965
  headerTail = _ref.headerTail,
9688
9966
  headerCenter = _ref.headerCenter,
9689
9967
  sliderTabs = _ref.sliderTabs,
9690
- props = _objectWithoutProperties(_ref, _excluded$d);
9968
+ props = _objectWithoutProperties(_ref, _excluded$e);
9691
9969
 
9692
9970
  useImperativeHandle(ref, function () {
9693
9971
  return {
@@ -9729,7 +10007,7 @@ var Index$c = function Index(_ref, ref) {
9729
10007
  }))));
9730
10008
  };
9731
10009
 
9732
- var index$2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Index$c));
10010
+ var index$2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Index$d));
9733
10011
 
9734
10012
  var controlShow = function controlShow(f1, f2, value, timer) {
9735
10013
  f1(value);
@@ -9931,7 +10209,7 @@ function DialogModel(props, ref) {
9931
10209
 
9932
10210
  var Dialog = /*#__PURE__*/React.forwardRef(DialogModel);
9933
10211
 
9934
- var _excluded$e = ["visible", "width", "closeCb", "onClose", "className", "style"],
10212
+ var _excluded$f = ["visible", "width", "closeCb", "onClose", "className", "style"],
9935
10213
  _excluded2$3 = ["visible"];
9936
10214
 
9937
10215
  var Modal = /*#__PURE__*/function (_React$PureComponent) {
@@ -10048,7 +10326,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
10048
10326
  onClose = _this$props4.onClose,
10049
10327
  className = _this$props4.className,
10050
10328
  style = _this$props4.style,
10051
- other = _objectWithoutProperties(_this$props4, _excluded$e);
10329
+ other = _objectWithoutProperties(_this$props4, _excluded$f);
10052
10330
 
10053
10331
  return /*#__PURE__*/React.createElement(Dialog, _objectSpread2({
10054
10332
  ref: this.containerRef,
@@ -10231,7 +10509,7 @@ function DialogModel$1(props) {
10231
10509
  return renderChildren;
10232
10510
  }
10233
10511
 
10234
- var _excluded$f = ["visible"];
10512
+ var _excluded$g = ["visible"];
10235
10513
 
10236
10514
  var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
10237
10515
  _inherits(Modal, _React$PureComponent);
@@ -10371,7 +10649,7 @@ Modal$1.show = function (config) {
10371
10649
  manager.setShow = setShow;
10372
10650
 
10373
10651
  var visible = props.visible,
10374
- trueProps = _objectWithoutProperties(props, _excluded$f);
10652
+ trueProps = _objectWithoutProperties(props, _excluded$g);
10375
10653
 
10376
10654
  useEffect(function () {
10377
10655
  manager.mounted = true;
@@ -10571,7 +10849,7 @@ function DragBox(_ref) {
10571
10849
  }, children)) : /*#__PURE__*/React.createElement(React.Fragment, null);
10572
10850
  }
10573
10851
 
10574
- var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel"];
10852
+ var _excluded$h = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel"];
10575
10853
 
10576
10854
  var ModalForm = function ModalForm(props, ref) {
10577
10855
  var columns = props.columns,
@@ -10587,7 +10865,7 @@ var ModalForm = function ModalForm(props, ref) {
10587
10865
  onFormChange = props.onFormChange,
10588
10866
  formItemChild = props.formItemChild,
10589
10867
  onCancel = props.onCancel,
10590
- extraProps = _objectWithoutProperties(props, _excluded$g);
10868
+ extraProps = _objectWithoutProperties(props, _excluded$h);
10591
10869
 
10592
10870
  var formRef = useRef(null);
10593
10871
 
@@ -10719,7 +10997,7 @@ var ModalForm = function ModalForm(props, ref) {
10719
10997
 
10720
10998
  var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
10721
10999
 
10722
- var _excluded$h = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig", "pagination", "noBordered"];
11000
+ var _excluded$i = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig", "pagination", "noBordered"];
10723
11001
 
10724
11002
  var TabelCard = function TabelCard(props, ref) {
10725
11003
  var columns = props.columns,
@@ -10737,7 +11015,7 @@ var TabelCard = function TabelCard(props, ref) {
10737
11015
  optionColumnConfig = props.optionColumnConfig,
10738
11016
  pagination = props.pagination,
10739
11017
  noBordered = props.noBordered,
10740
- extraProps = _objectWithoutProperties(props, _excluded$h);
11018
+ extraProps = _objectWithoutProperties(props, _excluded$i);
10741
11019
 
10742
11020
  var actionRef = useRef();
10743
11021
  var modalFormRef = useRef(null);
@@ -11687,7 +11965,7 @@ function VideoPlayer(_ref, ref) {
11687
11965
 
11688
11966
  var index$4 = /*#__PURE__*/forwardRef(VideoPlayer);
11689
11967
 
11690
- var _excluded$i = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
11968
+ var _excluded$j = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
11691
11969
 
11692
11970
  var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2]; // 默认记忆提示文字展示时长(s)
11693
11971
 
@@ -11718,7 +11996,7 @@ var index$5 = (function (_ref) {
11718
11996
  enableMemory = _ref$enableMemory === void 0 ? false : _ref$enableMemory,
11719
11997
  _ref$lastPlayTimeHide = _ref.lastPlayTimeHideDelay,
11720
11998
  lastPlayTimeHideDelay = _ref$lastPlayTimeHide === void 0 ? DEFAULT_LAST_PLAY_TIME_DELAY : _ref$lastPlayTimeHide,
11721
- props = _objectWithoutProperties(_ref, _excluded$i);
11999
+ props = _objectWithoutProperties(_ref, _excluded$j);
11722
12000
 
11723
12001
  var player = useRef();
11724
12002
  var currentPlayerIndex = useRef(0); // 内置的 index 状态管理
@@ -12696,4 +12974,4 @@ function WaterLevelCharts(config) {
12696
12974
  });
12697
12975
  }
12698
12976
 
12699
- export { Index$9 as AutoScroll, Index$b as Breadcrumb, WButton as Button, index$2 as Card, WCascader as Cascader, Index$3 as Checkbox, Index$8 as CountUp, Index$1 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 Number, NumericInput, Index$2 as Radio, Select, Index$a as Swiper, WSwitch as Switch, index$3 as TabelCard, index$1 as Table, Index$6 as TreeSelect, index$5 as Video, index$4 as VideoPlayer, Index$5 as WDatePicker, WForm$1 as WForm, WaterLevelCharts, WebsocketHeart, useEventEmitter };
12977
+ export { Index$a as AutoScroll, Index$c as Breadcrumb, WButton as Button, 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$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$5 as Video, index$4 as VideoPlayer, Index$6 as WDatePicker, WForm$1 as WForm, WaterLevelCharts, WebsocketHeart, useEventEmitter };