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/components/TabelCard/example/demo1.d.ts +3 -0
- 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 +427 -149
- package/dist/index.js +438 -158
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
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');
|
@@ -43,15 +49,12 @@ require('antd/es/tree-select/style');
|
|
43
49
|
var _TreeSelect = require('antd/es/tree-select');
|
44
50
|
require('antd/es/cascader/style');
|
45
51
|
var _Cascader = require('antd/es/cascader');
|
46
|
-
var cloneDeep = require('lodash/cloneDeep');
|
47
52
|
var CountUp = require('react-countup');
|
48
53
|
var react = require('swiper/react');
|
49
54
|
var SwiperCore = require('swiper');
|
50
55
|
require('antd/es/breadcrumb/style');
|
51
56
|
var _Breadcrumb = require('antd/es/breadcrumb');
|
52
57
|
var ReactDOM = require('react-dom');
|
53
|
-
require('antd/es/modal/style');
|
54
|
-
var _Modal = require('antd/es/modal');
|
55
58
|
var ProTable = require('@ant-design/pro-table');
|
56
59
|
var Player = require('xgplayer');
|
57
60
|
var FlvPlayer = require('xgplayer-flv.js');
|
@@ -89,6 +92,9 @@ var _Button__default = /*#__PURE__*/_interopDefaultLegacy(_Button);
|
|
89
92
|
var _Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(_Dropdown);
|
90
93
|
var _Menu__default = /*#__PURE__*/_interopDefaultLegacy(_Menu);
|
91
94
|
var _Input__default = /*#__PURE__*/_interopDefaultLegacy(_Input);
|
95
|
+
var _Modal__default = /*#__PURE__*/_interopDefaultLegacy(_Modal);
|
96
|
+
var _Upload__default = /*#__PURE__*/_interopDefaultLegacy(_Upload);
|
97
|
+
var _message__default = /*#__PURE__*/_interopDefaultLegacy(_message);
|
92
98
|
var _InputNumber__default = /*#__PURE__*/_interopDefaultLegacy(_InputNumber);
|
93
99
|
var _Pagination__default = /*#__PURE__*/_interopDefaultLegacy(_Pagination);
|
94
100
|
var _Spin__default = /*#__PURE__*/_interopDefaultLegacy(_Spin);
|
@@ -105,12 +111,10 @@ var _Select__default = /*#__PURE__*/_interopDefaultLegacy(_Select);
|
|
105
111
|
var _Switch__default = /*#__PURE__*/_interopDefaultLegacy(_Switch);
|
106
112
|
var _TreeSelect__default = /*#__PURE__*/_interopDefaultLegacy(_TreeSelect);
|
107
113
|
var _Cascader__default = /*#__PURE__*/_interopDefaultLegacy(_Cascader);
|
108
|
-
var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
|
109
114
|
var CountUp__default = /*#__PURE__*/_interopDefaultLegacy(CountUp);
|
110
115
|
var SwiperCore__default = /*#__PURE__*/_interopDefaultLegacy(SwiperCore);
|
111
116
|
var _Breadcrumb__default = /*#__PURE__*/_interopDefaultLegacy(_Breadcrumb);
|
112
117
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
113
|
-
var _Modal__default = /*#__PURE__*/_interopDefaultLegacy(_Modal);
|
114
118
|
var ProTable__default = /*#__PURE__*/_interopDefaultLegacy(ProTable);
|
115
119
|
var Player__default = /*#__PURE__*/_interopDefaultLegacy(Player);
|
116
120
|
var FlvPlayer__default = /*#__PURE__*/_interopDefaultLegacy(FlvPlayer);
|
@@ -640,6 +644,200 @@ var Index = WInput;
|
|
640
644
|
Index.TextArea = _Input__default['default'].TextArea;
|
641
645
|
WInput.defaultProps = {};
|
642
646
|
|
647
|
+
var _excluded$1 = ["value", "onChange", "beforeUpload", "uploadButton", "maxCount", "fetchMethod", "getFileList"];
|
648
|
+
|
649
|
+
function Index$1(_ref, ref) {
|
650
|
+
var value = _ref.value,
|
651
|
+
onChange = _ref.onChange,
|
652
|
+
beforeUpload = _ref.beforeUpload,
|
653
|
+
uploadButton = _ref.uploadButton,
|
654
|
+
maxCount = _ref.maxCount,
|
655
|
+
fetchMethod = _ref.fetchMethod,
|
656
|
+
getFileList = _ref.getFileList,
|
657
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
658
|
+
|
659
|
+
var _useState = React.useState([]),
|
660
|
+
_useState2 = _slicedToArray(_useState, 2),
|
661
|
+
fileList = _useState2[0],
|
662
|
+
setFileList = _useState2[1];
|
663
|
+
|
664
|
+
React.useEffect(function () {
|
665
|
+
setFileList(value ? value.split(',').map(function (url) {
|
666
|
+
return {
|
667
|
+
uid: Math.random().toString(36).slice(2, 36),
|
668
|
+
name: '',
|
669
|
+
status: 'done',
|
670
|
+
url: url
|
671
|
+
};
|
672
|
+
}) : []);
|
673
|
+
}, [value]);
|
674
|
+
React.useEffect(function () {
|
675
|
+
getFileList && getFileList(fileList.map(function (file) {
|
676
|
+
return file.url;
|
677
|
+
}), fileList);
|
678
|
+
}, [fileList]);
|
679
|
+
|
680
|
+
var _useState3 = React.useState(false),
|
681
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
682
|
+
previewVisible = _useState4[0],
|
683
|
+
setPreviewVisible = _useState4[1];
|
684
|
+
|
685
|
+
var _useState5 = React.useState(''),
|
686
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
687
|
+
previewImage = _useState6[0],
|
688
|
+
setPreviewImage = _useState6[1];
|
689
|
+
|
690
|
+
var _useState7 = React.useState(''),
|
691
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
692
|
+
previewTitle = _useState8[0],
|
693
|
+
setPreviewTitle = _useState8[1];
|
694
|
+
|
695
|
+
var getBase64 = function getBase64(file) {
|
696
|
+
return new Promise(function (resolve, reject) {
|
697
|
+
var reader = new FileReader();
|
698
|
+
reader.readAsDataURL(file);
|
699
|
+
|
700
|
+
reader.onload = function () {
|
701
|
+
return resolve(reader.result);
|
702
|
+
};
|
703
|
+
|
704
|
+
reader.onerror = function (error) {
|
705
|
+
return reject(error);
|
706
|
+
};
|
707
|
+
});
|
708
|
+
};
|
709
|
+
|
710
|
+
var handleCancel = function handleCancel() {
|
711
|
+
return setPreviewVisible(false);
|
712
|
+
};
|
713
|
+
|
714
|
+
var beforeUploadIn = function beforeUploadIn(file) {
|
715
|
+
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
|
716
|
+
|
717
|
+
if (!isJpgOrPng) {
|
718
|
+
_message__default['default'].error('You can only upload JPG/PNG file!');
|
719
|
+
}
|
720
|
+
|
721
|
+
var isLt2M = file.size / 1024 / 1024 < 2;
|
722
|
+
|
723
|
+
if (!isLt2M) {
|
724
|
+
_message__default['default'].error('Image must smaller than 2MB!');
|
725
|
+
}
|
726
|
+
|
727
|
+
return beforeUpload ? beforeUpload(file) : isJpgOrPng && isLt2M;
|
728
|
+
};
|
729
|
+
|
730
|
+
var handleChange = /*#__PURE__*/function () {
|
731
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(_ref2) {
|
732
|
+
var file, newFileList, url, urls;
|
733
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
734
|
+
while (1) {
|
735
|
+
switch (_context.prev = _context.next) {
|
736
|
+
case 0:
|
737
|
+
file = _ref2.file, newFileList = _ref2.fileList;
|
738
|
+
|
739
|
+
if (!(file.status === 'done')) {
|
740
|
+
_context.next = 6;
|
741
|
+
break;
|
742
|
+
}
|
743
|
+
|
744
|
+
_context.next = 4;
|
745
|
+
return fetchMethod ? fetchMethod(file.originFileObj) : getBase64(file.originFileObj);
|
746
|
+
|
747
|
+
case 4:
|
748
|
+
url = _context.sent;
|
749
|
+
|
750
|
+
if (!file.url) {
|
751
|
+
file.url = url;
|
752
|
+
}
|
753
|
+
|
754
|
+
case 6:
|
755
|
+
urls = newFileList.map(function (file) {
|
756
|
+
return file.url;
|
757
|
+
}).join(',');
|
758
|
+
onChange && onChange(urls);
|
759
|
+
setFileList(newFileList);
|
760
|
+
|
761
|
+
case 9:
|
762
|
+
case "end":
|
763
|
+
return _context.stop();
|
764
|
+
}
|
765
|
+
}
|
766
|
+
}, _callee);
|
767
|
+
}));
|
768
|
+
|
769
|
+
return function handleChange(_x) {
|
770
|
+
return _ref3.apply(this, arguments);
|
771
|
+
};
|
772
|
+
}();
|
773
|
+
|
774
|
+
var handlePreview = /*#__PURE__*/function () {
|
775
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(file) {
|
776
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
777
|
+
while (1) {
|
778
|
+
switch (_context2.prev = _context2.next) {
|
779
|
+
case 0:
|
780
|
+
if (!(!file.url && !file.preview)) {
|
781
|
+
_context2.next = 4;
|
782
|
+
break;
|
783
|
+
}
|
784
|
+
|
785
|
+
_context2.next = 3;
|
786
|
+
return getBase64(file.originFileObj);
|
787
|
+
|
788
|
+
case 3:
|
789
|
+
file.preview = _context2.sent;
|
790
|
+
|
791
|
+
case 4:
|
792
|
+
setPreviewImage(file.url || file.preview);
|
793
|
+
setPreviewVisible(true);
|
794
|
+
setPreviewTitle(file.name || file.url.substring(file.url.lastIndexOf('/') + 1));
|
795
|
+
|
796
|
+
case 7:
|
797
|
+
case "end":
|
798
|
+
return _context2.stop();
|
799
|
+
}
|
800
|
+
}
|
801
|
+
}, _callee2);
|
802
|
+
}));
|
803
|
+
|
804
|
+
return function handlePreview(_x2) {
|
805
|
+
return _ref4.apply(this, arguments);
|
806
|
+
};
|
807
|
+
}();
|
808
|
+
|
809
|
+
var uploadButtonDom = /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(icons.PlusOutlined, null), /*#__PURE__*/React__default['default'].createElement("div", {
|
810
|
+
style: {
|
811
|
+
marginTop: 8
|
812
|
+
}
|
813
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, "\u4E0A\u4F20")));
|
814
|
+
React.useImperativeHandle(ref, function () {
|
815
|
+
return {
|
816
|
+
fileList: fileList
|
817
|
+
};
|
818
|
+
});
|
819
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Upload__default['default'], _objectSpread2({
|
820
|
+
fileList: fileList,
|
821
|
+
listType: "picture-card",
|
822
|
+
beforeUpload: beforeUploadIn,
|
823
|
+
onPreview: handlePreview,
|
824
|
+
onChange: handleChange
|
825
|
+
}, props), fileList.length >= maxCount ? null : uploadButton ? uploadButton : uploadButtonDom), /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], {
|
826
|
+
visible: previewVisible,
|
827
|
+
title: previewTitle,
|
828
|
+
footer: null,
|
829
|
+
onCancel: handleCancel
|
830
|
+
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
831
|
+
alt: "example",
|
832
|
+
style: {
|
833
|
+
width: '100%'
|
834
|
+
},
|
835
|
+
src: previewImage
|
836
|
+
})));
|
837
|
+
}
|
838
|
+
|
839
|
+
var Upload = /*#__PURE__*/React__default['default'].forwardRef(Index$1);
|
840
|
+
|
643
841
|
var WInputNumber = function WInputNumber(props) {
|
644
842
|
var extraProps = _extends({}, props);
|
645
843
|
|
@@ -663,8 +861,8 @@ var RangePicker = function RangePicker(props) {
|
|
663
861
|
};
|
664
862
|
|
665
863
|
RangePicker.defaultProps = {};
|
666
|
-
var Index$
|
667
|
-
Index$
|
864
|
+
var Index$2 = WDatePicker;
|
865
|
+
Index$2.RangePicker = RangePicker;
|
668
866
|
|
669
867
|
var WRadio = function WRadio(props) {
|
670
868
|
var extraProps = _extends({}, props);
|
@@ -672,9 +870,9 @@ var WRadio = function WRadio(props) {
|
|
672
870
|
return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'], _objectSpread2({}, extraProps));
|
673
871
|
};
|
674
872
|
|
675
|
-
var Index$
|
676
|
-
Index$
|
677
|
-
Index$
|
873
|
+
var Index$3 = WRadio;
|
874
|
+
Index$3.Group = _Radio__default['default'].Group;
|
875
|
+
Index$3.Button = _Radio__default['default'].Button;
|
678
876
|
WRadio.defaultProps = {};
|
679
877
|
|
680
878
|
var WCheckbox = function WCheckbox(props) {
|
@@ -684,13 +882,13 @@ var WCheckbox = function WCheckbox(props) {
|
|
684
882
|
};
|
685
883
|
|
686
884
|
WCheckbox.defaultProps = {};
|
687
|
-
var Index$
|
688
|
-
Index$
|
885
|
+
var Index$4 = WCheckbox;
|
886
|
+
Index$4.Group = _Checkbox__default['default'].Group;
|
689
887
|
|
690
888
|
/*
|
691
889
|
* @Author: lijin
|
692
890
|
* @Date: 2021-10-27 22:18:49
|
693
|
-
* @LastEditTime: 2022-
|
891
|
+
* @LastEditTime: 2022-08-09 09:35:23
|
694
892
|
* @LastEditors: lijin
|
695
893
|
* @Description:
|
696
894
|
* @FilePath: \wargerm-components\src\utils\index.ts
|
@@ -757,8 +955,29 @@ var calcWidth = function calcWidth(width) {
|
|
757
955
|
var calcHeight = function calcHeight(height) {
|
758
956
|
return document.body.clientHeight / 2160 * height;
|
759
957
|
};
|
958
|
+
/* eslint-disable no-param-reassign */
|
959
|
+
|
960
|
+
function deepCopy(target) {
|
961
|
+
if (Object.prototype.toString.call({}).slice(8, -1) == 'Object') {
|
962
|
+
var result = Array.isArray(target) ? [] : {}; // eslint-disable-next-line no-restricted-syntax
|
963
|
+
|
964
|
+
for (var key in target) {
|
965
|
+
var _target$key;
|
760
966
|
|
761
|
-
|
967
|
+
if (Object.prototype.toString.call(target).slice(8, -1) == 'Object' && !((_target$key = target[key]) === null || _target$key === void 0 ? void 0 : _target$key['$$typeof'])) {
|
968
|
+
result[key] = deepCopy(target[key]);
|
969
|
+
} else {
|
970
|
+
result[key] = target[key];
|
971
|
+
}
|
972
|
+
}
|
973
|
+
|
974
|
+
return result;
|
975
|
+
}
|
976
|
+
|
977
|
+
return target;
|
978
|
+
}
|
979
|
+
|
980
|
+
var _excluded$2 = ["className", "frameStyle", "style", "direction", "children"];
|
762
981
|
function FrameBox(_ref) {
|
763
982
|
var _classnames;
|
764
983
|
|
@@ -768,7 +987,7 @@ function FrameBox(_ref) {
|
|
768
987
|
_ref$direction = _ref.direction,
|
769
988
|
direction = _ref$direction === void 0 ? 'in' : _ref$direction,
|
770
989
|
children = _ref.children,
|
771
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
990
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
772
991
|
|
773
992
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({
|
774
993
|
className: classnames__default['default']((_classnames = {}, _defineProperty(_classnames, 'frame', true), _defineProperty(_classnames, className || '', true), _classnames)),
|
@@ -800,7 +1019,7 @@ function FrameBox(_ref) {
|
|
800
1019
|
}), children);
|
801
1020
|
}
|
802
1021
|
|
803
|
-
var _excluded$
|
1022
|
+
var _excluded$3 = ["request", "valueEnum", "onLoad", "children", "params"],
|
804
1023
|
_excluded2 = ["children"];
|
805
1024
|
|
806
1025
|
var WSelect = function WSelect(props) {
|
@@ -809,7 +1028,7 @@ var WSelect = function WSelect(props) {
|
|
809
1028
|
onLoad = props.onLoad,
|
810
1029
|
children = props.children,
|
811
1030
|
params = props.params,
|
812
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
1031
|
+
extraProps = _objectWithoutProperties(props, _excluded$3);
|
813
1032
|
|
814
1033
|
var _useState = React.useState([]),
|
815
1034
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -921,9 +1140,9 @@ var Option = function Option(props) {
|
|
921
1140
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, _objectSpread2({}, extraProps), children);
|
922
1141
|
};
|
923
1142
|
|
924
|
-
var Index$
|
925
|
-
Index$
|
926
|
-
var Select = /*#__PURE__*/React.memo(Index$
|
1143
|
+
var Index$5 = WSelect;
|
1144
|
+
Index$5.Option = Option;
|
1145
|
+
var Select = /*#__PURE__*/React.memo(Index$5);
|
927
1146
|
|
928
1147
|
//! moment.js
|
929
1148
|
//! version : 2.29.1
|
@@ -6586,7 +6805,7 @@ hooks.HTML5_FMT = {
|
|
6586
6805
|
MONTH: 'YYYY-MM', // <input type="month" />
|
6587
6806
|
};
|
6588
6807
|
|
6589
|
-
var _excluded$
|
6808
|
+
var _excluded$4 = ["defaultValue", "format", "value", "onChange"],
|
6590
6809
|
_excluded2$1 = ["defaultValue", "value", "format", "showTime", "onChange"];
|
6591
6810
|
|
6592
6811
|
var momentValue = function momentValue(value) {
|
@@ -6602,7 +6821,7 @@ var WDatePicker$1 = function WDatePicker(props) {
|
|
6602
6821
|
format = props.format,
|
6603
6822
|
value = props.value,
|
6604
6823
|
_onChange = props.onChange,
|
6605
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
6824
|
+
extraProps = _objectWithoutProperties(props, _excluded$4);
|
6606
6825
|
|
6607
6826
|
return /*#__PURE__*/React__default['default'].createElement(_DatePicker__default['default'], _objectSpread2({
|
6608
6827
|
defaultValue: momentValue(defaultValue),
|
@@ -6638,8 +6857,8 @@ var RangePicker$1 = function RangePicker(props) {
|
|
6638
6857
|
};
|
6639
6858
|
|
6640
6859
|
RangePicker$1.defaultProps = {};
|
6641
|
-
var Index$
|
6642
|
-
Index$
|
6860
|
+
var Index$6 = WDatePicker$1;
|
6861
|
+
Index$6.RangePicker = RangePicker$1;
|
6643
6862
|
|
6644
6863
|
var WSwitch = function WSwitch(props) {
|
6645
6864
|
var extraProps = _extends({}, props);
|
@@ -6739,7 +6958,7 @@ var NumericInput = /*#__PURE__*/function (_React$Component) {
|
|
6739
6958
|
return NumericInput;
|
6740
6959
|
}(React__default['default'].Component);
|
6741
6960
|
|
6742
|
-
var _excluded$
|
6961
|
+
var _excluded$5 = ["treeNodeLabelProp", "treeNodeValueProp", "treeNodeChildrenProp", "request", "onLoad", "params", "treeData"];
|
6743
6962
|
|
6744
6963
|
var TreeSelect = function TreeSelect(_ref) {
|
6745
6964
|
var _ref$treeNodeLabelPro = _ref.treeNodeLabelProp,
|
@@ -6752,7 +6971,7 @@ var TreeSelect = function TreeSelect(_ref) {
|
|
6752
6971
|
onLoad = _ref.onLoad,
|
6753
6972
|
params = _ref.params,
|
6754
6973
|
treePropsData = _ref.treeData,
|
6755
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
6974
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
6756
6975
|
|
6757
6976
|
var renderTree = function renderTree(data) {
|
6758
6977
|
return data === null || data === void 0 ? void 0 : data.map(function (item) {
|
@@ -6824,10 +7043,10 @@ var TreeSelect = function TreeSelect(_ref) {
|
|
6824
7043
|
}, props), !props.children ? renderTree(treeData) : props.children);
|
6825
7044
|
};
|
6826
7045
|
|
6827
|
-
var Index$
|
6828
|
-
Index$
|
7046
|
+
var Index$7 = TreeSelect;
|
7047
|
+
Index$7.TreeNode = _TreeSelect__default['default'].TreeNode;
|
6829
7048
|
|
6830
|
-
var _excluded$
|
7049
|
+
var _excluded$6 = ["request", "options", "onLoad", "value", "onChange", "params"];
|
6831
7050
|
|
6832
7051
|
var WCascader = function WCascader(props) {
|
6833
7052
|
var request = props.request,
|
@@ -6836,7 +7055,7 @@ var WCascader = function WCascader(props) {
|
|
6836
7055
|
value = props.value,
|
6837
7056
|
_onChange = props.onChange,
|
6838
7057
|
params = props.params,
|
6839
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
7058
|
+
extraProps = _objectWithoutProperties(props, _excluded$6);
|
6840
7059
|
|
6841
7060
|
var _useState = React.useState(null),
|
6842
7061
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -6903,8 +7122,8 @@ var WCascader = function WCascader(props) {
|
|
6903
7122
|
}, extraProps));
|
6904
7123
|
};
|
6905
7124
|
|
6906
|
-
var _excluded$
|
6907
|
-
var RangePicker$2 = Index$
|
7125
|
+
var _excluded$7 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm"];
|
7126
|
+
var RangePicker$2 = Index$6.RangePicker;
|
6908
7127
|
|
6909
7128
|
var WForm = function WForm(props, ref) {
|
6910
7129
|
var columns = props.columns,
|
@@ -6919,7 +7138,7 @@ var WForm = function WForm(props, ref) {
|
|
6919
7138
|
onSubmit = props.onSubmit,
|
6920
7139
|
onReset = props.onReset,
|
6921
7140
|
setForm = props.setForm,
|
6922
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
7141
|
+
extraProps = _objectWithoutProperties(props, _excluded$7);
|
6923
7142
|
|
6924
7143
|
var _Form$useForm = _Form__default['default'].useForm(),
|
6925
7144
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
@@ -6935,12 +7154,12 @@ var WForm = function WForm(props, ref) {
|
|
6935
7154
|
columnsFields = _useState4[0],
|
6936
7155
|
setColumnsFields = _useState4[1];
|
6937
7156
|
|
6938
|
-
var filterFormColumns =
|
7157
|
+
var filterFormColumns = deepCopy(columns).filter(function (c) {
|
6939
7158
|
return !c.hideInSearch || disabledHideInSearch;
|
6940
7159
|
}).sort(function (a, b) {
|
6941
7160
|
return (b.order || 0) - (a.order || 0);
|
6942
7161
|
});
|
6943
|
-
var filterExtraFormColumns =
|
7162
|
+
var filterExtraFormColumns = deepCopy(extraColumns || []).filter(function (c) {
|
6944
7163
|
return !c.hideInSearch || disabledHideInSearch;
|
6945
7164
|
}).sort(function (a, b) {
|
6946
7165
|
return (b.order || 0) - (a.order || 0);
|
@@ -7043,6 +7262,36 @@ var WForm = function WForm(props, ref) {
|
|
7043
7262
|
});
|
7044
7263
|
}
|
7045
7264
|
}, c.fieldProps), _extraProps2))));
|
7265
|
+
} else if (c.valueType == 'upload') {
|
7266
|
+
var _labelCol2 = {};
|
7267
|
+
|
7268
|
+
if (search && search.labelWidth) {
|
7269
|
+
_labelCol2.style = {
|
7270
|
+
width: search.labelWidth
|
7271
|
+
};
|
7272
|
+
}
|
7273
|
+
|
7274
|
+
return /*#__PURE__*/React__default['default'].createElement(_Col__default['default'], _objectSpread2(_objectSpread2({
|
7275
|
+
className: "pl12 pr12"
|
7276
|
+
}, colProps), {}, {
|
7277
|
+
key: c.dataIndex
|
7278
|
+
}), /*#__PURE__*/React__default['default'].createElement(_Form__default['default'].Item, _objectSpread2(_objectSpread2({
|
7279
|
+
initialValue: c.initialValue
|
7280
|
+
}, c.formItemProps), {}, {
|
7281
|
+
name: c.dataIndex,
|
7282
|
+
label: c.title,
|
7283
|
+
labelCol: _labelCol2
|
7284
|
+
}), /*#__PURE__*/React__default['default'].createElement(Upload, _objectSpread2({
|
7285
|
+
getFileList: function getFileList(fileListUrls, fileList) {
|
7286
|
+
setColumnsFields(function (preColumnsFields) {
|
7287
|
+
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, {
|
7288
|
+
fileListUrls: fileListUrls,
|
7289
|
+
fileList: fileList
|
7290
|
+
}));
|
7291
|
+
});
|
7292
|
+
},
|
7293
|
+
disabled: disabled
|
7294
|
+
}, c.fieldProps))));
|
7046
7295
|
} else if (c.valueType == 'treeSelect') {
|
7047
7296
|
var _extraProps3 = {};
|
7048
7297
|
|
@@ -7050,10 +7299,10 @@ var WForm = function WForm(props, ref) {
|
|
7050
7299
|
_extraProps3.request = c.request;
|
7051
7300
|
}
|
7052
7301
|
|
7053
|
-
var
|
7302
|
+
var _labelCol3 = {};
|
7054
7303
|
|
7055
7304
|
if (search && search.labelWidth) {
|
7056
|
-
|
7305
|
+
_labelCol3.style = {
|
7057
7306
|
width: search.labelWidth
|
7058
7307
|
};
|
7059
7308
|
}
|
@@ -7067,17 +7316,17 @@ var WForm = function WForm(props, ref) {
|
|
7067
7316
|
}, c.formItemProps), {}, {
|
7068
7317
|
name: c.dataIndex,
|
7069
7318
|
label: c.title,
|
7070
|
-
labelCol:
|
7071
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7319
|
+
labelCol: _labelCol3
|
7320
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$7, _objectSpread2(_objectSpread2({
|
7072
7321
|
disabled: disabled,
|
7073
7322
|
placeholder: "\u8BF7\u9009\u62E9",
|
7074
7323
|
onLoad: function onLoad(opt) {}
|
7075
7324
|
}, c.fieldProps), _extraProps3))));
|
7076
7325
|
} else if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear'].includes(c.valueType)) {
|
7077
|
-
var
|
7326
|
+
var _labelCol4 = {};
|
7078
7327
|
|
7079
7328
|
if (search && search.labelWidth) {
|
7080
|
-
|
7329
|
+
_labelCol4.style = {
|
7081
7330
|
width: search.labelWidth
|
7082
7331
|
};
|
7083
7332
|
}
|
@@ -7114,16 +7363,16 @@ var WForm = function WForm(props, ref) {
|
|
7114
7363
|
}, c.formItemProps), {}, {
|
7115
7364
|
name: c.dataIndex,
|
7116
7365
|
label: c.title,
|
7117
|
-
labelCol:
|
7118
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7366
|
+
labelCol: _labelCol4
|
7367
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
|
7119
7368
|
disabled: disabled,
|
7120
7369
|
placeholder: "\u8BF7\u8F93\u5165"
|
7121
7370
|
}, picker), showTime), c.fieldProps))));
|
7122
7371
|
} else if (c.valueType === 'dateRange' || c.valueType === 'dateTimeRange') {
|
7123
|
-
var
|
7372
|
+
var _labelCol5 = {};
|
7124
7373
|
|
7125
7374
|
if (search && search.labelWidth) {
|
7126
|
-
|
7375
|
+
_labelCol5.style = {
|
7127
7376
|
width: search.labelWidth
|
7128
7377
|
};
|
7129
7378
|
}
|
@@ -7147,7 +7396,7 @@ var WForm = function WForm(props, ref) {
|
|
7147
7396
|
}, c.formItemProps), {}, {
|
7148
7397
|
name: c.dataIndex,
|
7149
7398
|
label: c.title,
|
7150
|
-
labelCol:
|
7399
|
+
labelCol: _labelCol5
|
7151
7400
|
}), /*#__PURE__*/React__default['default'].createElement(RangePicker$2, _objectSpread2(_objectSpread2({
|
7152
7401
|
disabled: disabled
|
7153
7402
|
}, _showTime), c.fieldProps))));
|
@@ -7174,10 +7423,10 @@ var WForm = function WForm(props, ref) {
|
|
7174
7423
|
setColumnsFields(function (preColumnsFields) {
|
7175
7424
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
|
7176
7425
|
});
|
7177
|
-
var
|
7426
|
+
var _labelCol6 = {};
|
7178
7427
|
|
7179
7428
|
if (search && search.labelWidth) {
|
7180
|
-
|
7429
|
+
_labelCol6.style = {
|
7181
7430
|
width: search.labelWidth
|
7182
7431
|
};
|
7183
7432
|
}
|
@@ -7191,8 +7440,8 @@ var WForm = function WForm(props, ref) {
|
|
7191
7440
|
}, c.formItemProps), {}, {
|
7192
7441
|
name: c.dataIndex,
|
7193
7442
|
label: c.title,
|
7194
|
-
labelCol:
|
7195
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7443
|
+
labelCol: _labelCol6
|
7444
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$4.Group, _objectSpread2({
|
7196
7445
|
disabled: disabled,
|
7197
7446
|
options: options
|
7198
7447
|
}, c.fieldProps))));
|
@@ -7220,10 +7469,10 @@ var WForm = function WForm(props, ref) {
|
|
7220
7469
|
setColumnsFields(function (preColumnsFields) {
|
7221
7470
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options));
|
7222
7471
|
});
|
7223
|
-
var
|
7472
|
+
var _labelCol7 = {};
|
7224
7473
|
|
7225
7474
|
if (search && search.labelWidth) {
|
7226
|
-
|
7475
|
+
_labelCol7.style = {
|
7227
7476
|
width: search.labelWidth
|
7228
7477
|
};
|
7229
7478
|
}
|
@@ -7246,8 +7495,8 @@ var WForm = function WForm(props, ref) {
|
|
7246
7495
|
}, c.formItemProps), {}, {
|
7247
7496
|
name: c.dataIndex,
|
7248
7497
|
label: c.title,
|
7249
|
-
labelCol:
|
7250
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7498
|
+
labelCol: _labelCol7
|
7499
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$3.Group, _objectSpread2(_objectSpread2({
|
7251
7500
|
disabled: disabled
|
7252
7501
|
}, radioButtonProps), {}, {
|
7253
7502
|
options: _options
|
@@ -7266,10 +7515,10 @@ var WForm = function WForm(props, ref) {
|
|
7266
7515
|
}
|
7267
7516
|
}
|
7268
7517
|
|
7269
|
-
var
|
7518
|
+
var _labelCol8 = {};
|
7270
7519
|
|
7271
7520
|
if (search && search.labelWidth) {
|
7272
|
-
|
7521
|
+
_labelCol8.style = {
|
7273
7522
|
width: search.labelWidth
|
7274
7523
|
};
|
7275
7524
|
} // if (columnsFieldsRef.current) {
|
@@ -7290,15 +7539,15 @@ var WForm = function WForm(props, ref) {
|
|
7290
7539
|
}, c.formItemProps), {}, {
|
7291
7540
|
name: c.dataIndex,
|
7292
7541
|
label: c.title,
|
7293
|
-
labelCol:
|
7542
|
+
labelCol: _labelCol8
|
7294
7543
|
}), /*#__PURE__*/React__default['default'].createElement(WSwitch, _objectSpread2({
|
7295
7544
|
disabled: disabled
|
7296
7545
|
}, c.fieldProps))));
|
7297
7546
|
} else if (c.valueType === 'digit') {
|
7298
|
-
var
|
7547
|
+
var _labelCol9 = {};
|
7299
7548
|
|
7300
7549
|
if (search && search.labelWidth) {
|
7301
|
-
|
7550
|
+
_labelCol9.style = {
|
7302
7551
|
width: search.labelWidth
|
7303
7552
|
};
|
7304
7553
|
}
|
@@ -7312,16 +7561,16 @@ var WForm = function WForm(props, ref) {
|
|
7312
7561
|
}, c.formItemProps), {}, {
|
7313
7562
|
name: c.dataIndex,
|
7314
7563
|
label: c.title,
|
7315
|
-
labelCol:
|
7564
|
+
labelCol: _labelCol9
|
7316
7565
|
}), /*#__PURE__*/React__default['default'].createElement(NumericInput, _objectSpread2({
|
7317
7566
|
disabled: disabled,
|
7318
7567
|
placeholder: "\u8BF7\u8F93\u5165\u53C2\u6570(double/int)"
|
7319
7568
|
}, c.fieldProps))));
|
7320
7569
|
} else if (c.renderFormItem) {
|
7321
|
-
var
|
7570
|
+
var _labelCol10 = {};
|
7322
7571
|
|
7323
7572
|
if (search && search.labelWidth) {
|
7324
|
-
|
7573
|
+
_labelCol10.style = {
|
7325
7574
|
width: search.labelWidth
|
7326
7575
|
};
|
7327
7576
|
}
|
@@ -7342,13 +7591,13 @@ var WForm = function WForm(props, ref) {
|
|
7342
7591
|
}, c.formItemProps), {}, {
|
7343
7592
|
name: c.dataIndex,
|
7344
7593
|
label: c.title,
|
7345
|
-
labelCol:
|
7594
|
+
labelCol: _labelCol10
|
7346
7595
|
}), baseitem)) : null;
|
7347
7596
|
} else if (c.valueType === 'textarea') {
|
7348
|
-
var
|
7597
|
+
var _labelCol11 = {};
|
7349
7598
|
|
7350
7599
|
if (search && search.labelWidth) {
|
7351
|
-
|
7600
|
+
_labelCol11.style = {
|
7352
7601
|
width: search.labelWidth
|
7353
7602
|
};
|
7354
7603
|
}
|
@@ -7362,17 +7611,17 @@ var WForm = function WForm(props, ref) {
|
|
7362
7611
|
}, c.formItemProps), {}, {
|
7363
7612
|
name: c.dataIndex,
|
7364
7613
|
label: c.title,
|
7365
|
-
labelCol:
|
7614
|
+
labelCol: _labelCol11
|
7366
7615
|
}), /*#__PURE__*/React__default['default'].createElement(Index.TextArea, _objectSpread2({
|
7367
7616
|
rows: 4,
|
7368
7617
|
disabled: disabled,
|
7369
7618
|
placeholder: "\u8BF7\u8F93\u5165"
|
7370
7619
|
}, c.fieldProps))));
|
7371
7620
|
} else if (c.valueType === 'inputNumber') {
|
7372
|
-
var
|
7621
|
+
var _labelCol12 = {};
|
7373
7622
|
|
7374
7623
|
if (search && search.labelWidth) {
|
7375
|
-
|
7624
|
+
_labelCol12.style = {
|
7376
7625
|
width: search.labelWidth
|
7377
7626
|
};
|
7378
7627
|
}
|
@@ -7386,16 +7635,16 @@ var WForm = function WForm(props, ref) {
|
|
7386
7635
|
}, c.formItemProps), {}, {
|
7387
7636
|
name: c.dataIndex,
|
7388
7637
|
label: c.title,
|
7389
|
-
labelCol:
|
7638
|
+
labelCol: _labelCol12
|
7390
7639
|
}), /*#__PURE__*/React__default['default'].createElement(WInputNumber, _objectSpread2({
|
7391
7640
|
disabled: disabled,
|
7392
7641
|
placeholder: "\u8BF7\u8F93\u5165"
|
7393
7642
|
}, c.fieldProps))));
|
7394
7643
|
} else {
|
7395
|
-
var
|
7644
|
+
var _labelCol13 = {};
|
7396
7645
|
|
7397
7646
|
if (search && search.labelWidth) {
|
7398
|
-
|
7647
|
+
_labelCol13.style = {
|
7399
7648
|
width: search.labelWidth
|
7400
7649
|
};
|
7401
7650
|
}
|
@@ -7409,7 +7658,7 @@ var WForm = function WForm(props, ref) {
|
|
7409
7658
|
}, c.formItemProps), {}, {
|
7410
7659
|
name: c.dataIndex,
|
7411
7660
|
label: c.title,
|
7412
|
-
labelCol:
|
7661
|
+
labelCol: _labelCol13
|
7413
7662
|
}), /*#__PURE__*/React__default['default'].createElement(Index, _objectSpread2({
|
7414
7663
|
disabled: disabled,
|
7415
7664
|
placeholder: "\u8BF7\u8F93\u5165"
|
@@ -7482,6 +7731,36 @@ var WForm = function WForm(props, ref) {
|
|
7482
7731
|
}
|
7483
7732
|
}
|
7484
7733
|
}, c.fieldProps), _extraProps4))));
|
7734
|
+
} else if (c.valueType == 'upload') {
|
7735
|
+
var _labelCol14 = {};
|
7736
|
+
|
7737
|
+
if (search && search.labelWidth) {
|
7738
|
+
_labelCol14.style = {
|
7739
|
+
width: search.labelWidth
|
7740
|
+
};
|
7741
|
+
}
|
7742
|
+
|
7743
|
+
return /*#__PURE__*/React__default['default'].createElement(_Col__default['default'], _objectSpread2(_objectSpread2({
|
7744
|
+
className: "pl12 pr12"
|
7745
|
+
}, colProps), {}, {
|
7746
|
+
key: c.dataIndex
|
7747
|
+
}), /*#__PURE__*/React__default['default'].createElement(_Form__default['default'].Item, _objectSpread2(_objectSpread2({
|
7748
|
+
initialValue: c.initialValue
|
7749
|
+
}, c.formItemProps), {}, {
|
7750
|
+
name: c.dataIndex,
|
7751
|
+
label: c.title,
|
7752
|
+
labelCol: _labelCol14
|
7753
|
+
}), /*#__PURE__*/React__default['default'].createElement(Upload, _objectSpread2({
|
7754
|
+
getFileList: function getFileList(fileListUrls, fileList) {
|
7755
|
+
setColumnsFields(function (preColumnsFields) {
|
7756
|
+
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, {
|
7757
|
+
fileListUrls: fileListUrls,
|
7758
|
+
fileList: fileList
|
7759
|
+
}));
|
7760
|
+
});
|
7761
|
+
},
|
7762
|
+
disabled: disabled
|
7763
|
+
}, c.fieldProps))));
|
7485
7764
|
} else if (c.valueType == 'cascader') {
|
7486
7765
|
var _extraProps5 = {};
|
7487
7766
|
|
@@ -7489,10 +7768,10 @@ var WForm = function WForm(props, ref) {
|
|
7489
7768
|
_extraProps5.request = c.request;
|
7490
7769
|
}
|
7491
7770
|
|
7492
|
-
var
|
7771
|
+
var _labelCol15 = {};
|
7493
7772
|
|
7494
7773
|
if (search && search.labelWidth) {
|
7495
|
-
|
7774
|
+
_labelCol15.style = {
|
7496
7775
|
width: search.labelWidth
|
7497
7776
|
};
|
7498
7777
|
}
|
@@ -7506,7 +7785,7 @@ var WForm = function WForm(props, ref) {
|
|
7506
7785
|
}, c.formItemProps), {}, {
|
7507
7786
|
name: c.dataIndex,
|
7508
7787
|
label: c.title,
|
7509
|
-
labelCol:
|
7788
|
+
labelCol: _labelCol15
|
7510
7789
|
}), /*#__PURE__*/React__default['default'].createElement(WCascader, _objectSpread2(_objectSpread2({
|
7511
7790
|
placeholder: "\u8BF7\u9009\u62E9",
|
7512
7791
|
disabled: disabled,
|
@@ -7523,10 +7802,10 @@ var WForm = function WForm(props, ref) {
|
|
7523
7802
|
_extraProps6.request = c.request;
|
7524
7803
|
}
|
7525
7804
|
|
7526
|
-
var
|
7805
|
+
var _labelCol16 = {};
|
7527
7806
|
|
7528
7807
|
if (search && search.labelWidth) {
|
7529
|
-
|
7808
|
+
_labelCol16.style = {
|
7530
7809
|
width: search.labelWidth
|
7531
7810
|
};
|
7532
7811
|
}
|
@@ -7540,17 +7819,17 @@ var WForm = function WForm(props, ref) {
|
|
7540
7819
|
}, c.formItemProps), {}, {
|
7541
7820
|
name: c.dataIndex,
|
7542
7821
|
label: c.title,
|
7543
|
-
labelCol:
|
7544
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7822
|
+
labelCol: _labelCol16
|
7823
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$7, _objectSpread2(_objectSpread2({
|
7545
7824
|
disabled: disabled,
|
7546
7825
|
placeholder: "\u8BF7\u9009\u62E9",
|
7547
7826
|
onLoad: function onLoad(opt) {}
|
7548
7827
|
}, c.fieldProps), _extraProps6))));
|
7549
7828
|
} else if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear'].includes(c.valueType)) {
|
7550
|
-
var
|
7829
|
+
var _labelCol17 = {};
|
7551
7830
|
|
7552
7831
|
if (search && search.labelWidth) {
|
7553
|
-
|
7832
|
+
_labelCol17.style = {
|
7554
7833
|
width: search.labelWidth
|
7555
7834
|
};
|
7556
7835
|
}
|
@@ -7587,16 +7866,16 @@ var WForm = function WForm(props, ref) {
|
|
7587
7866
|
}, c.formItemProps), {}, {
|
7588
7867
|
name: c.dataIndex,
|
7589
7868
|
label: c.title,
|
7590
|
-
labelCol:
|
7591
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7869
|
+
labelCol: _labelCol17
|
7870
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
|
7592
7871
|
disabled: disabled,
|
7593
7872
|
placeholder: "\u8BF7\u8F93\u5165"
|
7594
7873
|
}, picker), showTime), c.fieldProps))));
|
7595
7874
|
} else if (c.valueType === 'dateRange' || c.valueType === 'dateTimeRange') {
|
7596
|
-
var
|
7875
|
+
var _labelCol18 = {};
|
7597
7876
|
|
7598
7877
|
if (search && search.labelWidth) {
|
7599
|
-
|
7878
|
+
_labelCol18.style = {
|
7600
7879
|
width: search.labelWidth
|
7601
7880
|
};
|
7602
7881
|
}
|
@@ -7620,7 +7899,7 @@ var WForm = function WForm(props, ref) {
|
|
7620
7899
|
}, c.formItemProps), {}, {
|
7621
7900
|
name: c.dataIndex,
|
7622
7901
|
label: c.title,
|
7623
|
-
labelCol:
|
7902
|
+
labelCol: _labelCol18
|
7624
7903
|
}), /*#__PURE__*/React__default['default'].createElement(RangePicker$2, _objectSpread2(_objectSpread2({
|
7625
7904
|
disabled: disabled
|
7626
7905
|
}, _showTime2), c.fieldProps))));
|
@@ -7647,10 +7926,10 @@ var WForm = function WForm(props, ref) {
|
|
7647
7926
|
setColumnsFields(function (preColumnsFields) {
|
7648
7927
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
|
7649
7928
|
});
|
7650
|
-
var
|
7929
|
+
var _labelCol19 = {};
|
7651
7930
|
|
7652
7931
|
if (search && search.labelWidth) {
|
7653
|
-
|
7932
|
+
_labelCol19.style = {
|
7654
7933
|
width: search.labelWidth
|
7655
7934
|
};
|
7656
7935
|
}
|
@@ -7664,8 +7943,8 @@ var WForm = function WForm(props, ref) {
|
|
7664
7943
|
}, c.formItemProps), {}, {
|
7665
7944
|
name: c.dataIndex,
|
7666
7945
|
label: c.title,
|
7667
|
-
labelCol:
|
7668
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7946
|
+
labelCol: _labelCol19
|
7947
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$4.Group, _objectSpread2({
|
7669
7948
|
disabled: disabled,
|
7670
7949
|
options: options
|
7671
7950
|
}, c.fieldProps))));
|
@@ -7693,10 +7972,10 @@ var WForm = function WForm(props, ref) {
|
|
7693
7972
|
setColumnsFields(function (preColumnsFields) {
|
7694
7973
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options3));
|
7695
7974
|
});
|
7696
|
-
var
|
7975
|
+
var _labelCol20 = {};
|
7697
7976
|
|
7698
7977
|
if (search && search.labelWidth) {
|
7699
|
-
|
7978
|
+
_labelCol20.style = {
|
7700
7979
|
width: search.labelWidth
|
7701
7980
|
};
|
7702
7981
|
}
|
@@ -7719,8 +7998,8 @@ var WForm = function WForm(props, ref) {
|
|
7719
7998
|
}, c.formItemProps), {}, {
|
7720
7999
|
name: c.dataIndex,
|
7721
8000
|
label: c.title,
|
7722
|
-
labelCol:
|
7723
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
8001
|
+
labelCol: _labelCol20
|
8002
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$3.Group, _objectSpread2(_objectSpread2({
|
7724
8003
|
disabled: disabled
|
7725
8004
|
}, radioButtonProps), {}, {
|
7726
8005
|
options: _options3
|
@@ -7739,10 +8018,10 @@ var WForm = function WForm(props, ref) {
|
|
7739
8018
|
}
|
7740
8019
|
}
|
7741
8020
|
|
7742
|
-
var
|
8021
|
+
var _labelCol21 = {};
|
7743
8022
|
|
7744
8023
|
if (search && search.labelWidth) {
|
7745
|
-
|
8024
|
+
_labelCol21.style = {
|
7746
8025
|
width: search.labelWidth
|
7747
8026
|
};
|
7748
8027
|
} // if (columnsFieldsRef.current) {
|
@@ -7763,15 +8042,15 @@ var WForm = function WForm(props, ref) {
|
|
7763
8042
|
}, c.formItemProps), {}, {
|
7764
8043
|
name: c.dataIndex,
|
7765
8044
|
label: c.title,
|
7766
|
-
labelCol:
|
8045
|
+
labelCol: _labelCol21
|
7767
8046
|
}), /*#__PURE__*/React__default['default'].createElement(WSwitch, _objectSpread2({
|
7768
8047
|
disabled: disabled
|
7769
8048
|
}, c.fieldProps))));
|
7770
8049
|
} else if (c.valueType === 'digit') {
|
7771
|
-
var
|
8050
|
+
var _labelCol22 = {};
|
7772
8051
|
|
7773
8052
|
if (search && search.labelWidth) {
|
7774
|
-
|
8053
|
+
_labelCol22.style = {
|
7775
8054
|
width: search.labelWidth
|
7776
8055
|
};
|
7777
8056
|
}
|
@@ -7785,16 +8064,16 @@ var WForm = function WForm(props, ref) {
|
|
7785
8064
|
}, c.formItemProps), {}, {
|
7786
8065
|
name: c.dataIndex,
|
7787
8066
|
label: c.title,
|
7788
|
-
labelCol:
|
8067
|
+
labelCol: _labelCol22
|
7789
8068
|
}), /*#__PURE__*/React__default['default'].createElement(NumericInput, _objectSpread2({
|
7790
8069
|
disabled: disabled,
|
7791
8070
|
placeholder: "\u8BF7\u8F93\u5165\u53C2\u6570(double/int)"
|
7792
8071
|
}, c.fieldProps))));
|
7793
8072
|
} else if (c.renderFormItem) {
|
7794
|
-
var
|
8073
|
+
var _labelCol23 = {};
|
7795
8074
|
|
7796
8075
|
if (search && search.labelWidth) {
|
7797
|
-
|
8076
|
+
_labelCol23.style = {
|
7798
8077
|
width: search.labelWidth
|
7799
8078
|
};
|
7800
8079
|
}
|
@@ -7815,13 +8094,13 @@ var WForm = function WForm(props, ref) {
|
|
7815
8094
|
}, c.formItemProps), {}, {
|
7816
8095
|
name: c.dataIndex,
|
7817
8096
|
label: c.title,
|
7818
|
-
labelCol:
|
8097
|
+
labelCol: _labelCol23
|
7819
8098
|
}), baseitem)) : null;
|
7820
8099
|
} else if (c.valueType === 'textarea') {
|
7821
|
-
var
|
8100
|
+
var _labelCol24 = {};
|
7822
8101
|
|
7823
8102
|
if (search && search.labelWidth) {
|
7824
|
-
|
8103
|
+
_labelCol24.style = {
|
7825
8104
|
width: search.labelWidth
|
7826
8105
|
};
|
7827
8106
|
}
|
@@ -7835,17 +8114,17 @@ var WForm = function WForm(props, ref) {
|
|
7835
8114
|
}, c.formItemProps), {}, {
|
7836
8115
|
name: c.dataIndex,
|
7837
8116
|
label: c.title,
|
7838
|
-
labelCol:
|
8117
|
+
labelCol: _labelCol24
|
7839
8118
|
}), /*#__PURE__*/React__default['default'].createElement(Index.TextArea, _objectSpread2({
|
7840
8119
|
rows: 4,
|
7841
8120
|
disabled: disabled,
|
7842
8121
|
placeholder: "\u8BF7\u8F93\u5165"
|
7843
8122
|
}, c.fieldProps))));
|
7844
8123
|
} else if (c.valueType === 'inputNumber') {
|
7845
|
-
var
|
8124
|
+
var _labelCol25 = {};
|
7846
8125
|
|
7847
8126
|
if (search && search.labelWidth) {
|
7848
|
-
|
8127
|
+
_labelCol25.style = {
|
7849
8128
|
width: search.labelWidth
|
7850
8129
|
};
|
7851
8130
|
}
|
@@ -7859,16 +8138,16 @@ var WForm = function WForm(props, ref) {
|
|
7859
8138
|
}, c.formItemProps), {}, {
|
7860
8139
|
name: c.dataIndex,
|
7861
8140
|
label: c.title,
|
7862
|
-
labelCol:
|
8141
|
+
labelCol: _labelCol25
|
7863
8142
|
}), /*#__PURE__*/React__default['default'].createElement(WInputNumber, _objectSpread2({
|
7864
8143
|
disabled: disabled,
|
7865
8144
|
placeholder: "\u8BF7\u8F93\u5165"
|
7866
8145
|
}, c.fieldProps))));
|
7867
8146
|
} else {
|
7868
|
-
var
|
8147
|
+
var _labelCol26 = {};
|
7869
8148
|
|
7870
8149
|
if (search && search.labelWidth) {
|
7871
|
-
|
8150
|
+
_labelCol26.style = {
|
7872
8151
|
width: search.labelWidth
|
7873
8152
|
};
|
7874
8153
|
}
|
@@ -7882,7 +8161,7 @@ var WForm = function WForm(props, ref) {
|
|
7882
8161
|
}, c.formItemProps), {}, {
|
7883
8162
|
name: c.dataIndex,
|
7884
8163
|
label: c.title,
|
7885
|
-
labelCol:
|
8164
|
+
labelCol: _labelCol26
|
7886
8165
|
}), /*#__PURE__*/React__default['default'].createElement(Index, _objectSpread2({
|
7887
8166
|
disabled: disabled,
|
7888
8167
|
placeholder: "\u8BF7\u8F93\u5165"
|
@@ -8117,7 +8396,7 @@ var WForm = function WForm(props, ref) {
|
|
8117
8396
|
|
8118
8397
|
var WForm$1 = /*#__PURE__*/React__default['default'].forwardRef(WForm);
|
8119
8398
|
|
8120
|
-
var _excluded$
|
8399
|
+
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"];
|
8121
8400
|
|
8122
8401
|
function Table(_ref) {
|
8123
8402
|
var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
|
@@ -8149,7 +8428,7 @@ function Table(_ref) {
|
|
8149
8428
|
frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
|
8150
8429
|
formRef = _ref.formRef,
|
8151
8430
|
none = _ref.none,
|
8152
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
8431
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
8153
8432
|
|
8154
8433
|
var _useState = React.useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
|
8155
8434
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -8410,7 +8689,7 @@ function Table(_ref) {
|
|
8410
8689
|
left: 6
|
8411
8690
|
} : {}),
|
8412
8691
|
className: "td ".concat(showColumns[0].fixed == 'left' ? 'fixedLeft' : '')
|
8413
|
-
}, /*#__PURE__*/React__default['default'].createElement(Index$
|
8692
|
+
}, /*#__PURE__*/React__default['default'].createElement(Index$4, {
|
8414
8693
|
checked: (_ref2 = [].concat(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || []), _toConsumableArray(selectedRowKeys))) === null || _ref2 === void 0 ? void 0 : _ref2.includes(key),
|
8415
8694
|
onClick: function onClick(e) {
|
8416
8695
|
return e.stopPropagation();
|
@@ -8450,7 +8729,7 @@ function Table(_ref) {
|
|
8450
8729
|
left: 6
|
8451
8730
|
} : {}),
|
8452
8731
|
className: "td ".concat(showColumns[0].fixed == 'left' ? 'fixedLeft' : '')
|
8453
|
-
}, /*#__PURE__*/React__default['default'].createElement(Index$
|
8732
|
+
}, /*#__PURE__*/React__default['default'].createElement(Index$3, {
|
8454
8733
|
checked: (_ref3 = [].concat(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || []), _toConsumableArray(selectedRowKeys))) === null || _ref3 === void 0 ? void 0 : _ref3.includes(key),
|
8455
8734
|
onClick: function onClick(e) {
|
8456
8735
|
return e.stopPropagation();
|
@@ -8630,7 +8909,7 @@ function Table(_ref) {
|
|
8630
8909
|
left: 6
|
8631
8910
|
} : {}),
|
8632
8911
|
className: "td ".concat(((_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.fixed) == 'left' ? 'fixedLeft' : '')
|
8633
|
-
}, /*#__PURE__*/React__default['default'].createElement(Index$
|
8912
|
+
}, /*#__PURE__*/React__default['default'].createElement(Index$4, {
|
8634
8913
|
checked: dataSource.every(function (record) {
|
8635
8914
|
return selectedRowKeys.includes(typeof rowKey === 'function' ? record[rowKey(record)] : record[rowKey]);
|
8636
8915
|
}),
|
@@ -8689,7 +8968,7 @@ Table.defaultProps = {
|
|
8689
8968
|
};
|
8690
8969
|
var index$1 = /*#__PURE__*/React.memo(Table);
|
8691
8970
|
|
8692
|
-
var _excluded$
|
8971
|
+
var _excluded$9 = ["height", "width", "count", "style", "numberStyle"],
|
8693
8972
|
_excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
|
8694
8973
|
|
8695
8974
|
var Number = function Number(_ref) {
|
@@ -8699,7 +8978,7 @@ var Number = function Number(_ref) {
|
|
8699
8978
|
count = _ref$count === void 0 ? 0 : _ref$count,
|
8700
8979
|
style = _ref.style,
|
8701
8980
|
numberStyle = _ref.numberStyle,
|
8702
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
8981
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
8703
8982
|
|
8704
8983
|
// 上次的值
|
8705
8984
|
var _useState = React.useState(0),
|
@@ -8819,7 +9098,7 @@ Number.defaultProps = {
|
|
8819
9098
|
height: 40
|
8820
9099
|
};
|
8821
9100
|
|
8822
|
-
var Index$
|
9101
|
+
var Index$8 = function Index(props) {
|
8823
9102
|
var count = props.count,
|
8824
9103
|
_props$numberCount = props.numberCount,
|
8825
9104
|
numberCount = _props$numberCount === void 0 ? 5 : _props$numberCount,
|
@@ -8863,20 +9142,20 @@ var Index$7 = function Index(props) {
|
|
8863
9142
|
}));
|
8864
9143
|
};
|
8865
9144
|
|
8866
|
-
var _excluded$
|
9145
|
+
var _excluded$a = ["duration"];
|
8867
9146
|
|
8868
|
-
var Index$
|
9147
|
+
var Index$9 = function Index(props) {
|
8869
9148
|
var _props$duration = props.duration,
|
8870
9149
|
duration = _props$duration === void 0 ? 2.75 : _props$duration,
|
8871
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
9150
|
+
extraProps = _objectWithoutProperties(props, _excluded$a);
|
8872
9151
|
return /*#__PURE__*/React__default['default'].createElement(CountUp__default['default'], _objectSpread2({
|
8873
9152
|
duration: duration
|
8874
9153
|
}, extraProps));
|
8875
9154
|
};
|
8876
9155
|
|
8877
|
-
Index$
|
9156
|
+
Index$9.defaultProps = {};
|
8878
9157
|
|
8879
|
-
var _excluded$
|
9158
|
+
var _excluded$b = ["list", "render", "none", "partSize"];
|
8880
9159
|
|
8881
9160
|
function AutoScroll(props) {
|
8882
9161
|
var inner1 = React.useRef();
|
@@ -8955,13 +9234,13 @@ function AutoScroll(props) {
|
|
8955
9234
|
}));
|
8956
9235
|
}
|
8957
9236
|
|
8958
|
-
var Index$
|
9237
|
+
var Index$a = function Index(_ref) {
|
8959
9238
|
var list = _ref.list,
|
8960
9239
|
render = _ref.render,
|
8961
9240
|
none = _ref.none,
|
8962
9241
|
_ref$partSize = _ref.partSize,
|
8963
9242
|
partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
|
8964
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
9243
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$b);
|
8965
9244
|
|
8966
9245
|
var _useState = React.useState([]),
|
8967
9246
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -9044,11 +9323,11 @@ var Index$9 = function Index(_ref) {
|
|
9044
9323
|
}, none || '暂无数据');
|
9045
9324
|
};
|
9046
9325
|
|
9047
|
-
var _excluded$
|
9326
|
+
var _excluded$c = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
|
9048
9327
|
|
9049
9328
|
SwiperCore__default['default'].use([SwiperCore.Pagination, SwiperCore.Navigation, SwiperCore.Autoplay, SwiperCore.Virtual]);
|
9050
9329
|
|
9051
|
-
var Index$
|
9330
|
+
var Index$b = function Index(props) {
|
9052
9331
|
var data = props.data,
|
9053
9332
|
_onClick = props.onClick,
|
9054
9333
|
_props$slidesPerView = props.slidesPerView,
|
@@ -9056,7 +9335,7 @@ var Index$a = function Index(props) {
|
|
9056
9335
|
rowKey = props.rowKey,
|
9057
9336
|
onSwiperChange = props.onSwiperChange,
|
9058
9337
|
renderItem = props.renderItem,
|
9059
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
9338
|
+
extraProps = _objectWithoutProperties(props, _excluded$c);
|
9060
9339
|
|
9061
9340
|
var _useState = React.useState(null),
|
9062
9341
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -9111,7 +9390,7 @@ var Index$a = function Index(props) {
|
|
9111
9390
|
}));
|
9112
9391
|
};
|
9113
9392
|
|
9114
|
-
Index$
|
9393
|
+
Index$b.defaultProps = {};
|
9115
9394
|
|
9116
9395
|
function _extends$1() {
|
9117
9396
|
_extends$1 = Object.assign || function (target) {
|
@@ -9707,7 +9986,7 @@ function createBrowserHistory(props) {
|
|
9707
9986
|
return history;
|
9708
9987
|
}
|
9709
9988
|
|
9710
|
-
var _excluded$
|
9989
|
+
var _excluded$d = ["routes", "className"];
|
9711
9990
|
var history = createBrowserHistory();
|
9712
9991
|
|
9713
9992
|
function itemRender(route, params, routes, paths) {
|
@@ -9722,10 +10001,10 @@ function itemRender(route, params, routes, paths) {
|
|
9722
10001
|
}, route.breadcrumbName);
|
9723
10002
|
}
|
9724
10003
|
|
9725
|
-
var Index$
|
10004
|
+
var Index$c = function Index(_ref) {
|
9726
10005
|
var routes = _ref.routes,
|
9727
10006
|
className = _ref.className,
|
9728
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
10007
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
9729
10008
|
|
9730
10009
|
return /*#__PURE__*/React__default['default'].createElement(_Breadcrumb__default['default'], _objectSpread2({
|
9731
10010
|
className: className || 'default',
|
@@ -9735,9 +10014,9 @@ var Index$b = function Index(_ref) {
|
|
9735
10014
|
}, props));
|
9736
10015
|
};
|
9737
10016
|
|
9738
|
-
var _excluded$
|
10017
|
+
var _excluded$e = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
|
9739
10018
|
|
9740
|
-
var Index$
|
10019
|
+
var Index$d = function Index(_ref, ref) {
|
9741
10020
|
var _classNames, _sliderTabs$component, _sliderTabs$tabs;
|
9742
10021
|
|
9743
10022
|
var title = _ref.title,
|
@@ -9746,7 +10025,7 @@ var Index$c = function Index(_ref, ref) {
|
|
9746
10025
|
headerTail = _ref.headerTail,
|
9747
10026
|
headerCenter = _ref.headerCenter,
|
9748
10027
|
sliderTabs = _ref.sliderTabs,
|
9749
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
10028
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
9750
10029
|
|
9751
10030
|
React.useImperativeHandle(ref, function () {
|
9752
10031
|
return {
|
@@ -9788,7 +10067,7 @@ var Index$c = function Index(_ref, ref) {
|
|
9788
10067
|
}))));
|
9789
10068
|
};
|
9790
10069
|
|
9791
|
-
var index$2 = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Index$
|
10070
|
+
var index$2 = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Index$d));
|
9792
10071
|
|
9793
10072
|
var controlShow = function controlShow(f1, f2, value, timer) {
|
9794
10073
|
f1(value);
|
@@ -9990,7 +10269,7 @@ function DialogModel(props, ref) {
|
|
9990
10269
|
|
9991
10270
|
var Dialog = /*#__PURE__*/React__default['default'].forwardRef(DialogModel);
|
9992
10271
|
|
9993
|
-
var _excluded$
|
10272
|
+
var _excluded$f = ["visible", "width", "closeCb", "onClose", "className", "style"],
|
9994
10273
|
_excluded2$3 = ["visible"];
|
9995
10274
|
|
9996
10275
|
var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
@@ -10107,7 +10386,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
10107
10386
|
onClose = _this$props4.onClose,
|
10108
10387
|
className = _this$props4.className,
|
10109
10388
|
style = _this$props4.style,
|
10110
|
-
other = _objectWithoutProperties(_this$props4, _excluded$
|
10389
|
+
other = _objectWithoutProperties(_this$props4, _excluded$f);
|
10111
10390
|
|
10112
10391
|
return /*#__PURE__*/React__default['default'].createElement(Dialog, _objectSpread2({
|
10113
10392
|
ref: this.containerRef,
|
@@ -10290,7 +10569,7 @@ function DialogModel$1(props) {
|
|
10290
10569
|
return renderChildren;
|
10291
10570
|
}
|
10292
10571
|
|
10293
|
-
var _excluded$
|
10572
|
+
var _excluded$g = ["visible"];
|
10294
10573
|
|
10295
10574
|
var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
10296
10575
|
_inherits(Modal, _React$PureComponent);
|
@@ -10430,7 +10709,7 @@ Modal$1.show = function (config) {
|
|
10430
10709
|
manager.setShow = setShow;
|
10431
10710
|
|
10432
10711
|
var visible = props.visible,
|
10433
|
-
trueProps = _objectWithoutProperties(props, _excluded$
|
10712
|
+
trueProps = _objectWithoutProperties(props, _excluded$g);
|
10434
10713
|
|
10435
10714
|
React.useEffect(function () {
|
10436
10715
|
manager.mounted = true;
|
@@ -10630,7 +10909,7 @@ function DragBox(_ref) {
|
|
10630
10909
|
}, children)) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
10631
10910
|
}
|
10632
10911
|
|
10633
|
-
var _excluded$
|
10912
|
+
var _excluded$h = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel"];
|
10634
10913
|
|
10635
10914
|
var ModalForm = function ModalForm(props, ref) {
|
10636
10915
|
var columns = props.columns,
|
@@ -10646,7 +10925,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10646
10925
|
onFormChange = props.onFormChange,
|
10647
10926
|
formItemChild = props.formItemChild,
|
10648
10927
|
onCancel = props.onCancel,
|
10649
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10928
|
+
extraProps = _objectWithoutProperties(props, _excluded$h);
|
10650
10929
|
|
10651
10930
|
var formRef = React.useRef(null);
|
10652
10931
|
|
@@ -10778,7 +11057,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10778
11057
|
|
10779
11058
|
var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
|
10780
11059
|
|
10781
|
-
var _excluded$
|
11060
|
+
var _excluded$i = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig", "pagination", "noBordered"];
|
10782
11061
|
|
10783
11062
|
var TabelCard = function TabelCard(props, ref) {
|
10784
11063
|
var columns = props.columns,
|
@@ -10796,7 +11075,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10796
11075
|
optionColumnConfig = props.optionColumnConfig,
|
10797
11076
|
pagination = props.pagination,
|
10798
11077
|
noBordered = props.noBordered,
|
10799
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
11078
|
+
extraProps = _objectWithoutProperties(props, _excluded$i);
|
10800
11079
|
|
10801
11080
|
var actionRef = React.useRef();
|
10802
11081
|
var modalFormRef = React.useRef(null);
|
@@ -11746,7 +12025,7 @@ function VideoPlayer(_ref, ref) {
|
|
11746
12025
|
|
11747
12026
|
var index$4 = /*#__PURE__*/React.forwardRef(VideoPlayer);
|
11748
12027
|
|
11749
|
-
var _excluded$
|
12028
|
+
var _excluded$j = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
|
11750
12029
|
|
11751
12030
|
var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2]; // 默认记忆提示文字展示时长(s)
|
11752
12031
|
|
@@ -11777,7 +12056,7 @@ var index$5 = (function (_ref) {
|
|
11777
12056
|
enableMemory = _ref$enableMemory === void 0 ? false : _ref$enableMemory,
|
11778
12057
|
_ref$lastPlayTimeHide = _ref.lastPlayTimeHideDelay,
|
11779
12058
|
lastPlayTimeHideDelay = _ref$lastPlayTimeHide === void 0 ? DEFAULT_LAST_PLAY_TIME_DELAY : _ref$lastPlayTimeHide,
|
11780
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
12059
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
11781
12060
|
|
11782
12061
|
var player = React.useRef();
|
11783
12062
|
var currentPlayerIndex = React.useRef(0); // 内置的 index 状态管理
|
@@ -12755,14 +13034,14 @@ function WaterLevelCharts(config) {
|
|
12755
13034
|
});
|
12756
13035
|
}
|
12757
13036
|
|
12758
|
-
exports.AutoScroll = Index$
|
12759
|
-
exports.Breadcrumb = Index$
|
13037
|
+
exports.AutoScroll = Index$a;
|
13038
|
+
exports.Breadcrumb = Index$c;
|
12760
13039
|
exports.Button = WButton;
|
12761
13040
|
exports.Card = index$2;
|
12762
13041
|
exports.Cascader = WCascader;
|
12763
|
-
exports.Checkbox = Index$
|
12764
|
-
exports.CountUp = Index$
|
12765
|
-
exports.DatePicker = Index$
|
13042
|
+
exports.Checkbox = Index$4;
|
13043
|
+
exports.CountUp = Index$9;
|
13044
|
+
exports.DatePicker = Index$2;
|
12766
13045
|
exports.DragBox = DragBox;
|
12767
13046
|
exports.IconFont = index;
|
12768
13047
|
exports.Input = Index;
|
@@ -12771,18 +13050,19 @@ exports.LineEcharts = LineEcharts;
|
|
12771
13050
|
exports.Modal = Modal;
|
12772
13051
|
exports.ModalForm = ModalForm$1;
|
12773
13052
|
exports.ModalTips = Modal$1;
|
12774
|
-
exports.Number = Index$
|
13053
|
+
exports.Number = Index$8;
|
12775
13054
|
exports.NumericInput = NumericInput;
|
12776
|
-
exports.Radio = Index$
|
13055
|
+
exports.Radio = Index$3;
|
12777
13056
|
exports.Select = Select;
|
12778
|
-
exports.Swiper = Index$
|
13057
|
+
exports.Swiper = Index$b;
|
12779
13058
|
exports.Switch = WSwitch;
|
12780
13059
|
exports.TabelCard = index$3;
|
12781
13060
|
exports.Table = index$1;
|
12782
|
-
exports.TreeSelect = Index$
|
13061
|
+
exports.TreeSelect = Index$7;
|
13062
|
+
exports.Upload = Upload;
|
12783
13063
|
exports.Video = index$5;
|
12784
13064
|
exports.VideoPlayer = index$4;
|
12785
|
-
exports.WDatePicker = Index$
|
13065
|
+
exports.WDatePicker = Index$6;
|
12786
13066
|
exports.WForm = WForm$1;
|
12787
13067
|
exports.WaterLevelCharts = WaterLevelCharts;
|
12788
13068
|
exports.WebsocketHeart = WebsocketHeart;
|