wargerm 0.5.5 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Upload/example/demo1.d.ts +3 -0
- package/dist/components/Upload/index.d.ts +3 -0
- package/dist/components/WForm/index.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +466 -146
- package/dist/index.js +477 -154
- package/package.json +88 -88
package/dist/index.js
CHANGED
@@ -13,6 +13,12 @@ var _Menu = require('antd/es/menu');
|
|
13
13
|
var icons = require('@ant-design/icons');
|
14
14
|
require('antd/es/input/style');
|
15
15
|
var _Input = require('antd/es/input');
|
16
|
+
require('antd/es/modal/style');
|
17
|
+
var _Modal = require('antd/es/modal');
|
18
|
+
require('antd/es/upload/style');
|
19
|
+
var _Upload = require('antd/es/upload');
|
20
|
+
require('antd/es/message/style');
|
21
|
+
var _message = require('antd/es/message');
|
16
22
|
require('antd/es/input-number/style');
|
17
23
|
var _InputNumber = require('antd/es/input-number');
|
18
24
|
require('antd/es/pagination/style');
|
@@ -50,8 +56,6 @@ var SwiperCore = require('swiper');
|
|
50
56
|
require('antd/es/breadcrumb/style');
|
51
57
|
var _Breadcrumb = require('antd/es/breadcrumb');
|
52
58
|
var ReactDOM = require('react-dom');
|
53
|
-
require('antd/es/modal/style');
|
54
|
-
var _Modal = require('antd/es/modal');
|
55
59
|
var ProTable = require('@ant-design/pro-table');
|
56
60
|
var Player = require('xgplayer');
|
57
61
|
var FlvPlayer = require('xgplayer-flv.js');
|
@@ -89,6 +93,9 @@ var _Button__default = /*#__PURE__*/_interopDefaultLegacy(_Button);
|
|
89
93
|
var _Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(_Dropdown);
|
90
94
|
var _Menu__default = /*#__PURE__*/_interopDefaultLegacy(_Menu);
|
91
95
|
var _Input__default = /*#__PURE__*/_interopDefaultLegacy(_Input);
|
96
|
+
var _Modal__default = /*#__PURE__*/_interopDefaultLegacy(_Modal);
|
97
|
+
var _Upload__default = /*#__PURE__*/_interopDefaultLegacy(_Upload);
|
98
|
+
var _message__default = /*#__PURE__*/_interopDefaultLegacy(_message);
|
92
99
|
var _InputNumber__default = /*#__PURE__*/_interopDefaultLegacy(_InputNumber);
|
93
100
|
var _Pagination__default = /*#__PURE__*/_interopDefaultLegacy(_Pagination);
|
94
101
|
var _Spin__default = /*#__PURE__*/_interopDefaultLegacy(_Spin);
|
@@ -110,7 +117,6 @@ var CountUp__default = /*#__PURE__*/_interopDefaultLegacy(CountUp);
|
|
110
117
|
var SwiperCore__default = /*#__PURE__*/_interopDefaultLegacy(SwiperCore);
|
111
118
|
var _Breadcrumb__default = /*#__PURE__*/_interopDefaultLegacy(_Breadcrumb);
|
112
119
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
113
|
-
var _Modal__default = /*#__PURE__*/_interopDefaultLegacy(_Modal);
|
114
120
|
var ProTable__default = /*#__PURE__*/_interopDefaultLegacy(ProTable);
|
115
121
|
var Player__default = /*#__PURE__*/_interopDefaultLegacy(Player);
|
116
122
|
var FlvPlayer__default = /*#__PURE__*/_interopDefaultLegacy(FlvPlayer);
|
@@ -640,6 +646,200 @@ var Index = WInput;
|
|
640
646
|
Index.TextArea = _Input__default['default'].TextArea;
|
641
647
|
WInput.defaultProps = {};
|
642
648
|
|
649
|
+
var _excluded$1 = ["value", "onChange", "beforeUpload", "uploadButton", "maxCount", "fetchMethord", "getFileList"];
|
650
|
+
|
651
|
+
function Index$1(_ref, ref) {
|
652
|
+
var value = _ref.value,
|
653
|
+
onChange = _ref.onChange,
|
654
|
+
beforeUpload = _ref.beforeUpload,
|
655
|
+
uploadButton = _ref.uploadButton,
|
656
|
+
maxCount = _ref.maxCount,
|
657
|
+
fetchMethord = _ref.fetchMethord,
|
658
|
+
getFileList = _ref.getFileList,
|
659
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
660
|
+
|
661
|
+
var _useState = React.useState([]),
|
662
|
+
_useState2 = _slicedToArray(_useState, 2),
|
663
|
+
fileList = _useState2[0],
|
664
|
+
setFileList = _useState2[1];
|
665
|
+
|
666
|
+
React.useEffect(function () {
|
667
|
+
setFileList(value ? value.split(',').map(function (url) {
|
668
|
+
return {
|
669
|
+
uid: Math.random().toString(36).slice(2, 36),
|
670
|
+
name: '',
|
671
|
+
status: 'done',
|
672
|
+
url: url
|
673
|
+
};
|
674
|
+
}) : []);
|
675
|
+
}, [value]);
|
676
|
+
React.useEffect(function () {
|
677
|
+
getFileList && getFileList(fileList.map(function (file) {
|
678
|
+
return file.url;
|
679
|
+
}), fileList);
|
680
|
+
}, [fileList]);
|
681
|
+
|
682
|
+
var _useState3 = React.useState(false),
|
683
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
684
|
+
previewVisible = _useState4[0],
|
685
|
+
setPreviewVisible = _useState4[1];
|
686
|
+
|
687
|
+
var _useState5 = React.useState(''),
|
688
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
689
|
+
previewImage = _useState6[0],
|
690
|
+
setPreviewImage = _useState6[1];
|
691
|
+
|
692
|
+
var _useState7 = React.useState(''),
|
693
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
694
|
+
previewTitle = _useState8[0],
|
695
|
+
setPreviewTitle = _useState8[1];
|
696
|
+
|
697
|
+
var getBase64 = function getBase64(file) {
|
698
|
+
return new Promise(function (resolve, reject) {
|
699
|
+
var reader = new FileReader();
|
700
|
+
reader.readAsDataURL(file);
|
701
|
+
|
702
|
+
reader.onload = function () {
|
703
|
+
return resolve(reader.result);
|
704
|
+
};
|
705
|
+
|
706
|
+
reader.onerror = function (error) {
|
707
|
+
return reject(error);
|
708
|
+
};
|
709
|
+
});
|
710
|
+
};
|
711
|
+
|
712
|
+
var handleCancel = function handleCancel() {
|
713
|
+
return setPreviewVisible(false);
|
714
|
+
};
|
715
|
+
|
716
|
+
var beforeUploadIn = function beforeUploadIn(file) {
|
717
|
+
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
|
718
|
+
|
719
|
+
if (!isJpgOrPng) {
|
720
|
+
_message__default['default'].error('You can only upload JPG/PNG file!');
|
721
|
+
}
|
722
|
+
|
723
|
+
var isLt2M = file.size / 1024 / 1024 < 2;
|
724
|
+
|
725
|
+
if (!isLt2M) {
|
726
|
+
_message__default['default'].error('Image must smaller than 2MB!');
|
727
|
+
}
|
728
|
+
|
729
|
+
return beforeUpload ? beforeUpload(file) : isJpgOrPng && isLt2M;
|
730
|
+
};
|
731
|
+
|
732
|
+
var handleChange = /*#__PURE__*/function () {
|
733
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(_ref2) {
|
734
|
+
var file, newFileList, url, urls;
|
735
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
736
|
+
while (1) {
|
737
|
+
switch (_context.prev = _context.next) {
|
738
|
+
case 0:
|
739
|
+
file = _ref2.file, newFileList = _ref2.fileList;
|
740
|
+
|
741
|
+
if (!(file.status === 'done')) {
|
742
|
+
_context.next = 6;
|
743
|
+
break;
|
744
|
+
}
|
745
|
+
|
746
|
+
_context.next = 4;
|
747
|
+
return fetchMethord ? fetchMethord(file.originFileObj) : getBase64(file.originFileObj);
|
748
|
+
|
749
|
+
case 4:
|
750
|
+
url = _context.sent;
|
751
|
+
|
752
|
+
if (!file.url) {
|
753
|
+
file.url = url;
|
754
|
+
}
|
755
|
+
|
756
|
+
case 6:
|
757
|
+
urls = newFileList.map(function (file) {
|
758
|
+
return file.url;
|
759
|
+
}).join(',');
|
760
|
+
onChange && onChange(urls);
|
761
|
+
setFileList(newFileList);
|
762
|
+
|
763
|
+
case 9:
|
764
|
+
case "end":
|
765
|
+
return _context.stop();
|
766
|
+
}
|
767
|
+
}
|
768
|
+
}, _callee);
|
769
|
+
}));
|
770
|
+
|
771
|
+
return function handleChange(_x) {
|
772
|
+
return _ref3.apply(this, arguments);
|
773
|
+
};
|
774
|
+
}();
|
775
|
+
|
776
|
+
var handlePreview = /*#__PURE__*/function () {
|
777
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(file) {
|
778
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
779
|
+
while (1) {
|
780
|
+
switch (_context2.prev = _context2.next) {
|
781
|
+
case 0:
|
782
|
+
if (!(!file.url && !file.preview)) {
|
783
|
+
_context2.next = 4;
|
784
|
+
break;
|
785
|
+
}
|
786
|
+
|
787
|
+
_context2.next = 3;
|
788
|
+
return getBase64(file.originFileObj);
|
789
|
+
|
790
|
+
case 3:
|
791
|
+
file.preview = _context2.sent;
|
792
|
+
|
793
|
+
case 4:
|
794
|
+
setPreviewImage(file.url || file.preview);
|
795
|
+
setPreviewVisible(true);
|
796
|
+
setPreviewTitle(file.name || file.url.substring(file.url.lastIndexOf('/') + 1));
|
797
|
+
|
798
|
+
case 7:
|
799
|
+
case "end":
|
800
|
+
return _context2.stop();
|
801
|
+
}
|
802
|
+
}
|
803
|
+
}, _callee2);
|
804
|
+
}));
|
805
|
+
|
806
|
+
return function handlePreview(_x2) {
|
807
|
+
return _ref4.apply(this, arguments);
|
808
|
+
};
|
809
|
+
}();
|
810
|
+
|
811
|
+
var uploadButtonDom = /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(icons.PlusOutlined, null), /*#__PURE__*/React__default['default'].createElement("div", {
|
812
|
+
style: {
|
813
|
+
marginTop: 8
|
814
|
+
}
|
815
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, "\u4E0A\u4F20")));
|
816
|
+
React.useImperativeHandle(ref, function () {
|
817
|
+
return {
|
818
|
+
fileList: fileList
|
819
|
+
};
|
820
|
+
});
|
821
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Upload__default['default'], _objectSpread2({
|
822
|
+
fileList: fileList,
|
823
|
+
listType: "picture-card",
|
824
|
+
beforeUpload: beforeUploadIn,
|
825
|
+
onPreview: handlePreview,
|
826
|
+
onChange: handleChange
|
827
|
+
}, props), fileList.length >= maxCount ? null : uploadButton ? uploadButton : uploadButtonDom), /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], {
|
828
|
+
visible: previewVisible,
|
829
|
+
title: previewTitle,
|
830
|
+
footer: null,
|
831
|
+
onCancel: handleCancel
|
832
|
+
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
833
|
+
alt: "example",
|
834
|
+
style: {
|
835
|
+
width: '100%'
|
836
|
+
},
|
837
|
+
src: previewImage
|
838
|
+
})));
|
839
|
+
}
|
840
|
+
|
841
|
+
var Upload = /*#__PURE__*/React__default['default'].forwardRef(Index$1);
|
842
|
+
|
643
843
|
var WInputNumber = function WInputNumber(props) {
|
644
844
|
var extraProps = _extends({}, props);
|
645
845
|
|
@@ -663,8 +863,8 @@ var RangePicker = function RangePicker(props) {
|
|
663
863
|
};
|
664
864
|
|
665
865
|
RangePicker.defaultProps = {};
|
666
|
-
var Index$
|
667
|
-
Index$
|
866
|
+
var Index$2 = WDatePicker;
|
867
|
+
Index$2.RangePicker = RangePicker;
|
668
868
|
|
669
869
|
var WRadio = function WRadio(props) {
|
670
870
|
var extraProps = _extends({}, props);
|
@@ -672,9 +872,9 @@ var WRadio = function WRadio(props) {
|
|
672
872
|
return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'], _objectSpread2({}, extraProps));
|
673
873
|
};
|
674
874
|
|
675
|
-
var Index$
|
676
|
-
Index$
|
677
|
-
Index$
|
875
|
+
var Index$3 = WRadio;
|
876
|
+
Index$3.Group = _Radio__default['default'].Group;
|
877
|
+
Index$3.Button = _Radio__default['default'].Button;
|
678
878
|
WRadio.defaultProps = {};
|
679
879
|
|
680
880
|
var WCheckbox = function WCheckbox(props) {
|
@@ -684,8 +884,8 @@ var WCheckbox = function WCheckbox(props) {
|
|
684
884
|
};
|
685
885
|
|
686
886
|
WCheckbox.defaultProps = {};
|
687
|
-
var Index$
|
688
|
-
Index$
|
887
|
+
var Index$4 = WCheckbox;
|
888
|
+
Index$4.Group = _Checkbox__default['default'].Group;
|
689
889
|
|
690
890
|
/*
|
691
891
|
* @Author: lijin
|
@@ -758,7 +958,7 @@ var calcHeight = function calcHeight(height) {
|
|
758
958
|
return document.body.clientHeight / 2160 * height;
|
759
959
|
};
|
760
960
|
|
761
|
-
var _excluded$
|
961
|
+
var _excluded$2 = ["className", "frameStyle", "style", "direction", "children"];
|
762
962
|
function FrameBox(_ref) {
|
763
963
|
var _classnames;
|
764
964
|
|
@@ -768,7 +968,7 @@ function FrameBox(_ref) {
|
|
768
968
|
_ref$direction = _ref.direction,
|
769
969
|
direction = _ref$direction === void 0 ? 'in' : _ref$direction,
|
770
970
|
children = _ref.children,
|
771
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
971
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
772
972
|
|
773
973
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({
|
774
974
|
className: classnames__default['default']((_classnames = {}, _defineProperty(_classnames, 'frame', true), _defineProperty(_classnames, className || '', true), _classnames)),
|
@@ -800,7 +1000,7 @@ function FrameBox(_ref) {
|
|
800
1000
|
}), children);
|
801
1001
|
}
|
802
1002
|
|
803
|
-
var _excluded$
|
1003
|
+
var _excluded$3 = ["request", "valueEnum", "onLoad", "children", "params"],
|
804
1004
|
_excluded2 = ["children"];
|
805
1005
|
|
806
1006
|
var WSelect = function WSelect(props) {
|
@@ -809,7 +1009,7 @@ var WSelect = function WSelect(props) {
|
|
809
1009
|
onLoad = props.onLoad,
|
810
1010
|
children = props.children,
|
811
1011
|
params = props.params,
|
812
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
1012
|
+
extraProps = _objectWithoutProperties(props, _excluded$3);
|
813
1013
|
|
814
1014
|
var _useState = React.useState([]),
|
815
1015
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -921,9 +1121,9 @@ var Option = function Option(props) {
|
|
921
1121
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, _objectSpread2({}, extraProps), children);
|
922
1122
|
};
|
923
1123
|
|
924
|
-
var Index$
|
925
|
-
Index$
|
926
|
-
var Select = /*#__PURE__*/React.memo(Index$
|
1124
|
+
var Index$5 = WSelect;
|
1125
|
+
Index$5.Option = Option;
|
1126
|
+
var Select = /*#__PURE__*/React.memo(Index$5);
|
927
1127
|
|
928
1128
|
//! moment.js
|
929
1129
|
//! version : 2.29.1
|
@@ -6586,7 +6786,7 @@ hooks.HTML5_FMT = {
|
|
6586
6786
|
MONTH: 'YYYY-MM', // <input type="month" />
|
6587
6787
|
};
|
6588
6788
|
|
6589
|
-
var _excluded$
|
6789
|
+
var _excluded$4 = ["defaultValue", "format", "value", "onChange"],
|
6590
6790
|
_excluded2$1 = ["defaultValue", "value", "format", "showTime", "onChange"];
|
6591
6791
|
|
6592
6792
|
var momentValue = function momentValue(value) {
|
@@ -6602,7 +6802,7 @@ var WDatePicker$1 = function WDatePicker(props) {
|
|
6602
6802
|
format = props.format,
|
6603
6803
|
value = props.value,
|
6604
6804
|
_onChange = props.onChange,
|
6605
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
6805
|
+
extraProps = _objectWithoutProperties(props, _excluded$4);
|
6606
6806
|
|
6607
6807
|
return /*#__PURE__*/React__default['default'].createElement(_DatePicker__default['default'], _objectSpread2({
|
6608
6808
|
defaultValue: momentValue(defaultValue),
|
@@ -6638,8 +6838,8 @@ var RangePicker$1 = function RangePicker(props) {
|
|
6638
6838
|
};
|
6639
6839
|
|
6640
6840
|
RangePicker$1.defaultProps = {};
|
6641
|
-
var Index$
|
6642
|
-
Index$
|
6841
|
+
var Index$6 = WDatePicker$1;
|
6842
|
+
Index$6.RangePicker = RangePicker$1;
|
6643
6843
|
|
6644
6844
|
var WSwitch = function WSwitch(props) {
|
6645
6845
|
var extraProps = _extends({}, props);
|
@@ -6739,7 +6939,7 @@ var NumericInput = /*#__PURE__*/function (_React$Component) {
|
|
6739
6939
|
return NumericInput;
|
6740
6940
|
}(React__default['default'].Component);
|
6741
6941
|
|
6742
|
-
var _excluded$
|
6942
|
+
var _excluded$5 = ["treeNodeLabelProp", "treeNodeValueProp", "treeNodeChildrenProp", "request", "onLoad", "params", "treeData"];
|
6743
6943
|
|
6744
6944
|
var TreeSelect = function TreeSelect(_ref) {
|
6745
6945
|
var _ref$treeNodeLabelPro = _ref.treeNodeLabelProp,
|
@@ -6752,7 +6952,7 @@ var TreeSelect = function TreeSelect(_ref) {
|
|
6752
6952
|
onLoad = _ref.onLoad,
|
6753
6953
|
params = _ref.params,
|
6754
6954
|
treePropsData = _ref.treeData,
|
6755
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
6955
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
6756
6956
|
|
6757
6957
|
var renderTree = function renderTree(data) {
|
6758
6958
|
return data === null || data === void 0 ? void 0 : data.map(function (item) {
|
@@ -6824,10 +7024,10 @@ var TreeSelect = function TreeSelect(_ref) {
|
|
6824
7024
|
}, props), !props.children ? renderTree(treeData) : props.children);
|
6825
7025
|
};
|
6826
7026
|
|
6827
|
-
var Index$
|
6828
|
-
Index$
|
7027
|
+
var Index$7 = TreeSelect;
|
7028
|
+
Index$7.TreeNode = _TreeSelect__default['default'].TreeNode;
|
6829
7029
|
|
6830
|
-
var _excluded$
|
7030
|
+
var _excluded$6 = ["request", "options", "onLoad", "value", "onChange", "params"];
|
6831
7031
|
|
6832
7032
|
var WCascader = function WCascader(props) {
|
6833
7033
|
var request = props.request,
|
@@ -6836,7 +7036,7 @@ var WCascader = function WCascader(props) {
|
|
6836
7036
|
value = props.value,
|
6837
7037
|
_onChange = props.onChange,
|
6838
7038
|
params = props.params,
|
6839
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
7039
|
+
extraProps = _objectWithoutProperties(props, _excluded$6);
|
6840
7040
|
|
6841
7041
|
var _useState = React.useState(null),
|
6842
7042
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -6903,8 +7103,8 @@ var WCascader = function WCascader(props) {
|
|
6903
7103
|
}, extraProps));
|
6904
7104
|
};
|
6905
7105
|
|
6906
|
-
var _excluded$
|
6907
|
-
var RangePicker$2 = Index$
|
7106
|
+
var _excluded$7 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm"];
|
7107
|
+
var RangePicker$2 = Index$6.RangePicker;
|
6908
7108
|
|
6909
7109
|
var WForm = function WForm(props, ref) {
|
6910
7110
|
var columns = props.columns,
|
@@ -6919,7 +7119,7 @@ var WForm = function WForm(props, ref) {
|
|
6919
7119
|
onSubmit = props.onSubmit,
|
6920
7120
|
onReset = props.onReset,
|
6921
7121
|
setForm = props.setForm,
|
6922
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
7122
|
+
extraProps = _objectWithoutProperties(props, _excluded$7);
|
6923
7123
|
|
6924
7124
|
var _Form$useForm = _Form__default['default'].useForm(),
|
6925
7125
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
@@ -7043,6 +7243,36 @@ var WForm = function WForm(props, ref) {
|
|
7043
7243
|
});
|
7044
7244
|
}
|
7045
7245
|
}, c.fieldProps), _extraProps2))));
|
7246
|
+
} else if (c.valueType == 'upload') {
|
7247
|
+
var _labelCol2 = {};
|
7248
|
+
|
7249
|
+
if (search && search.labelWidth) {
|
7250
|
+
_labelCol2.style = {
|
7251
|
+
width: search.labelWidth
|
7252
|
+
};
|
7253
|
+
}
|
7254
|
+
|
7255
|
+
return /*#__PURE__*/React__default['default'].createElement(_Col__default['default'], _objectSpread2(_objectSpread2({
|
7256
|
+
className: "pl12 pr12"
|
7257
|
+
}, colProps), {}, {
|
7258
|
+
key: c.dataIndex
|
7259
|
+
}), /*#__PURE__*/React__default['default'].createElement(_Form__default['default'].Item, _objectSpread2(_objectSpread2({
|
7260
|
+
initialValue: c.initialValue
|
7261
|
+
}, c.formItemProps), {}, {
|
7262
|
+
name: c.dataIndex,
|
7263
|
+
label: c.title,
|
7264
|
+
labelCol: _labelCol2
|
7265
|
+
}), /*#__PURE__*/React__default['default'].createElement(Upload, _objectSpread2({
|
7266
|
+
getFileList: function getFileList(fileListUrls, fileList) {
|
7267
|
+
setColumnsFields(function (preColumnsFields) {
|
7268
|
+
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, {
|
7269
|
+
fileListUrls: fileListUrls,
|
7270
|
+
fileList: fileList
|
7271
|
+
}));
|
7272
|
+
});
|
7273
|
+
},
|
7274
|
+
disabled: disabled
|
7275
|
+
}, c.fieldProps))));
|
7046
7276
|
} else if (c.valueType == 'treeSelect') {
|
7047
7277
|
var _extraProps3 = {};
|
7048
7278
|
|
@@ -7050,10 +7280,10 @@ var WForm = function WForm(props, ref) {
|
|
7050
7280
|
_extraProps3.request = c.request;
|
7051
7281
|
}
|
7052
7282
|
|
7053
|
-
var
|
7283
|
+
var _labelCol3 = {};
|
7054
7284
|
|
7055
7285
|
if (search && search.labelWidth) {
|
7056
|
-
|
7286
|
+
_labelCol3.style = {
|
7057
7287
|
width: search.labelWidth
|
7058
7288
|
};
|
7059
7289
|
}
|
@@ -7067,17 +7297,17 @@ var WForm = function WForm(props, ref) {
|
|
7067
7297
|
}, c.formItemProps), {}, {
|
7068
7298
|
name: c.dataIndex,
|
7069
7299
|
label: c.title,
|
7070
|
-
labelCol:
|
7071
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7300
|
+
labelCol: _labelCol3
|
7301
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$7, _objectSpread2(_objectSpread2({
|
7072
7302
|
disabled: disabled,
|
7073
7303
|
placeholder: "\u8BF7\u9009\u62E9",
|
7074
7304
|
onLoad: function onLoad(opt) {}
|
7075
7305
|
}, c.fieldProps), _extraProps3))));
|
7076
7306
|
} else if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear'].includes(c.valueType)) {
|
7077
|
-
var
|
7307
|
+
var _labelCol4 = {};
|
7078
7308
|
|
7079
7309
|
if (search && search.labelWidth) {
|
7080
|
-
|
7310
|
+
_labelCol4.style = {
|
7081
7311
|
width: search.labelWidth
|
7082
7312
|
};
|
7083
7313
|
}
|
@@ -7114,16 +7344,16 @@ var WForm = function WForm(props, ref) {
|
|
7114
7344
|
}, c.formItemProps), {}, {
|
7115
7345
|
name: c.dataIndex,
|
7116
7346
|
label: c.title,
|
7117
|
-
labelCol:
|
7118
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7347
|
+
labelCol: _labelCol4
|
7348
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
|
7119
7349
|
disabled: disabled,
|
7120
7350
|
placeholder: "\u8BF7\u8F93\u5165"
|
7121
7351
|
}, picker), showTime), c.fieldProps))));
|
7122
7352
|
} else if (c.valueType === 'dateRange' || c.valueType === 'dateTimeRange') {
|
7123
|
-
var
|
7353
|
+
var _labelCol5 = {};
|
7124
7354
|
|
7125
7355
|
if (search && search.labelWidth) {
|
7126
|
-
|
7356
|
+
_labelCol5.style = {
|
7127
7357
|
width: search.labelWidth
|
7128
7358
|
};
|
7129
7359
|
}
|
@@ -7147,7 +7377,7 @@ var WForm = function WForm(props, ref) {
|
|
7147
7377
|
}, c.formItemProps), {}, {
|
7148
7378
|
name: c.dataIndex,
|
7149
7379
|
label: c.title,
|
7150
|
-
labelCol:
|
7380
|
+
labelCol: _labelCol5
|
7151
7381
|
}), /*#__PURE__*/React__default['default'].createElement(RangePicker$2, _objectSpread2(_objectSpread2({
|
7152
7382
|
disabled: disabled
|
7153
7383
|
}, _showTime), c.fieldProps))));
|
@@ -7174,10 +7404,10 @@ var WForm = function WForm(props, ref) {
|
|
7174
7404
|
setColumnsFields(function (preColumnsFields) {
|
7175
7405
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
|
7176
7406
|
});
|
7177
|
-
var
|
7407
|
+
var _labelCol6 = {};
|
7178
7408
|
|
7179
7409
|
if (search && search.labelWidth) {
|
7180
|
-
|
7410
|
+
_labelCol6.style = {
|
7181
7411
|
width: search.labelWidth
|
7182
7412
|
};
|
7183
7413
|
}
|
@@ -7191,8 +7421,8 @@ var WForm = function WForm(props, ref) {
|
|
7191
7421
|
}, c.formItemProps), {}, {
|
7192
7422
|
name: c.dataIndex,
|
7193
7423
|
label: c.title,
|
7194
|
-
labelCol:
|
7195
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7424
|
+
labelCol: _labelCol6
|
7425
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$4.Group, _objectSpread2({
|
7196
7426
|
disabled: disabled,
|
7197
7427
|
options: options
|
7198
7428
|
}, c.fieldProps))));
|
@@ -7220,10 +7450,10 @@ var WForm = function WForm(props, ref) {
|
|
7220
7450
|
setColumnsFields(function (preColumnsFields) {
|
7221
7451
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options));
|
7222
7452
|
});
|
7223
|
-
var
|
7453
|
+
var _labelCol7 = {};
|
7224
7454
|
|
7225
7455
|
if (search && search.labelWidth) {
|
7226
|
-
|
7456
|
+
_labelCol7.style = {
|
7227
7457
|
width: search.labelWidth
|
7228
7458
|
};
|
7229
7459
|
}
|
@@ -7246,8 +7476,8 @@ var WForm = function WForm(props, ref) {
|
|
7246
7476
|
}, c.formItemProps), {}, {
|
7247
7477
|
name: c.dataIndex,
|
7248
7478
|
label: c.title,
|
7249
|
-
labelCol:
|
7250
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7479
|
+
labelCol: _labelCol7
|
7480
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$3.Group, _objectSpread2(_objectSpread2({
|
7251
7481
|
disabled: disabled
|
7252
7482
|
}, radioButtonProps), {}, {
|
7253
7483
|
options: _options
|
@@ -7266,10 +7496,10 @@ var WForm = function WForm(props, ref) {
|
|
7266
7496
|
}
|
7267
7497
|
}
|
7268
7498
|
|
7269
|
-
var
|
7499
|
+
var _labelCol8 = {};
|
7270
7500
|
|
7271
7501
|
if (search && search.labelWidth) {
|
7272
|
-
|
7502
|
+
_labelCol8.style = {
|
7273
7503
|
width: search.labelWidth
|
7274
7504
|
};
|
7275
7505
|
} // if (columnsFieldsRef.current) {
|
@@ -7290,15 +7520,15 @@ var WForm = function WForm(props, ref) {
|
|
7290
7520
|
}, c.formItemProps), {}, {
|
7291
7521
|
name: c.dataIndex,
|
7292
7522
|
label: c.title,
|
7293
|
-
labelCol:
|
7523
|
+
labelCol: _labelCol8
|
7294
7524
|
}), /*#__PURE__*/React__default['default'].createElement(WSwitch, _objectSpread2({
|
7295
7525
|
disabled: disabled
|
7296
7526
|
}, c.fieldProps))));
|
7297
7527
|
} else if (c.valueType === 'digit') {
|
7298
|
-
var
|
7528
|
+
var _labelCol9 = {};
|
7299
7529
|
|
7300
7530
|
if (search && search.labelWidth) {
|
7301
|
-
|
7531
|
+
_labelCol9.style = {
|
7302
7532
|
width: search.labelWidth
|
7303
7533
|
};
|
7304
7534
|
}
|
@@ -7312,16 +7542,16 @@ var WForm = function WForm(props, ref) {
|
|
7312
7542
|
}, c.formItemProps), {}, {
|
7313
7543
|
name: c.dataIndex,
|
7314
7544
|
label: c.title,
|
7315
|
-
labelCol:
|
7545
|
+
labelCol: _labelCol9
|
7316
7546
|
}), /*#__PURE__*/React__default['default'].createElement(NumericInput, _objectSpread2({
|
7317
7547
|
disabled: disabled,
|
7318
7548
|
placeholder: "\u8BF7\u8F93\u5165\u53C2\u6570(double/int)"
|
7319
7549
|
}, c.fieldProps))));
|
7320
7550
|
} else if (c.renderFormItem) {
|
7321
|
-
var
|
7551
|
+
var _labelCol10 = {};
|
7322
7552
|
|
7323
7553
|
if (search && search.labelWidth) {
|
7324
|
-
|
7554
|
+
_labelCol10.style = {
|
7325
7555
|
width: search.labelWidth
|
7326
7556
|
};
|
7327
7557
|
}
|
@@ -7342,13 +7572,13 @@ var WForm = function WForm(props, ref) {
|
|
7342
7572
|
}, c.formItemProps), {}, {
|
7343
7573
|
name: c.dataIndex,
|
7344
7574
|
label: c.title,
|
7345
|
-
labelCol:
|
7575
|
+
labelCol: _labelCol10
|
7346
7576
|
}), baseitem)) : null;
|
7347
7577
|
} else if (c.valueType === 'textarea') {
|
7348
|
-
var
|
7578
|
+
var _labelCol11 = {};
|
7349
7579
|
|
7350
7580
|
if (search && search.labelWidth) {
|
7351
|
-
|
7581
|
+
_labelCol11.style = {
|
7352
7582
|
width: search.labelWidth
|
7353
7583
|
};
|
7354
7584
|
}
|
@@ -7362,17 +7592,17 @@ var WForm = function WForm(props, ref) {
|
|
7362
7592
|
}, c.formItemProps), {}, {
|
7363
7593
|
name: c.dataIndex,
|
7364
7594
|
label: c.title,
|
7365
|
-
labelCol:
|
7595
|
+
labelCol: _labelCol11
|
7366
7596
|
}), /*#__PURE__*/React__default['default'].createElement(Index.TextArea, _objectSpread2({
|
7367
7597
|
rows: 4,
|
7368
7598
|
disabled: disabled,
|
7369
7599
|
placeholder: "\u8BF7\u8F93\u5165"
|
7370
7600
|
}, c.fieldProps))));
|
7371
7601
|
} else if (c.valueType === 'inputNumber') {
|
7372
|
-
var
|
7602
|
+
var _labelCol12 = {};
|
7373
7603
|
|
7374
7604
|
if (search && search.labelWidth) {
|
7375
|
-
|
7605
|
+
_labelCol12.style = {
|
7376
7606
|
width: search.labelWidth
|
7377
7607
|
};
|
7378
7608
|
}
|
@@ -7386,16 +7616,16 @@ var WForm = function WForm(props, ref) {
|
|
7386
7616
|
}, c.formItemProps), {}, {
|
7387
7617
|
name: c.dataIndex,
|
7388
7618
|
label: c.title,
|
7389
|
-
labelCol:
|
7619
|
+
labelCol: _labelCol12
|
7390
7620
|
}), /*#__PURE__*/React__default['default'].createElement(WInputNumber, _objectSpread2({
|
7391
7621
|
disabled: disabled,
|
7392
7622
|
placeholder: "\u8BF7\u8F93\u5165"
|
7393
7623
|
}, c.fieldProps))));
|
7394
7624
|
} else {
|
7395
|
-
var
|
7625
|
+
var _labelCol13 = {};
|
7396
7626
|
|
7397
7627
|
if (search && search.labelWidth) {
|
7398
|
-
|
7628
|
+
_labelCol13.style = {
|
7399
7629
|
width: search.labelWidth
|
7400
7630
|
};
|
7401
7631
|
}
|
@@ -7409,7 +7639,7 @@ var WForm = function WForm(props, ref) {
|
|
7409
7639
|
}, c.formItemProps), {}, {
|
7410
7640
|
name: c.dataIndex,
|
7411
7641
|
label: c.title,
|
7412
|
-
labelCol:
|
7642
|
+
labelCol: _labelCol13
|
7413
7643
|
}), /*#__PURE__*/React__default['default'].createElement(Index, _objectSpread2({
|
7414
7644
|
disabled: disabled,
|
7415
7645
|
placeholder: "\u8BF7\u8F93\u5165"
|
@@ -7482,6 +7712,36 @@ var WForm = function WForm(props, ref) {
|
|
7482
7712
|
}
|
7483
7713
|
}
|
7484
7714
|
}, c.fieldProps), _extraProps4))));
|
7715
|
+
} else if (c.valueType == 'upload') {
|
7716
|
+
var _labelCol14 = {};
|
7717
|
+
|
7718
|
+
if (search && search.labelWidth) {
|
7719
|
+
_labelCol14.style = {
|
7720
|
+
width: search.labelWidth
|
7721
|
+
};
|
7722
|
+
}
|
7723
|
+
|
7724
|
+
return /*#__PURE__*/React__default['default'].createElement(_Col__default['default'], _objectSpread2(_objectSpread2({
|
7725
|
+
className: "pl12 pr12"
|
7726
|
+
}, colProps), {}, {
|
7727
|
+
key: c.dataIndex
|
7728
|
+
}), /*#__PURE__*/React__default['default'].createElement(_Form__default['default'].Item, _objectSpread2(_objectSpread2({
|
7729
|
+
initialValue: c.initialValue
|
7730
|
+
}, c.formItemProps), {}, {
|
7731
|
+
name: c.dataIndex,
|
7732
|
+
label: c.title,
|
7733
|
+
labelCol: _labelCol14
|
7734
|
+
}), /*#__PURE__*/React__default['default'].createElement(Upload, _objectSpread2({
|
7735
|
+
getFileList: function getFileList(fileListUrls, fileList) {
|
7736
|
+
setColumnsFields(function (preColumnsFields) {
|
7737
|
+
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, {
|
7738
|
+
fileListUrls: fileListUrls,
|
7739
|
+
fileList: fileList
|
7740
|
+
}));
|
7741
|
+
});
|
7742
|
+
},
|
7743
|
+
disabled: disabled
|
7744
|
+
}, c.fieldProps))));
|
7485
7745
|
} else if (c.valueType == 'cascader') {
|
7486
7746
|
var _extraProps5 = {};
|
7487
7747
|
|
@@ -7489,10 +7749,10 @@ var WForm = function WForm(props, ref) {
|
|
7489
7749
|
_extraProps5.request = c.request;
|
7490
7750
|
}
|
7491
7751
|
|
7492
|
-
var
|
7752
|
+
var _labelCol15 = {};
|
7493
7753
|
|
7494
7754
|
if (search && search.labelWidth) {
|
7495
|
-
|
7755
|
+
_labelCol15.style = {
|
7496
7756
|
width: search.labelWidth
|
7497
7757
|
};
|
7498
7758
|
}
|
@@ -7506,7 +7766,7 @@ var WForm = function WForm(props, ref) {
|
|
7506
7766
|
}, c.formItemProps), {}, {
|
7507
7767
|
name: c.dataIndex,
|
7508
7768
|
label: c.title,
|
7509
|
-
labelCol:
|
7769
|
+
labelCol: _labelCol15
|
7510
7770
|
}), /*#__PURE__*/React__default['default'].createElement(WCascader, _objectSpread2(_objectSpread2({
|
7511
7771
|
placeholder: "\u8BF7\u9009\u62E9",
|
7512
7772
|
disabled: disabled,
|
@@ -7523,10 +7783,10 @@ var WForm = function WForm(props, ref) {
|
|
7523
7783
|
_extraProps6.request = c.request;
|
7524
7784
|
}
|
7525
7785
|
|
7526
|
-
var
|
7786
|
+
var _labelCol16 = {};
|
7527
7787
|
|
7528
7788
|
if (search && search.labelWidth) {
|
7529
|
-
|
7789
|
+
_labelCol16.style = {
|
7530
7790
|
width: search.labelWidth
|
7531
7791
|
};
|
7532
7792
|
}
|
@@ -7540,17 +7800,17 @@ var WForm = function WForm(props, ref) {
|
|
7540
7800
|
}, c.formItemProps), {}, {
|
7541
7801
|
name: c.dataIndex,
|
7542
7802
|
label: c.title,
|
7543
|
-
labelCol:
|
7544
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7803
|
+
labelCol: _labelCol16
|
7804
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$7, _objectSpread2(_objectSpread2({
|
7545
7805
|
disabled: disabled,
|
7546
7806
|
placeholder: "\u8BF7\u9009\u62E9",
|
7547
7807
|
onLoad: function onLoad(opt) {}
|
7548
7808
|
}, c.fieldProps), _extraProps6))));
|
7549
7809
|
} else if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear'].includes(c.valueType)) {
|
7550
|
-
var
|
7810
|
+
var _labelCol17 = {};
|
7551
7811
|
|
7552
7812
|
if (search && search.labelWidth) {
|
7553
|
-
|
7813
|
+
_labelCol17.style = {
|
7554
7814
|
width: search.labelWidth
|
7555
7815
|
};
|
7556
7816
|
}
|
@@ -7587,16 +7847,16 @@ var WForm = function WForm(props, ref) {
|
|
7587
7847
|
}, c.formItemProps), {}, {
|
7588
7848
|
name: c.dataIndex,
|
7589
7849
|
label: c.title,
|
7590
|
-
labelCol:
|
7591
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7850
|
+
labelCol: _labelCol17
|
7851
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
|
7592
7852
|
disabled: disabled,
|
7593
7853
|
placeholder: "\u8BF7\u8F93\u5165"
|
7594
7854
|
}, picker), showTime), c.fieldProps))));
|
7595
7855
|
} else if (c.valueType === 'dateRange' || c.valueType === 'dateTimeRange') {
|
7596
|
-
var
|
7856
|
+
var _labelCol18 = {};
|
7597
7857
|
|
7598
7858
|
if (search && search.labelWidth) {
|
7599
|
-
|
7859
|
+
_labelCol18.style = {
|
7600
7860
|
width: search.labelWidth
|
7601
7861
|
};
|
7602
7862
|
}
|
@@ -7620,7 +7880,7 @@ var WForm = function WForm(props, ref) {
|
|
7620
7880
|
}, c.formItemProps), {}, {
|
7621
7881
|
name: c.dataIndex,
|
7622
7882
|
label: c.title,
|
7623
|
-
labelCol:
|
7883
|
+
labelCol: _labelCol18
|
7624
7884
|
}), /*#__PURE__*/React__default['default'].createElement(RangePicker$2, _objectSpread2(_objectSpread2({
|
7625
7885
|
disabled: disabled
|
7626
7886
|
}, _showTime2), c.fieldProps))));
|
@@ -7647,10 +7907,10 @@ var WForm = function WForm(props, ref) {
|
|
7647
7907
|
setColumnsFields(function (preColumnsFields) {
|
7648
7908
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
|
7649
7909
|
});
|
7650
|
-
var
|
7910
|
+
var _labelCol19 = {};
|
7651
7911
|
|
7652
7912
|
if (search && search.labelWidth) {
|
7653
|
-
|
7913
|
+
_labelCol19.style = {
|
7654
7914
|
width: search.labelWidth
|
7655
7915
|
};
|
7656
7916
|
}
|
@@ -7664,8 +7924,8 @@ var WForm = function WForm(props, ref) {
|
|
7664
7924
|
}, c.formItemProps), {}, {
|
7665
7925
|
name: c.dataIndex,
|
7666
7926
|
label: c.title,
|
7667
|
-
labelCol:
|
7668
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7927
|
+
labelCol: _labelCol19
|
7928
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$4.Group, _objectSpread2({
|
7669
7929
|
disabled: disabled,
|
7670
7930
|
options: options
|
7671
7931
|
}, c.fieldProps))));
|
@@ -7693,10 +7953,10 @@ var WForm = function WForm(props, ref) {
|
|
7693
7953
|
setColumnsFields(function (preColumnsFields) {
|
7694
7954
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options3));
|
7695
7955
|
});
|
7696
|
-
var
|
7956
|
+
var _labelCol20 = {};
|
7697
7957
|
|
7698
7958
|
if (search && search.labelWidth) {
|
7699
|
-
|
7959
|
+
_labelCol20.style = {
|
7700
7960
|
width: search.labelWidth
|
7701
7961
|
};
|
7702
7962
|
}
|
@@ -7719,8 +7979,8 @@ var WForm = function WForm(props, ref) {
|
|
7719
7979
|
}, c.formItemProps), {}, {
|
7720
7980
|
name: c.dataIndex,
|
7721
7981
|
label: c.title,
|
7722
|
-
labelCol:
|
7723
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7982
|
+
labelCol: _labelCol20
|
7983
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$3.Group, _objectSpread2(_objectSpread2({
|
7724
7984
|
disabled: disabled
|
7725
7985
|
}, radioButtonProps), {}, {
|
7726
7986
|
options: _options3
|
@@ -7739,10 +7999,10 @@ var WForm = function WForm(props, ref) {
|
|
7739
7999
|
}
|
7740
8000
|
}
|
7741
8001
|
|
7742
|
-
var
|
8002
|
+
var _labelCol21 = {};
|
7743
8003
|
|
7744
8004
|
if (search && search.labelWidth) {
|
7745
|
-
|
8005
|
+
_labelCol21.style = {
|
7746
8006
|
width: search.labelWidth
|
7747
8007
|
};
|
7748
8008
|
} // if (columnsFieldsRef.current) {
|
@@ -7763,15 +8023,15 @@ var WForm = function WForm(props, ref) {
|
|
7763
8023
|
}, c.formItemProps), {}, {
|
7764
8024
|
name: c.dataIndex,
|
7765
8025
|
label: c.title,
|
7766
|
-
labelCol:
|
8026
|
+
labelCol: _labelCol21
|
7767
8027
|
}), /*#__PURE__*/React__default['default'].createElement(WSwitch, _objectSpread2({
|
7768
8028
|
disabled: disabled
|
7769
8029
|
}, c.fieldProps))));
|
7770
8030
|
} else if (c.valueType === 'digit') {
|
7771
|
-
var
|
8031
|
+
var _labelCol22 = {};
|
7772
8032
|
|
7773
8033
|
if (search && search.labelWidth) {
|
7774
|
-
|
8034
|
+
_labelCol22.style = {
|
7775
8035
|
width: search.labelWidth
|
7776
8036
|
};
|
7777
8037
|
}
|
@@ -7785,16 +8045,16 @@ var WForm = function WForm(props, ref) {
|
|
7785
8045
|
}, c.formItemProps), {}, {
|
7786
8046
|
name: c.dataIndex,
|
7787
8047
|
label: c.title,
|
7788
|
-
labelCol:
|
8048
|
+
labelCol: _labelCol22
|
7789
8049
|
}), /*#__PURE__*/React__default['default'].createElement(NumericInput, _objectSpread2({
|
7790
8050
|
disabled: disabled,
|
7791
8051
|
placeholder: "\u8BF7\u8F93\u5165\u53C2\u6570(double/int)"
|
7792
8052
|
}, c.fieldProps))));
|
7793
8053
|
} else if (c.renderFormItem) {
|
7794
|
-
var
|
8054
|
+
var _labelCol23 = {};
|
7795
8055
|
|
7796
8056
|
if (search && search.labelWidth) {
|
7797
|
-
|
8057
|
+
_labelCol23.style = {
|
7798
8058
|
width: search.labelWidth
|
7799
8059
|
};
|
7800
8060
|
}
|
@@ -7815,13 +8075,13 @@ var WForm = function WForm(props, ref) {
|
|
7815
8075
|
}, c.formItemProps), {}, {
|
7816
8076
|
name: c.dataIndex,
|
7817
8077
|
label: c.title,
|
7818
|
-
labelCol:
|
8078
|
+
labelCol: _labelCol23
|
7819
8079
|
}), baseitem)) : null;
|
7820
8080
|
} else if (c.valueType === 'textarea') {
|
7821
|
-
var
|
8081
|
+
var _labelCol24 = {};
|
7822
8082
|
|
7823
8083
|
if (search && search.labelWidth) {
|
7824
|
-
|
8084
|
+
_labelCol24.style = {
|
7825
8085
|
width: search.labelWidth
|
7826
8086
|
};
|
7827
8087
|
}
|
@@ -7835,17 +8095,17 @@ var WForm = function WForm(props, ref) {
|
|
7835
8095
|
}, c.formItemProps), {}, {
|
7836
8096
|
name: c.dataIndex,
|
7837
8097
|
label: c.title,
|
7838
|
-
labelCol:
|
8098
|
+
labelCol: _labelCol24
|
7839
8099
|
}), /*#__PURE__*/React__default['default'].createElement(Index.TextArea, _objectSpread2({
|
7840
8100
|
rows: 4,
|
7841
8101
|
disabled: disabled,
|
7842
8102
|
placeholder: "\u8BF7\u8F93\u5165"
|
7843
8103
|
}, c.fieldProps))));
|
7844
8104
|
} else if (c.valueType === 'inputNumber') {
|
7845
|
-
var
|
8105
|
+
var _labelCol25 = {};
|
7846
8106
|
|
7847
8107
|
if (search && search.labelWidth) {
|
7848
|
-
|
8108
|
+
_labelCol25.style = {
|
7849
8109
|
width: search.labelWidth
|
7850
8110
|
};
|
7851
8111
|
}
|
@@ -7859,16 +8119,16 @@ var WForm = function WForm(props, ref) {
|
|
7859
8119
|
}, c.formItemProps), {}, {
|
7860
8120
|
name: c.dataIndex,
|
7861
8121
|
label: c.title,
|
7862
|
-
labelCol:
|
8122
|
+
labelCol: _labelCol25
|
7863
8123
|
}), /*#__PURE__*/React__default['default'].createElement(WInputNumber, _objectSpread2({
|
7864
8124
|
disabled: disabled,
|
7865
8125
|
placeholder: "\u8BF7\u8F93\u5165"
|
7866
8126
|
}, c.fieldProps))));
|
7867
8127
|
} else {
|
7868
|
-
var
|
8128
|
+
var _labelCol26 = {};
|
7869
8129
|
|
7870
8130
|
if (search && search.labelWidth) {
|
7871
|
-
|
8131
|
+
_labelCol26.style = {
|
7872
8132
|
width: search.labelWidth
|
7873
8133
|
};
|
7874
8134
|
}
|
@@ -7882,7 +8142,7 @@ var WForm = function WForm(props, ref) {
|
|
7882
8142
|
}, c.formItemProps), {}, {
|
7883
8143
|
name: c.dataIndex,
|
7884
8144
|
label: c.title,
|
7885
|
-
labelCol:
|
8145
|
+
labelCol: _labelCol26
|
7886
8146
|
}), /*#__PURE__*/React__default['default'].createElement(Index, _objectSpread2({
|
7887
8147
|
disabled: disabled,
|
7888
8148
|
placeholder: "\u8BF7\u8F93\u5165"
|
@@ -7951,6 +8211,65 @@ var WForm = function WForm(props, ref) {
|
|
7951
8211
|
return filterObj(searchForm);
|
7952
8212
|
};
|
7953
8213
|
|
8214
|
+
var getFormValues = function getFormValues() {
|
8215
|
+
var searchForm = form.getFieldsValue();
|
8216
|
+
filterFormColumns.forEach(function (c) {
|
8217
|
+
if (c.search && c.search.transform) {
|
8218
|
+
var transformObj = c.search.transform(searchForm[c.dataIndex]);
|
8219
|
+
searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
|
8220
|
+
|
8221
|
+
if (!transformObj[c.dataIndex]) {
|
8222
|
+
delete searchForm[c.dataIndex];
|
8223
|
+
}
|
8224
|
+
|
8225
|
+
return false;
|
8226
|
+
}
|
8227
|
+
|
8228
|
+
if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear', 'dateRange', 'dateTimeRange'].includes(c.valueType)) {
|
8229
|
+
if (c.valueType === 'date' && searchForm[c.dataIndex]) {
|
8230
|
+
var _c$fieldProps7;
|
8231
|
+
|
8232
|
+
searchForm[c.dataIndex] = searchForm[c.dataIndex] && hooks(searchForm[c.dataIndex]).format((c === null || c === void 0 ? void 0 : (_c$fieldProps7 = c.fieldProps) === null || _c$fieldProps7 === void 0 ? void 0 : _c$fieldProps7.format) || 'YYYY-MM-DD');
|
8233
|
+
}
|
8234
|
+
|
8235
|
+
if (c.valueType === 'dateTime' && searchForm[c.dataIndex]) {
|
8236
|
+
var _c$fieldProps8;
|
8237
|
+
|
8238
|
+
searchForm[c.dataIndex] = searchForm[c.dataIndex] && hooks(searchForm[c.dataIndex]).format((c === null || c === void 0 ? void 0 : (_c$fieldProps8 = c.fieldProps) === null || _c$fieldProps8 === void 0 ? void 0 : _c$fieldProps8.format) || 'YYYY-MM-DD HH:mm:ss');
|
8239
|
+
}
|
8240
|
+
|
8241
|
+
if (c.valueType === 'dateMonth' && searchForm[c.dataIndex]) {
|
8242
|
+
var _c$fieldProps9;
|
8243
|
+
|
8244
|
+
searchForm[c.dataIndex] = searchForm[c.dataIndex] && hooks(searchForm[c.dataIndex]).format((c === null || c === void 0 ? void 0 : (_c$fieldProps9 = c.fieldProps) === null || _c$fieldProps9 === void 0 ? void 0 : _c$fieldProps9.format) || 'YYYY-MM');
|
8245
|
+
}
|
8246
|
+
|
8247
|
+
if (c.valueType === 'dateYear' && searchForm[c.dataIndex]) {
|
8248
|
+
var _c$fieldProps10;
|
8249
|
+
|
8250
|
+
searchForm[c.dataIndex] = searchForm[c.dataIndex] && hooks(searchForm[c.dataIndex]).format((c === null || c === void 0 ? void 0 : (_c$fieldProps10 = c.fieldProps) === null || _c$fieldProps10 === void 0 ? void 0 : _c$fieldProps10.format) || 'YYYY');
|
8251
|
+
}
|
8252
|
+
|
8253
|
+
if (c.valueType === 'dateRange' && searchForm[c.dataIndex]) {
|
8254
|
+
searchForm[c.dataIndex] = searchForm[c.dataIndex].map(function (item) {
|
8255
|
+
var _c$fieldProps11;
|
8256
|
+
|
8257
|
+
return item && searchForm[c.dataIndex] && hooks(item).format((c === null || c === void 0 ? void 0 : (_c$fieldProps11 = c.fieldProps) === null || _c$fieldProps11 === void 0 ? void 0 : _c$fieldProps11.format) || 'YYYY-MM-DD');
|
8258
|
+
});
|
8259
|
+
}
|
8260
|
+
|
8261
|
+
if (c.valueType === 'dateTimeRange' && searchForm[c.dataIndex]) {
|
8262
|
+
searchForm[c.dataIndex] = searchForm[c.dataIndex].map(function (item) {
|
8263
|
+
var _c$fieldProps12;
|
8264
|
+
|
8265
|
+
return item && hooks(item).format((c === null || c === void 0 ? void 0 : (_c$fieldProps12 = c.fieldProps) === null || _c$fieldProps12 === void 0 ? void 0 : _c$fieldProps12.format) || 'YYYY-MM-DD HH:mm:ss');
|
8266
|
+
});
|
8267
|
+
}
|
8268
|
+
}
|
8269
|
+
});
|
8270
|
+
return filterObj(searchForm);
|
8271
|
+
};
|
8272
|
+
|
7954
8273
|
var handleRest = function handleRest() {
|
7955
8274
|
var _form$resetFields;
|
7956
8275
|
|
@@ -7985,7 +8304,8 @@ var WForm = function WForm(props, ref) {
|
|
7985
8304
|
handleSubmit: form.submit,
|
7986
8305
|
handleRest: handleRest,
|
7987
8306
|
resetFields: handleRest,
|
7988
|
-
setFieldsValue: setFieldsValue
|
8307
|
+
setFieldsValue: setFieldsValue,
|
8308
|
+
getFormValues: getFormValues
|
7989
8309
|
};
|
7990
8310
|
});
|
7991
8311
|
React.useEffect(function () {
|
@@ -8057,7 +8377,7 @@ var WForm = function WForm(props, ref) {
|
|
8057
8377
|
|
8058
8378
|
var WForm$1 = /*#__PURE__*/React__default['default'].forwardRef(WForm);
|
8059
8379
|
|
8060
|
-
var _excluded$
|
8380
|
+
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"];
|
8061
8381
|
|
8062
8382
|
function Table(_ref) {
|
8063
8383
|
var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
|
@@ -8089,7 +8409,7 @@ function Table(_ref) {
|
|
8089
8409
|
frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
|
8090
8410
|
formRef = _ref.formRef,
|
8091
8411
|
none = _ref.none,
|
8092
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
8412
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
8093
8413
|
|
8094
8414
|
var _useState = React.useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
|
8095
8415
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -8350,7 +8670,7 @@ function Table(_ref) {
|
|
8350
8670
|
left: 6
|
8351
8671
|
} : {}),
|
8352
8672
|
className: "td ".concat(showColumns[0].fixed == 'left' ? 'fixedLeft' : '')
|
8353
|
-
}, /*#__PURE__*/React__default['default'].createElement(Index$
|
8673
|
+
}, /*#__PURE__*/React__default['default'].createElement(Index$4, {
|
8354
8674
|
checked: (_ref2 = [].concat(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || []), _toConsumableArray(selectedRowKeys))) === null || _ref2 === void 0 ? void 0 : _ref2.includes(key),
|
8355
8675
|
onClick: function onClick(e) {
|
8356
8676
|
return e.stopPropagation();
|
@@ -8390,7 +8710,7 @@ function Table(_ref) {
|
|
8390
8710
|
left: 6
|
8391
8711
|
} : {}),
|
8392
8712
|
className: "td ".concat(showColumns[0].fixed == 'left' ? 'fixedLeft' : '')
|
8393
|
-
}, /*#__PURE__*/React__default['default'].createElement(Index$
|
8713
|
+
}, /*#__PURE__*/React__default['default'].createElement(Index$3, {
|
8394
8714
|
checked: (_ref3 = [].concat(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || []), _toConsumableArray(selectedRowKeys))) === null || _ref3 === void 0 ? void 0 : _ref3.includes(key),
|
8395
8715
|
onClick: function onClick(e) {
|
8396
8716
|
return e.stopPropagation();
|
@@ -8570,7 +8890,7 @@ function Table(_ref) {
|
|
8570
8890
|
left: 6
|
8571
8891
|
} : {}),
|
8572
8892
|
className: "td ".concat(((_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.fixed) == 'left' ? 'fixedLeft' : '')
|
8573
|
-
}, /*#__PURE__*/React__default['default'].createElement(Index$
|
8893
|
+
}, /*#__PURE__*/React__default['default'].createElement(Index$4, {
|
8574
8894
|
checked: dataSource.every(function (record) {
|
8575
8895
|
return selectedRowKeys.includes(typeof rowKey === 'function' ? record[rowKey(record)] : record[rowKey]);
|
8576
8896
|
}),
|
@@ -8629,7 +8949,7 @@ Table.defaultProps = {
|
|
8629
8949
|
};
|
8630
8950
|
var index$1 = /*#__PURE__*/React.memo(Table);
|
8631
8951
|
|
8632
|
-
var _excluded$
|
8952
|
+
var _excluded$9 = ["height", "width", "count", "style", "numberStyle"],
|
8633
8953
|
_excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
|
8634
8954
|
|
8635
8955
|
var Number = function Number(_ref) {
|
@@ -8639,7 +8959,7 @@ var Number = function Number(_ref) {
|
|
8639
8959
|
count = _ref$count === void 0 ? 0 : _ref$count,
|
8640
8960
|
style = _ref.style,
|
8641
8961
|
numberStyle = _ref.numberStyle,
|
8642
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
8962
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
8643
8963
|
|
8644
8964
|
// 上次的值
|
8645
8965
|
var _useState = React.useState(0),
|
@@ -8759,7 +9079,7 @@ Number.defaultProps = {
|
|
8759
9079
|
height: 40
|
8760
9080
|
};
|
8761
9081
|
|
8762
|
-
var Index$
|
9082
|
+
var Index$8 = function Index(props) {
|
8763
9083
|
var count = props.count,
|
8764
9084
|
_props$numberCount = props.numberCount,
|
8765
9085
|
numberCount = _props$numberCount === void 0 ? 5 : _props$numberCount,
|
@@ -8803,20 +9123,20 @@ var Index$7 = function Index(props) {
|
|
8803
9123
|
}));
|
8804
9124
|
};
|
8805
9125
|
|
8806
|
-
var _excluded$
|
9126
|
+
var _excluded$a = ["duration"];
|
8807
9127
|
|
8808
|
-
var Index$
|
9128
|
+
var Index$9 = function Index(props) {
|
8809
9129
|
var _props$duration = props.duration,
|
8810
9130
|
duration = _props$duration === void 0 ? 2.75 : _props$duration,
|
8811
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
9131
|
+
extraProps = _objectWithoutProperties(props, _excluded$a);
|
8812
9132
|
return /*#__PURE__*/React__default['default'].createElement(CountUp__default['default'], _objectSpread2({
|
8813
9133
|
duration: duration
|
8814
9134
|
}, extraProps));
|
8815
9135
|
};
|
8816
9136
|
|
8817
|
-
Index$
|
9137
|
+
Index$9.defaultProps = {};
|
8818
9138
|
|
8819
|
-
var _excluded$
|
9139
|
+
var _excluded$b = ["list", "render", "none", "partSize"];
|
8820
9140
|
|
8821
9141
|
function AutoScroll(props) {
|
8822
9142
|
var inner1 = React.useRef();
|
@@ -8895,13 +9215,13 @@ function AutoScroll(props) {
|
|
8895
9215
|
}));
|
8896
9216
|
}
|
8897
9217
|
|
8898
|
-
var Index$
|
9218
|
+
var Index$a = function Index(_ref) {
|
8899
9219
|
var list = _ref.list,
|
8900
9220
|
render = _ref.render,
|
8901
9221
|
none = _ref.none,
|
8902
9222
|
_ref$partSize = _ref.partSize,
|
8903
9223
|
partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
|
8904
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
9224
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$b);
|
8905
9225
|
|
8906
9226
|
var _useState = React.useState([]),
|
8907
9227
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -8984,11 +9304,11 @@ var Index$9 = function Index(_ref) {
|
|
8984
9304
|
}, none || '暂无数据');
|
8985
9305
|
};
|
8986
9306
|
|
8987
|
-
var _excluded$
|
9307
|
+
var _excluded$c = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
|
8988
9308
|
|
8989
9309
|
SwiperCore__default['default'].use([SwiperCore.Pagination, SwiperCore.Navigation, SwiperCore.Autoplay, SwiperCore.Virtual]);
|
8990
9310
|
|
8991
|
-
var Index$
|
9311
|
+
var Index$b = function Index(props) {
|
8992
9312
|
var data = props.data,
|
8993
9313
|
_onClick = props.onClick,
|
8994
9314
|
_props$slidesPerView = props.slidesPerView,
|
@@ -8996,7 +9316,7 @@ var Index$a = function Index(props) {
|
|
8996
9316
|
rowKey = props.rowKey,
|
8997
9317
|
onSwiperChange = props.onSwiperChange,
|
8998
9318
|
renderItem = props.renderItem,
|
8999
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
9319
|
+
extraProps = _objectWithoutProperties(props, _excluded$c);
|
9000
9320
|
|
9001
9321
|
var _useState = React.useState(null),
|
9002
9322
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -9051,7 +9371,7 @@ var Index$a = function Index(props) {
|
|
9051
9371
|
}));
|
9052
9372
|
};
|
9053
9373
|
|
9054
|
-
Index$
|
9374
|
+
Index$b.defaultProps = {};
|
9055
9375
|
|
9056
9376
|
function _extends$1() {
|
9057
9377
|
_extends$1 = Object.assign || function (target) {
|
@@ -9647,7 +9967,7 @@ function createBrowserHistory(props) {
|
|
9647
9967
|
return history;
|
9648
9968
|
}
|
9649
9969
|
|
9650
|
-
var _excluded$
|
9970
|
+
var _excluded$d = ["routes", "className"];
|
9651
9971
|
var history = createBrowserHistory();
|
9652
9972
|
|
9653
9973
|
function itemRender(route, params, routes, paths) {
|
@@ -9662,10 +9982,10 @@ function itemRender(route, params, routes, paths) {
|
|
9662
9982
|
}, route.breadcrumbName);
|
9663
9983
|
}
|
9664
9984
|
|
9665
|
-
var Index$
|
9985
|
+
var Index$c = function Index(_ref) {
|
9666
9986
|
var routes = _ref.routes,
|
9667
9987
|
className = _ref.className,
|
9668
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
9988
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
9669
9989
|
|
9670
9990
|
return /*#__PURE__*/React__default['default'].createElement(_Breadcrumb__default['default'], _objectSpread2({
|
9671
9991
|
className: className || 'default',
|
@@ -9675,9 +9995,9 @@ var Index$b = function Index(_ref) {
|
|
9675
9995
|
}, props));
|
9676
9996
|
};
|
9677
9997
|
|
9678
|
-
var _excluded$
|
9998
|
+
var _excluded$e = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
|
9679
9999
|
|
9680
|
-
var Index$
|
10000
|
+
var Index$d = function Index(_ref, ref) {
|
9681
10001
|
var _classNames, _sliderTabs$component, _sliderTabs$tabs;
|
9682
10002
|
|
9683
10003
|
var title = _ref.title,
|
@@ -9686,7 +10006,7 @@ var Index$c = function Index(_ref, ref) {
|
|
9686
10006
|
headerTail = _ref.headerTail,
|
9687
10007
|
headerCenter = _ref.headerCenter,
|
9688
10008
|
sliderTabs = _ref.sliderTabs,
|
9689
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
10009
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
9690
10010
|
|
9691
10011
|
React.useImperativeHandle(ref, function () {
|
9692
10012
|
return {
|
@@ -9728,7 +10048,7 @@ var Index$c = function Index(_ref, ref) {
|
|
9728
10048
|
}))));
|
9729
10049
|
};
|
9730
10050
|
|
9731
|
-
var index$2 = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Index$
|
10051
|
+
var index$2 = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Index$d));
|
9732
10052
|
|
9733
10053
|
var controlShow = function controlShow(f1, f2, value, timer) {
|
9734
10054
|
f1(value);
|
@@ -9930,7 +10250,7 @@ function DialogModel(props, ref) {
|
|
9930
10250
|
|
9931
10251
|
var Dialog = /*#__PURE__*/React__default['default'].forwardRef(DialogModel);
|
9932
10252
|
|
9933
|
-
var _excluded$
|
10253
|
+
var _excluded$f = ["visible", "width", "closeCb", "onClose", "className", "style"],
|
9934
10254
|
_excluded2$3 = ["visible"];
|
9935
10255
|
|
9936
10256
|
var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
@@ -10047,7 +10367,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
10047
10367
|
onClose = _this$props4.onClose,
|
10048
10368
|
className = _this$props4.className,
|
10049
10369
|
style = _this$props4.style,
|
10050
|
-
other = _objectWithoutProperties(_this$props4, _excluded$
|
10370
|
+
other = _objectWithoutProperties(_this$props4, _excluded$f);
|
10051
10371
|
|
10052
10372
|
return /*#__PURE__*/React__default['default'].createElement(Dialog, _objectSpread2({
|
10053
10373
|
ref: this.containerRef,
|
@@ -10230,7 +10550,7 @@ function DialogModel$1(props) {
|
|
10230
10550
|
return renderChildren;
|
10231
10551
|
}
|
10232
10552
|
|
10233
|
-
var _excluded$
|
10553
|
+
var _excluded$g = ["visible"];
|
10234
10554
|
|
10235
10555
|
var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
10236
10556
|
_inherits(Modal, _React$PureComponent);
|
@@ -10370,7 +10690,7 @@ Modal$1.show = function (config) {
|
|
10370
10690
|
manager.setShow = setShow;
|
10371
10691
|
|
10372
10692
|
var visible = props.visible,
|
10373
|
-
trueProps = _objectWithoutProperties(props, _excluded$
|
10693
|
+
trueProps = _objectWithoutProperties(props, _excluded$g);
|
10374
10694
|
|
10375
10695
|
React.useEffect(function () {
|
10376
10696
|
manager.mounted = true;
|
@@ -10570,7 +10890,7 @@ function DragBox(_ref) {
|
|
10570
10890
|
}, children)) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
10571
10891
|
}
|
10572
10892
|
|
10573
|
-
var _excluded$
|
10893
|
+
var _excluded$h = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel"];
|
10574
10894
|
|
10575
10895
|
var ModalForm = function ModalForm(props, ref) {
|
10576
10896
|
var columns = props.columns,
|
@@ -10585,7 +10905,8 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10585
10905
|
record = props.record,
|
10586
10906
|
onFormChange = props.onFormChange,
|
10587
10907
|
formItemChild = props.formItemChild,
|
10588
|
-
|
10908
|
+
onCancel = props.onCancel,
|
10909
|
+
extraProps = _objectWithoutProperties(props, _excluded$h);
|
10589
10910
|
|
10590
10911
|
var formRef = React.useRef(null);
|
10591
10912
|
|
@@ -10647,6 +10968,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10647
10968
|
}();
|
10648
10969
|
|
10649
10970
|
var handleCancel = function handleCancel() {
|
10971
|
+
onCancel && onCancel();
|
10650
10972
|
setVisible(false);
|
10651
10973
|
};
|
10652
10974
|
|
@@ -10716,7 +11038,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10716
11038
|
|
10717
11039
|
var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
|
10718
11040
|
|
10719
|
-
var _excluded$
|
11041
|
+
var _excluded$i = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig", "pagination", "noBordered"];
|
10720
11042
|
|
10721
11043
|
var TabelCard = function TabelCard(props, ref) {
|
10722
11044
|
var columns = props.columns,
|
@@ -10734,7 +11056,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10734
11056
|
optionColumnConfig = props.optionColumnConfig,
|
10735
11057
|
pagination = props.pagination,
|
10736
11058
|
noBordered = props.noBordered,
|
10737
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
11059
|
+
extraProps = _objectWithoutProperties(props, _excluded$i);
|
10738
11060
|
|
10739
11061
|
var actionRef = React.useRef();
|
10740
11062
|
var modalFormRef = React.useRef(null);
|
@@ -11684,7 +12006,7 @@ function VideoPlayer(_ref, ref) {
|
|
11684
12006
|
|
11685
12007
|
var index$4 = /*#__PURE__*/React.forwardRef(VideoPlayer);
|
11686
12008
|
|
11687
|
-
var _excluded$
|
12009
|
+
var _excluded$j = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
|
11688
12010
|
|
11689
12011
|
var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2]; // 默认记忆提示文字展示时长(s)
|
11690
12012
|
|
@@ -11715,7 +12037,7 @@ var index$5 = (function (_ref) {
|
|
11715
12037
|
enableMemory = _ref$enableMemory === void 0 ? false : _ref$enableMemory,
|
11716
12038
|
_ref$lastPlayTimeHide = _ref.lastPlayTimeHideDelay,
|
11717
12039
|
lastPlayTimeHideDelay = _ref$lastPlayTimeHide === void 0 ? DEFAULT_LAST_PLAY_TIME_DELAY : _ref$lastPlayTimeHide,
|
11718
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
12040
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
11719
12041
|
|
11720
12042
|
var player = React.useRef();
|
11721
12043
|
var currentPlayerIndex = React.useRef(0); // 内置的 index 状态管理
|
@@ -12693,14 +13015,14 @@ function WaterLevelCharts(config) {
|
|
12693
13015
|
});
|
12694
13016
|
}
|
12695
13017
|
|
12696
|
-
exports.AutoScroll = Index$
|
12697
|
-
exports.Breadcrumb = Index$
|
13018
|
+
exports.AutoScroll = Index$a;
|
13019
|
+
exports.Breadcrumb = Index$c;
|
12698
13020
|
exports.Button = WButton;
|
12699
13021
|
exports.Card = index$2;
|
12700
13022
|
exports.Cascader = WCascader;
|
12701
|
-
exports.Checkbox = Index$
|
12702
|
-
exports.CountUp = Index$
|
12703
|
-
exports.DatePicker = Index$
|
13023
|
+
exports.Checkbox = Index$4;
|
13024
|
+
exports.CountUp = Index$9;
|
13025
|
+
exports.DatePicker = Index$2;
|
12704
13026
|
exports.DragBox = DragBox;
|
12705
13027
|
exports.IconFont = index;
|
12706
13028
|
exports.Input = Index;
|
@@ -12709,18 +13031,19 @@ exports.LineEcharts = LineEcharts;
|
|
12709
13031
|
exports.Modal = Modal;
|
12710
13032
|
exports.ModalForm = ModalForm$1;
|
12711
13033
|
exports.ModalTips = Modal$1;
|
12712
|
-
exports.Number = Index$
|
13034
|
+
exports.Number = Index$8;
|
12713
13035
|
exports.NumericInput = NumericInput;
|
12714
|
-
exports.Radio = Index$
|
13036
|
+
exports.Radio = Index$3;
|
12715
13037
|
exports.Select = Select;
|
12716
|
-
exports.Swiper = Index$
|
13038
|
+
exports.Swiper = Index$b;
|
12717
13039
|
exports.Switch = WSwitch;
|
12718
13040
|
exports.TabelCard = index$3;
|
12719
13041
|
exports.Table = index$1;
|
12720
|
-
exports.TreeSelect = Index$
|
13042
|
+
exports.TreeSelect = Index$7;
|
13043
|
+
exports.Upload = Upload;
|
12721
13044
|
exports.Video = index$5;
|
12722
13045
|
exports.VideoPlayer = index$4;
|
12723
|
-
exports.WDatePicker = Index$
|
13046
|
+
exports.WDatePicker = Index$6;
|
12724
13047
|
exports.WForm = WForm$1;
|
12725
13048
|
exports.WaterLevelCharts = WaterLevelCharts;
|
12726
13049
|
exports.WebsocketHeart = WebsocketHeart;
|