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.esm.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import React, { useRef, useEffect, useMemo,
|
1
|
+
import React, { useRef, useEffect, useMemo, useState, useImperativeHandle, memo, forwardRef, createRef, useCallback } from 'react';
|
2
2
|
import { cloneDeep, isEmpty } from 'lodash';
|
3
3
|
import 'antd/es/button/style';
|
4
4
|
import _Button from 'antd/es/button';
|
@@ -6,9 +6,15 @@ import 'antd/es/dropdown/style';
|
|
6
6
|
import _Dropdown from 'antd/es/dropdown';
|
7
7
|
import 'antd/es/menu/style';
|
8
8
|
import _Menu from 'antd/es/menu';
|
9
|
-
import { createFromIconfontCN, SearchOutlined, ReloadOutlined, CloseCircleOutlined,
|
9
|
+
import { createFromIconfontCN, PlusOutlined, SearchOutlined, ReloadOutlined, CloseCircleOutlined, EllipsisOutlined, ExclamationCircleOutlined, EyeOutlined, EditOutlined, DeleteOutlined } from '@ant-design/icons';
|
10
10
|
import 'antd/es/input/style';
|
11
11
|
import _Input from 'antd/es/input';
|
12
|
+
import 'antd/es/modal/style';
|
13
|
+
import _Modal from 'antd/es/modal';
|
14
|
+
import 'antd/es/upload/style';
|
15
|
+
import _Upload from 'antd/es/upload';
|
16
|
+
import 'antd/es/message/style';
|
17
|
+
import _message from 'antd/es/message';
|
12
18
|
import 'antd/es/input-number/style';
|
13
19
|
import _InputNumber from 'antd/es/input-number';
|
14
20
|
import 'antd/es/pagination/style';
|
@@ -46,8 +52,6 @@ import SwiperCore, { Pagination, Navigation, Autoplay, Virtual } from 'swiper';
|
|
46
52
|
import 'antd/es/breadcrumb/style';
|
47
53
|
import _Breadcrumb from 'antd/es/breadcrumb';
|
48
54
|
import ReactDOM from 'react-dom';
|
49
|
-
import 'antd/es/modal/style';
|
50
|
-
import _Modal from 'antd/es/modal';
|
51
55
|
import ProTable from '@ant-design/pro-table';
|
52
56
|
import Player from 'xgplayer';
|
53
57
|
import FlvPlayer from 'xgplayer-flv.js';
|
@@ -581,6 +585,200 @@ var Index = WInput;
|
|
581
585
|
Index.TextArea = _Input.TextArea;
|
582
586
|
WInput.defaultProps = {};
|
583
587
|
|
588
|
+
var _excluded$1 = ["value", "onChange", "beforeUpload", "uploadButton", "maxCount", "fetchMethord", "getFileList"];
|
589
|
+
|
590
|
+
function Index$1(_ref, ref) {
|
591
|
+
var value = _ref.value,
|
592
|
+
onChange = _ref.onChange,
|
593
|
+
beforeUpload = _ref.beforeUpload,
|
594
|
+
uploadButton = _ref.uploadButton,
|
595
|
+
maxCount = _ref.maxCount,
|
596
|
+
fetchMethord = _ref.fetchMethord,
|
597
|
+
getFileList = _ref.getFileList,
|
598
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
599
|
+
|
600
|
+
var _useState = useState([]),
|
601
|
+
_useState2 = _slicedToArray(_useState, 2),
|
602
|
+
fileList = _useState2[0],
|
603
|
+
setFileList = _useState2[1];
|
604
|
+
|
605
|
+
useEffect(function () {
|
606
|
+
setFileList(value ? value.split(',').map(function (url) {
|
607
|
+
return {
|
608
|
+
uid: Math.random().toString(36).slice(2, 36),
|
609
|
+
name: '',
|
610
|
+
status: 'done',
|
611
|
+
url: url
|
612
|
+
};
|
613
|
+
}) : []);
|
614
|
+
}, [value]);
|
615
|
+
useEffect(function () {
|
616
|
+
getFileList && getFileList(fileList.map(function (file) {
|
617
|
+
return file.url;
|
618
|
+
}), fileList);
|
619
|
+
}, [fileList]);
|
620
|
+
|
621
|
+
var _useState3 = useState(false),
|
622
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
623
|
+
previewVisible = _useState4[0],
|
624
|
+
setPreviewVisible = _useState4[1];
|
625
|
+
|
626
|
+
var _useState5 = useState(''),
|
627
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
628
|
+
previewImage = _useState6[0],
|
629
|
+
setPreviewImage = _useState6[1];
|
630
|
+
|
631
|
+
var _useState7 = useState(''),
|
632
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
633
|
+
previewTitle = _useState8[0],
|
634
|
+
setPreviewTitle = _useState8[1];
|
635
|
+
|
636
|
+
var getBase64 = function getBase64(file) {
|
637
|
+
return new Promise(function (resolve, reject) {
|
638
|
+
var reader = new FileReader();
|
639
|
+
reader.readAsDataURL(file);
|
640
|
+
|
641
|
+
reader.onload = function () {
|
642
|
+
return resolve(reader.result);
|
643
|
+
};
|
644
|
+
|
645
|
+
reader.onerror = function (error) {
|
646
|
+
return reject(error);
|
647
|
+
};
|
648
|
+
});
|
649
|
+
};
|
650
|
+
|
651
|
+
var handleCancel = function handleCancel() {
|
652
|
+
return setPreviewVisible(false);
|
653
|
+
};
|
654
|
+
|
655
|
+
var beforeUploadIn = function beforeUploadIn(file) {
|
656
|
+
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
|
657
|
+
|
658
|
+
if (!isJpgOrPng) {
|
659
|
+
_message.error('You can only upload JPG/PNG file!');
|
660
|
+
}
|
661
|
+
|
662
|
+
var isLt2M = file.size / 1024 / 1024 < 2;
|
663
|
+
|
664
|
+
if (!isLt2M) {
|
665
|
+
_message.error('Image must smaller than 2MB!');
|
666
|
+
}
|
667
|
+
|
668
|
+
return beforeUpload ? beforeUpload(file) : isJpgOrPng && isLt2M;
|
669
|
+
};
|
670
|
+
|
671
|
+
var handleChange = /*#__PURE__*/function () {
|
672
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(_ref2) {
|
673
|
+
var file, newFileList, url, urls;
|
674
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
675
|
+
while (1) {
|
676
|
+
switch (_context.prev = _context.next) {
|
677
|
+
case 0:
|
678
|
+
file = _ref2.file, newFileList = _ref2.fileList;
|
679
|
+
|
680
|
+
if (!(file.status === 'done')) {
|
681
|
+
_context.next = 6;
|
682
|
+
break;
|
683
|
+
}
|
684
|
+
|
685
|
+
_context.next = 4;
|
686
|
+
return fetchMethord ? fetchMethord(file.originFileObj) : getBase64(file.originFileObj);
|
687
|
+
|
688
|
+
case 4:
|
689
|
+
url = _context.sent;
|
690
|
+
|
691
|
+
if (!file.url) {
|
692
|
+
file.url = url;
|
693
|
+
}
|
694
|
+
|
695
|
+
case 6:
|
696
|
+
urls = newFileList.map(function (file) {
|
697
|
+
return file.url;
|
698
|
+
}).join(',');
|
699
|
+
onChange && onChange(urls);
|
700
|
+
setFileList(newFileList);
|
701
|
+
|
702
|
+
case 9:
|
703
|
+
case "end":
|
704
|
+
return _context.stop();
|
705
|
+
}
|
706
|
+
}
|
707
|
+
}, _callee);
|
708
|
+
}));
|
709
|
+
|
710
|
+
return function handleChange(_x) {
|
711
|
+
return _ref3.apply(this, arguments);
|
712
|
+
};
|
713
|
+
}();
|
714
|
+
|
715
|
+
var handlePreview = /*#__PURE__*/function () {
|
716
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(file) {
|
717
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
718
|
+
while (1) {
|
719
|
+
switch (_context2.prev = _context2.next) {
|
720
|
+
case 0:
|
721
|
+
if (!(!file.url && !file.preview)) {
|
722
|
+
_context2.next = 4;
|
723
|
+
break;
|
724
|
+
}
|
725
|
+
|
726
|
+
_context2.next = 3;
|
727
|
+
return getBase64(file.originFileObj);
|
728
|
+
|
729
|
+
case 3:
|
730
|
+
file.preview = _context2.sent;
|
731
|
+
|
732
|
+
case 4:
|
733
|
+
setPreviewImage(file.url || file.preview);
|
734
|
+
setPreviewVisible(true);
|
735
|
+
setPreviewTitle(file.name || file.url.substring(file.url.lastIndexOf('/') + 1));
|
736
|
+
|
737
|
+
case 7:
|
738
|
+
case "end":
|
739
|
+
return _context2.stop();
|
740
|
+
}
|
741
|
+
}
|
742
|
+
}, _callee2);
|
743
|
+
}));
|
744
|
+
|
745
|
+
return function handlePreview(_x2) {
|
746
|
+
return _ref4.apply(this, arguments);
|
747
|
+
};
|
748
|
+
}();
|
749
|
+
|
750
|
+
var uploadButtonDom = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("div", {
|
751
|
+
style: {
|
752
|
+
marginTop: 8
|
753
|
+
}
|
754
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u4E0A\u4F20")));
|
755
|
+
useImperativeHandle(ref, function () {
|
756
|
+
return {
|
757
|
+
fileList: fileList
|
758
|
+
};
|
759
|
+
});
|
760
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Upload, _objectSpread2({
|
761
|
+
fileList: fileList,
|
762
|
+
listType: "picture-card",
|
763
|
+
beforeUpload: beforeUploadIn,
|
764
|
+
onPreview: handlePreview,
|
765
|
+
onChange: handleChange
|
766
|
+
}, props), fileList.length >= maxCount ? null : uploadButton ? uploadButton : uploadButtonDom), /*#__PURE__*/React.createElement(_Modal, {
|
767
|
+
visible: previewVisible,
|
768
|
+
title: previewTitle,
|
769
|
+
footer: null,
|
770
|
+
onCancel: handleCancel
|
771
|
+
}, /*#__PURE__*/React.createElement("img", {
|
772
|
+
alt: "example",
|
773
|
+
style: {
|
774
|
+
width: '100%'
|
775
|
+
},
|
776
|
+
src: previewImage
|
777
|
+
})));
|
778
|
+
}
|
779
|
+
|
780
|
+
var Upload = /*#__PURE__*/React.forwardRef(Index$1);
|
781
|
+
|
584
782
|
var WInputNumber = function WInputNumber(props) {
|
585
783
|
var extraProps = _extends({}, props);
|
586
784
|
|
@@ -604,8 +802,8 @@ var RangePicker = function RangePicker(props) {
|
|
604
802
|
};
|
605
803
|
|
606
804
|
RangePicker.defaultProps = {};
|
607
|
-
var Index$
|
608
|
-
Index$
|
805
|
+
var Index$2 = WDatePicker;
|
806
|
+
Index$2.RangePicker = RangePicker;
|
609
807
|
|
610
808
|
var WRadio = function WRadio(props) {
|
611
809
|
var extraProps = _extends({}, props);
|
@@ -613,9 +811,9 @@ var WRadio = function WRadio(props) {
|
|
613
811
|
return /*#__PURE__*/React.createElement(_Radio, _objectSpread2({}, extraProps));
|
614
812
|
};
|
615
813
|
|
616
|
-
var Index$
|
617
|
-
Index$
|
618
|
-
Index$
|
814
|
+
var Index$3 = WRadio;
|
815
|
+
Index$3.Group = _Radio.Group;
|
816
|
+
Index$3.Button = _Radio.Button;
|
619
817
|
WRadio.defaultProps = {};
|
620
818
|
|
621
819
|
var WCheckbox = function WCheckbox(props) {
|
@@ -625,8 +823,8 @@ var WCheckbox = function WCheckbox(props) {
|
|
625
823
|
};
|
626
824
|
|
627
825
|
WCheckbox.defaultProps = {};
|
628
|
-
var Index$
|
629
|
-
Index$
|
826
|
+
var Index$4 = WCheckbox;
|
827
|
+
Index$4.Group = _Checkbox.Group;
|
630
828
|
|
631
829
|
/*
|
632
830
|
* @Author: lijin
|
@@ -699,7 +897,7 @@ var calcHeight = function calcHeight(height) {
|
|
699
897
|
return document.body.clientHeight / 2160 * height;
|
700
898
|
};
|
701
899
|
|
702
|
-
var _excluded$
|
900
|
+
var _excluded$2 = ["className", "frameStyle", "style", "direction", "children"];
|
703
901
|
function FrameBox(_ref) {
|
704
902
|
var _classnames;
|
705
903
|
|
@@ -709,7 +907,7 @@ function FrameBox(_ref) {
|
|
709
907
|
_ref$direction = _ref.direction,
|
710
908
|
direction = _ref$direction === void 0 ? 'in' : _ref$direction,
|
711
909
|
children = _ref.children,
|
712
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
910
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
713
911
|
|
714
912
|
return /*#__PURE__*/React.createElement("div", _objectSpread2({
|
715
913
|
className: classnames((_classnames = {}, _defineProperty(_classnames, 'frame', true), _defineProperty(_classnames, className || '', true), _classnames)),
|
@@ -741,7 +939,7 @@ function FrameBox(_ref) {
|
|
741
939
|
}), children);
|
742
940
|
}
|
743
941
|
|
744
|
-
var _excluded$
|
942
|
+
var _excluded$3 = ["request", "valueEnum", "onLoad", "children", "params"],
|
745
943
|
_excluded2 = ["children"];
|
746
944
|
|
747
945
|
var WSelect = function WSelect(props) {
|
@@ -750,7 +948,7 @@ var WSelect = function WSelect(props) {
|
|
750
948
|
onLoad = props.onLoad,
|
751
949
|
children = props.children,
|
752
950
|
params = props.params,
|
753
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
951
|
+
extraProps = _objectWithoutProperties(props, _excluded$3);
|
754
952
|
|
755
953
|
var _useState = useState([]),
|
756
954
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -862,9 +1060,9 @@ var Option = function Option(props) {
|
|
862
1060
|
return /*#__PURE__*/React.createElement(_Select.Option, _objectSpread2({}, extraProps), children);
|
863
1061
|
};
|
864
1062
|
|
865
|
-
var Index$
|
866
|
-
Index$
|
867
|
-
var Select = /*#__PURE__*/memo(Index$
|
1063
|
+
var Index$5 = WSelect;
|
1064
|
+
Index$5.Option = Option;
|
1065
|
+
var Select = /*#__PURE__*/memo(Index$5);
|
868
1066
|
|
869
1067
|
//! moment.js
|
870
1068
|
//! version : 2.29.1
|
@@ -6527,7 +6725,7 @@ hooks.HTML5_FMT = {
|
|
6527
6725
|
MONTH: 'YYYY-MM', // <input type="month" />
|
6528
6726
|
};
|
6529
6727
|
|
6530
|
-
var _excluded$
|
6728
|
+
var _excluded$4 = ["defaultValue", "format", "value", "onChange"],
|
6531
6729
|
_excluded2$1 = ["defaultValue", "value", "format", "showTime", "onChange"];
|
6532
6730
|
|
6533
6731
|
var momentValue = function momentValue(value) {
|
@@ -6543,7 +6741,7 @@ var WDatePicker$1 = function WDatePicker(props) {
|
|
6543
6741
|
format = props.format,
|
6544
6742
|
value = props.value,
|
6545
6743
|
_onChange = props.onChange,
|
6546
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
6744
|
+
extraProps = _objectWithoutProperties(props, _excluded$4);
|
6547
6745
|
|
6548
6746
|
return /*#__PURE__*/React.createElement(_DatePicker, _objectSpread2({
|
6549
6747
|
defaultValue: momentValue(defaultValue),
|
@@ -6579,8 +6777,8 @@ var RangePicker$1 = function RangePicker(props) {
|
|
6579
6777
|
};
|
6580
6778
|
|
6581
6779
|
RangePicker$1.defaultProps = {};
|
6582
|
-
var Index$
|
6583
|
-
Index$
|
6780
|
+
var Index$6 = WDatePicker$1;
|
6781
|
+
Index$6.RangePicker = RangePicker$1;
|
6584
6782
|
|
6585
6783
|
var WSwitch = function WSwitch(props) {
|
6586
6784
|
var extraProps = _extends({}, props);
|
@@ -6680,7 +6878,7 @@ var NumericInput = /*#__PURE__*/function (_React$Component) {
|
|
6680
6878
|
return NumericInput;
|
6681
6879
|
}(React.Component);
|
6682
6880
|
|
6683
|
-
var _excluded$
|
6881
|
+
var _excluded$5 = ["treeNodeLabelProp", "treeNodeValueProp", "treeNodeChildrenProp", "request", "onLoad", "params", "treeData"];
|
6684
6882
|
|
6685
6883
|
var TreeSelect = function TreeSelect(_ref) {
|
6686
6884
|
var _ref$treeNodeLabelPro = _ref.treeNodeLabelProp,
|
@@ -6693,7 +6891,7 @@ var TreeSelect = function TreeSelect(_ref) {
|
|
6693
6891
|
onLoad = _ref.onLoad,
|
6694
6892
|
params = _ref.params,
|
6695
6893
|
treePropsData = _ref.treeData,
|
6696
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
6894
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
6697
6895
|
|
6698
6896
|
var renderTree = function renderTree(data) {
|
6699
6897
|
return data === null || data === void 0 ? void 0 : data.map(function (item) {
|
@@ -6765,10 +6963,10 @@ var TreeSelect = function TreeSelect(_ref) {
|
|
6765
6963
|
}, props), !props.children ? renderTree(treeData) : props.children);
|
6766
6964
|
};
|
6767
6965
|
|
6768
|
-
var Index$
|
6769
|
-
Index$
|
6966
|
+
var Index$7 = TreeSelect;
|
6967
|
+
Index$7.TreeNode = _TreeSelect.TreeNode;
|
6770
6968
|
|
6771
|
-
var _excluded$
|
6969
|
+
var _excluded$6 = ["request", "options", "onLoad", "value", "onChange", "params"];
|
6772
6970
|
|
6773
6971
|
var WCascader = function WCascader(props) {
|
6774
6972
|
var request = props.request,
|
@@ -6777,7 +6975,7 @@ var WCascader = function WCascader(props) {
|
|
6777
6975
|
value = props.value,
|
6778
6976
|
_onChange = props.onChange,
|
6779
6977
|
params = props.params,
|
6780
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
6978
|
+
extraProps = _objectWithoutProperties(props, _excluded$6);
|
6781
6979
|
|
6782
6980
|
var _useState = useState(null),
|
6783
6981
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -6844,8 +7042,8 @@ var WCascader = function WCascader(props) {
|
|
6844
7042
|
}, extraProps));
|
6845
7043
|
};
|
6846
7044
|
|
6847
|
-
var _excluded$
|
6848
|
-
var RangePicker$2 = Index$
|
7045
|
+
var _excluded$7 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm"];
|
7046
|
+
var RangePicker$2 = Index$6.RangePicker;
|
6849
7047
|
|
6850
7048
|
var WForm = function WForm(props, ref) {
|
6851
7049
|
var columns = props.columns,
|
@@ -6860,7 +7058,7 @@ var WForm = function WForm(props, ref) {
|
|
6860
7058
|
onSubmit = props.onSubmit,
|
6861
7059
|
onReset = props.onReset,
|
6862
7060
|
setForm = props.setForm,
|
6863
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
7061
|
+
extraProps = _objectWithoutProperties(props, _excluded$7);
|
6864
7062
|
|
6865
7063
|
var _Form$useForm = _Form.useForm(),
|
6866
7064
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
@@ -6984,6 +7182,36 @@ var WForm = function WForm(props, ref) {
|
|
6984
7182
|
});
|
6985
7183
|
}
|
6986
7184
|
}, c.fieldProps), _extraProps2))));
|
7185
|
+
} else if (c.valueType == 'upload') {
|
7186
|
+
var _labelCol2 = {};
|
7187
|
+
|
7188
|
+
if (search && search.labelWidth) {
|
7189
|
+
_labelCol2.style = {
|
7190
|
+
width: search.labelWidth
|
7191
|
+
};
|
7192
|
+
}
|
7193
|
+
|
7194
|
+
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7195
|
+
className: "pl12 pr12"
|
7196
|
+
}, colProps), {}, {
|
7197
|
+
key: c.dataIndex
|
7198
|
+
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
7199
|
+
initialValue: c.initialValue
|
7200
|
+
}, c.formItemProps), {}, {
|
7201
|
+
name: c.dataIndex,
|
7202
|
+
label: c.title,
|
7203
|
+
labelCol: _labelCol2
|
7204
|
+
}), /*#__PURE__*/React.createElement(Upload, _objectSpread2({
|
7205
|
+
getFileList: function getFileList(fileListUrls, fileList) {
|
7206
|
+
setColumnsFields(function (preColumnsFields) {
|
7207
|
+
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, {
|
7208
|
+
fileListUrls: fileListUrls,
|
7209
|
+
fileList: fileList
|
7210
|
+
}));
|
7211
|
+
});
|
7212
|
+
},
|
7213
|
+
disabled: disabled
|
7214
|
+
}, c.fieldProps))));
|
6987
7215
|
} else if (c.valueType == 'treeSelect') {
|
6988
7216
|
var _extraProps3 = {};
|
6989
7217
|
|
@@ -6991,10 +7219,10 @@ var WForm = function WForm(props, ref) {
|
|
6991
7219
|
_extraProps3.request = c.request;
|
6992
7220
|
}
|
6993
7221
|
|
6994
|
-
var
|
7222
|
+
var _labelCol3 = {};
|
6995
7223
|
|
6996
7224
|
if (search && search.labelWidth) {
|
6997
|
-
|
7225
|
+
_labelCol3.style = {
|
6998
7226
|
width: search.labelWidth
|
6999
7227
|
};
|
7000
7228
|
}
|
@@ -7008,17 +7236,17 @@ var WForm = function WForm(props, ref) {
|
|
7008
7236
|
}, c.formItemProps), {}, {
|
7009
7237
|
name: c.dataIndex,
|
7010
7238
|
label: c.title,
|
7011
|
-
labelCol:
|
7012
|
-
}), /*#__PURE__*/React.createElement(Index$
|
7239
|
+
labelCol: _labelCol3
|
7240
|
+
}), /*#__PURE__*/React.createElement(Index$7, _objectSpread2(_objectSpread2({
|
7013
7241
|
disabled: disabled,
|
7014
7242
|
placeholder: "\u8BF7\u9009\u62E9",
|
7015
7243
|
onLoad: function onLoad(opt) {}
|
7016
7244
|
}, c.fieldProps), _extraProps3))));
|
7017
7245
|
} else if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear'].includes(c.valueType)) {
|
7018
|
-
var
|
7246
|
+
var _labelCol4 = {};
|
7019
7247
|
|
7020
7248
|
if (search && search.labelWidth) {
|
7021
|
-
|
7249
|
+
_labelCol4.style = {
|
7022
7250
|
width: search.labelWidth
|
7023
7251
|
};
|
7024
7252
|
}
|
@@ -7055,16 +7283,16 @@ var WForm = function WForm(props, ref) {
|
|
7055
7283
|
}, c.formItemProps), {}, {
|
7056
7284
|
name: c.dataIndex,
|
7057
7285
|
label: c.title,
|
7058
|
-
labelCol:
|
7059
|
-
}), /*#__PURE__*/React.createElement(Index$
|
7286
|
+
labelCol: _labelCol4
|
7287
|
+
}), /*#__PURE__*/React.createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
|
7060
7288
|
disabled: disabled,
|
7061
7289
|
placeholder: "\u8BF7\u8F93\u5165"
|
7062
7290
|
}, picker), showTime), c.fieldProps))));
|
7063
7291
|
} else if (c.valueType === 'dateRange' || c.valueType === 'dateTimeRange') {
|
7064
|
-
var
|
7292
|
+
var _labelCol5 = {};
|
7065
7293
|
|
7066
7294
|
if (search && search.labelWidth) {
|
7067
|
-
|
7295
|
+
_labelCol5.style = {
|
7068
7296
|
width: search.labelWidth
|
7069
7297
|
};
|
7070
7298
|
}
|
@@ -7088,7 +7316,7 @@ var WForm = function WForm(props, ref) {
|
|
7088
7316
|
}, c.formItemProps), {}, {
|
7089
7317
|
name: c.dataIndex,
|
7090
7318
|
label: c.title,
|
7091
|
-
labelCol:
|
7319
|
+
labelCol: _labelCol5
|
7092
7320
|
}), /*#__PURE__*/React.createElement(RangePicker$2, _objectSpread2(_objectSpread2({
|
7093
7321
|
disabled: disabled
|
7094
7322
|
}, _showTime), c.fieldProps))));
|
@@ -7115,10 +7343,10 @@ var WForm = function WForm(props, ref) {
|
|
7115
7343
|
setColumnsFields(function (preColumnsFields) {
|
7116
7344
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
|
7117
7345
|
});
|
7118
|
-
var
|
7346
|
+
var _labelCol6 = {};
|
7119
7347
|
|
7120
7348
|
if (search && search.labelWidth) {
|
7121
|
-
|
7349
|
+
_labelCol6.style = {
|
7122
7350
|
width: search.labelWidth
|
7123
7351
|
};
|
7124
7352
|
}
|
@@ -7132,8 +7360,8 @@ var WForm = function WForm(props, ref) {
|
|
7132
7360
|
}, c.formItemProps), {}, {
|
7133
7361
|
name: c.dataIndex,
|
7134
7362
|
label: c.title,
|
7135
|
-
labelCol:
|
7136
|
-
}), /*#__PURE__*/React.createElement(Index$
|
7363
|
+
labelCol: _labelCol6
|
7364
|
+
}), /*#__PURE__*/React.createElement(Index$4.Group, _objectSpread2({
|
7137
7365
|
disabled: disabled,
|
7138
7366
|
options: options
|
7139
7367
|
}, c.fieldProps))));
|
@@ -7161,10 +7389,10 @@ var WForm = function WForm(props, ref) {
|
|
7161
7389
|
setColumnsFields(function (preColumnsFields) {
|
7162
7390
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options));
|
7163
7391
|
});
|
7164
|
-
var
|
7392
|
+
var _labelCol7 = {};
|
7165
7393
|
|
7166
7394
|
if (search && search.labelWidth) {
|
7167
|
-
|
7395
|
+
_labelCol7.style = {
|
7168
7396
|
width: search.labelWidth
|
7169
7397
|
};
|
7170
7398
|
}
|
@@ -7187,8 +7415,8 @@ var WForm = function WForm(props, ref) {
|
|
7187
7415
|
}, c.formItemProps), {}, {
|
7188
7416
|
name: c.dataIndex,
|
7189
7417
|
label: c.title,
|
7190
|
-
labelCol:
|
7191
|
-
}), /*#__PURE__*/React.createElement(Index$
|
7418
|
+
labelCol: _labelCol7
|
7419
|
+
}), /*#__PURE__*/React.createElement(Index$3.Group, _objectSpread2(_objectSpread2({
|
7192
7420
|
disabled: disabled
|
7193
7421
|
}, radioButtonProps), {}, {
|
7194
7422
|
options: _options
|
@@ -7207,10 +7435,10 @@ var WForm = function WForm(props, ref) {
|
|
7207
7435
|
}
|
7208
7436
|
}
|
7209
7437
|
|
7210
|
-
var
|
7438
|
+
var _labelCol8 = {};
|
7211
7439
|
|
7212
7440
|
if (search && search.labelWidth) {
|
7213
|
-
|
7441
|
+
_labelCol8.style = {
|
7214
7442
|
width: search.labelWidth
|
7215
7443
|
};
|
7216
7444
|
} // if (columnsFieldsRef.current) {
|
@@ -7231,15 +7459,15 @@ var WForm = function WForm(props, ref) {
|
|
7231
7459
|
}, c.formItemProps), {}, {
|
7232
7460
|
name: c.dataIndex,
|
7233
7461
|
label: c.title,
|
7234
|
-
labelCol:
|
7462
|
+
labelCol: _labelCol8
|
7235
7463
|
}), /*#__PURE__*/React.createElement(WSwitch, _objectSpread2({
|
7236
7464
|
disabled: disabled
|
7237
7465
|
}, c.fieldProps))));
|
7238
7466
|
} else if (c.valueType === 'digit') {
|
7239
|
-
var
|
7467
|
+
var _labelCol9 = {};
|
7240
7468
|
|
7241
7469
|
if (search && search.labelWidth) {
|
7242
|
-
|
7470
|
+
_labelCol9.style = {
|
7243
7471
|
width: search.labelWidth
|
7244
7472
|
};
|
7245
7473
|
}
|
@@ -7253,16 +7481,16 @@ var WForm = function WForm(props, ref) {
|
|
7253
7481
|
}, c.formItemProps), {}, {
|
7254
7482
|
name: c.dataIndex,
|
7255
7483
|
label: c.title,
|
7256
|
-
labelCol:
|
7484
|
+
labelCol: _labelCol9
|
7257
7485
|
}), /*#__PURE__*/React.createElement(NumericInput, _objectSpread2({
|
7258
7486
|
disabled: disabled,
|
7259
7487
|
placeholder: "\u8BF7\u8F93\u5165\u53C2\u6570(double/int)"
|
7260
7488
|
}, c.fieldProps))));
|
7261
7489
|
} else if (c.renderFormItem) {
|
7262
|
-
var
|
7490
|
+
var _labelCol10 = {};
|
7263
7491
|
|
7264
7492
|
if (search && search.labelWidth) {
|
7265
|
-
|
7493
|
+
_labelCol10.style = {
|
7266
7494
|
width: search.labelWidth
|
7267
7495
|
};
|
7268
7496
|
}
|
@@ -7283,13 +7511,13 @@ var WForm = function WForm(props, ref) {
|
|
7283
7511
|
}, c.formItemProps), {}, {
|
7284
7512
|
name: c.dataIndex,
|
7285
7513
|
label: c.title,
|
7286
|
-
labelCol:
|
7514
|
+
labelCol: _labelCol10
|
7287
7515
|
}), baseitem)) : null;
|
7288
7516
|
} else if (c.valueType === 'textarea') {
|
7289
|
-
var
|
7517
|
+
var _labelCol11 = {};
|
7290
7518
|
|
7291
7519
|
if (search && search.labelWidth) {
|
7292
|
-
|
7520
|
+
_labelCol11.style = {
|
7293
7521
|
width: search.labelWidth
|
7294
7522
|
};
|
7295
7523
|
}
|
@@ -7303,17 +7531,17 @@ var WForm = function WForm(props, ref) {
|
|
7303
7531
|
}, c.formItemProps), {}, {
|
7304
7532
|
name: c.dataIndex,
|
7305
7533
|
label: c.title,
|
7306
|
-
labelCol:
|
7534
|
+
labelCol: _labelCol11
|
7307
7535
|
}), /*#__PURE__*/React.createElement(Index.TextArea, _objectSpread2({
|
7308
7536
|
rows: 4,
|
7309
7537
|
disabled: disabled,
|
7310
7538
|
placeholder: "\u8BF7\u8F93\u5165"
|
7311
7539
|
}, c.fieldProps))));
|
7312
7540
|
} else if (c.valueType === 'inputNumber') {
|
7313
|
-
var
|
7541
|
+
var _labelCol12 = {};
|
7314
7542
|
|
7315
7543
|
if (search && search.labelWidth) {
|
7316
|
-
|
7544
|
+
_labelCol12.style = {
|
7317
7545
|
width: search.labelWidth
|
7318
7546
|
};
|
7319
7547
|
}
|
@@ -7327,16 +7555,16 @@ var WForm = function WForm(props, ref) {
|
|
7327
7555
|
}, c.formItemProps), {}, {
|
7328
7556
|
name: c.dataIndex,
|
7329
7557
|
label: c.title,
|
7330
|
-
labelCol:
|
7558
|
+
labelCol: _labelCol12
|
7331
7559
|
}), /*#__PURE__*/React.createElement(WInputNumber, _objectSpread2({
|
7332
7560
|
disabled: disabled,
|
7333
7561
|
placeholder: "\u8BF7\u8F93\u5165"
|
7334
7562
|
}, c.fieldProps))));
|
7335
7563
|
} else {
|
7336
|
-
var
|
7564
|
+
var _labelCol13 = {};
|
7337
7565
|
|
7338
7566
|
if (search && search.labelWidth) {
|
7339
|
-
|
7567
|
+
_labelCol13.style = {
|
7340
7568
|
width: search.labelWidth
|
7341
7569
|
};
|
7342
7570
|
}
|
@@ -7350,7 +7578,7 @@ var WForm = function WForm(props, ref) {
|
|
7350
7578
|
}, c.formItemProps), {}, {
|
7351
7579
|
name: c.dataIndex,
|
7352
7580
|
label: c.title,
|
7353
|
-
labelCol:
|
7581
|
+
labelCol: _labelCol13
|
7354
7582
|
}), /*#__PURE__*/React.createElement(Index, _objectSpread2({
|
7355
7583
|
disabled: disabled,
|
7356
7584
|
placeholder: "\u8BF7\u8F93\u5165"
|
@@ -7423,6 +7651,36 @@ var WForm = function WForm(props, ref) {
|
|
7423
7651
|
}
|
7424
7652
|
}
|
7425
7653
|
}, c.fieldProps), _extraProps4))));
|
7654
|
+
} else if (c.valueType == 'upload') {
|
7655
|
+
var _labelCol14 = {};
|
7656
|
+
|
7657
|
+
if (search && search.labelWidth) {
|
7658
|
+
_labelCol14.style = {
|
7659
|
+
width: search.labelWidth
|
7660
|
+
};
|
7661
|
+
}
|
7662
|
+
|
7663
|
+
return /*#__PURE__*/React.createElement(_Col, _objectSpread2(_objectSpread2({
|
7664
|
+
className: "pl12 pr12"
|
7665
|
+
}, colProps), {}, {
|
7666
|
+
key: c.dataIndex
|
7667
|
+
}), /*#__PURE__*/React.createElement(_Form.Item, _objectSpread2(_objectSpread2({
|
7668
|
+
initialValue: c.initialValue
|
7669
|
+
}, c.formItemProps), {}, {
|
7670
|
+
name: c.dataIndex,
|
7671
|
+
label: c.title,
|
7672
|
+
labelCol: _labelCol14
|
7673
|
+
}), /*#__PURE__*/React.createElement(Upload, _objectSpread2({
|
7674
|
+
getFileList: function getFileList(fileListUrls, fileList) {
|
7675
|
+
setColumnsFields(function (preColumnsFields) {
|
7676
|
+
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, {
|
7677
|
+
fileListUrls: fileListUrls,
|
7678
|
+
fileList: fileList
|
7679
|
+
}));
|
7680
|
+
});
|
7681
|
+
},
|
7682
|
+
disabled: disabled
|
7683
|
+
}, c.fieldProps))));
|
7426
7684
|
} else if (c.valueType == 'cascader') {
|
7427
7685
|
var _extraProps5 = {};
|
7428
7686
|
|
@@ -7430,10 +7688,10 @@ var WForm = function WForm(props, ref) {
|
|
7430
7688
|
_extraProps5.request = c.request;
|
7431
7689
|
}
|
7432
7690
|
|
7433
|
-
var
|
7691
|
+
var _labelCol15 = {};
|
7434
7692
|
|
7435
7693
|
if (search && search.labelWidth) {
|
7436
|
-
|
7694
|
+
_labelCol15.style = {
|
7437
7695
|
width: search.labelWidth
|
7438
7696
|
};
|
7439
7697
|
}
|
@@ -7447,7 +7705,7 @@ var WForm = function WForm(props, ref) {
|
|
7447
7705
|
}, c.formItemProps), {}, {
|
7448
7706
|
name: c.dataIndex,
|
7449
7707
|
label: c.title,
|
7450
|
-
labelCol:
|
7708
|
+
labelCol: _labelCol15
|
7451
7709
|
}), /*#__PURE__*/React.createElement(WCascader, _objectSpread2(_objectSpread2({
|
7452
7710
|
placeholder: "\u8BF7\u9009\u62E9",
|
7453
7711
|
disabled: disabled,
|
@@ -7464,10 +7722,10 @@ var WForm = function WForm(props, ref) {
|
|
7464
7722
|
_extraProps6.request = c.request;
|
7465
7723
|
}
|
7466
7724
|
|
7467
|
-
var
|
7725
|
+
var _labelCol16 = {};
|
7468
7726
|
|
7469
7727
|
if (search && search.labelWidth) {
|
7470
|
-
|
7728
|
+
_labelCol16.style = {
|
7471
7729
|
width: search.labelWidth
|
7472
7730
|
};
|
7473
7731
|
}
|
@@ -7481,17 +7739,17 @@ var WForm = function WForm(props, ref) {
|
|
7481
7739
|
}, c.formItemProps), {}, {
|
7482
7740
|
name: c.dataIndex,
|
7483
7741
|
label: c.title,
|
7484
|
-
labelCol:
|
7485
|
-
}), /*#__PURE__*/React.createElement(Index$
|
7742
|
+
labelCol: _labelCol16
|
7743
|
+
}), /*#__PURE__*/React.createElement(Index$7, _objectSpread2(_objectSpread2({
|
7486
7744
|
disabled: disabled,
|
7487
7745
|
placeholder: "\u8BF7\u9009\u62E9",
|
7488
7746
|
onLoad: function onLoad(opt) {}
|
7489
7747
|
}, c.fieldProps), _extraProps6))));
|
7490
7748
|
} else if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear'].includes(c.valueType)) {
|
7491
|
-
var
|
7749
|
+
var _labelCol17 = {};
|
7492
7750
|
|
7493
7751
|
if (search && search.labelWidth) {
|
7494
|
-
|
7752
|
+
_labelCol17.style = {
|
7495
7753
|
width: search.labelWidth
|
7496
7754
|
};
|
7497
7755
|
}
|
@@ -7528,16 +7786,16 @@ var WForm = function WForm(props, ref) {
|
|
7528
7786
|
}, c.formItemProps), {}, {
|
7529
7787
|
name: c.dataIndex,
|
7530
7788
|
label: c.title,
|
7531
|
-
labelCol:
|
7532
|
-
}), /*#__PURE__*/React.createElement(Index$
|
7789
|
+
labelCol: _labelCol17
|
7790
|
+
}), /*#__PURE__*/React.createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
|
7533
7791
|
disabled: disabled,
|
7534
7792
|
placeholder: "\u8BF7\u8F93\u5165"
|
7535
7793
|
}, picker), showTime), c.fieldProps))));
|
7536
7794
|
} else if (c.valueType === 'dateRange' || c.valueType === 'dateTimeRange') {
|
7537
|
-
var
|
7795
|
+
var _labelCol18 = {};
|
7538
7796
|
|
7539
7797
|
if (search && search.labelWidth) {
|
7540
|
-
|
7798
|
+
_labelCol18.style = {
|
7541
7799
|
width: search.labelWidth
|
7542
7800
|
};
|
7543
7801
|
}
|
@@ -7561,7 +7819,7 @@ var WForm = function WForm(props, ref) {
|
|
7561
7819
|
}, c.formItemProps), {}, {
|
7562
7820
|
name: c.dataIndex,
|
7563
7821
|
label: c.title,
|
7564
|
-
labelCol:
|
7822
|
+
labelCol: _labelCol18
|
7565
7823
|
}), /*#__PURE__*/React.createElement(RangePicker$2, _objectSpread2(_objectSpread2({
|
7566
7824
|
disabled: disabled
|
7567
7825
|
}, _showTime2), c.fieldProps))));
|
@@ -7588,10 +7846,10 @@ var WForm = function WForm(props, ref) {
|
|
7588
7846
|
setColumnsFields(function (preColumnsFields) {
|
7589
7847
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, options));
|
7590
7848
|
});
|
7591
|
-
var
|
7849
|
+
var _labelCol19 = {};
|
7592
7850
|
|
7593
7851
|
if (search && search.labelWidth) {
|
7594
|
-
|
7852
|
+
_labelCol19.style = {
|
7595
7853
|
width: search.labelWidth
|
7596
7854
|
};
|
7597
7855
|
}
|
@@ -7605,8 +7863,8 @@ var WForm = function WForm(props, ref) {
|
|
7605
7863
|
}, c.formItemProps), {}, {
|
7606
7864
|
name: c.dataIndex,
|
7607
7865
|
label: c.title,
|
7608
|
-
labelCol:
|
7609
|
-
}), /*#__PURE__*/React.createElement(Index$
|
7866
|
+
labelCol: _labelCol19
|
7867
|
+
}), /*#__PURE__*/React.createElement(Index$4.Group, _objectSpread2({
|
7610
7868
|
disabled: disabled,
|
7611
7869
|
options: options
|
7612
7870
|
}, c.fieldProps))));
|
@@ -7634,10 +7892,10 @@ var WForm = function WForm(props, ref) {
|
|
7634
7892
|
setColumnsFields(function (preColumnsFields) {
|
7635
7893
|
return _objectSpread2(_objectSpread2({}, preColumnsFields), {}, _defineProperty({}, c.dataIndex, _options3));
|
7636
7894
|
});
|
7637
|
-
var
|
7895
|
+
var _labelCol20 = {};
|
7638
7896
|
|
7639
7897
|
if (search && search.labelWidth) {
|
7640
|
-
|
7898
|
+
_labelCol20.style = {
|
7641
7899
|
width: search.labelWidth
|
7642
7900
|
};
|
7643
7901
|
}
|
@@ -7660,8 +7918,8 @@ var WForm = function WForm(props, ref) {
|
|
7660
7918
|
}, c.formItemProps), {}, {
|
7661
7919
|
name: c.dataIndex,
|
7662
7920
|
label: c.title,
|
7663
|
-
labelCol:
|
7664
|
-
}), /*#__PURE__*/React.createElement(Index$
|
7921
|
+
labelCol: _labelCol20
|
7922
|
+
}), /*#__PURE__*/React.createElement(Index$3.Group, _objectSpread2(_objectSpread2({
|
7665
7923
|
disabled: disabled
|
7666
7924
|
}, radioButtonProps), {}, {
|
7667
7925
|
options: _options3
|
@@ -7680,10 +7938,10 @@ var WForm = function WForm(props, ref) {
|
|
7680
7938
|
}
|
7681
7939
|
}
|
7682
7940
|
|
7683
|
-
var
|
7941
|
+
var _labelCol21 = {};
|
7684
7942
|
|
7685
7943
|
if (search && search.labelWidth) {
|
7686
|
-
|
7944
|
+
_labelCol21.style = {
|
7687
7945
|
width: search.labelWidth
|
7688
7946
|
};
|
7689
7947
|
} // if (columnsFieldsRef.current) {
|
@@ -7704,15 +7962,15 @@ var WForm = function WForm(props, ref) {
|
|
7704
7962
|
}, c.formItemProps), {}, {
|
7705
7963
|
name: c.dataIndex,
|
7706
7964
|
label: c.title,
|
7707
|
-
labelCol:
|
7965
|
+
labelCol: _labelCol21
|
7708
7966
|
}), /*#__PURE__*/React.createElement(WSwitch, _objectSpread2({
|
7709
7967
|
disabled: disabled
|
7710
7968
|
}, c.fieldProps))));
|
7711
7969
|
} else if (c.valueType === 'digit') {
|
7712
|
-
var
|
7970
|
+
var _labelCol22 = {};
|
7713
7971
|
|
7714
7972
|
if (search && search.labelWidth) {
|
7715
|
-
|
7973
|
+
_labelCol22.style = {
|
7716
7974
|
width: search.labelWidth
|
7717
7975
|
};
|
7718
7976
|
}
|
@@ -7726,16 +7984,16 @@ var WForm = function WForm(props, ref) {
|
|
7726
7984
|
}, c.formItemProps), {}, {
|
7727
7985
|
name: c.dataIndex,
|
7728
7986
|
label: c.title,
|
7729
|
-
labelCol:
|
7987
|
+
labelCol: _labelCol22
|
7730
7988
|
}), /*#__PURE__*/React.createElement(NumericInput, _objectSpread2({
|
7731
7989
|
disabled: disabled,
|
7732
7990
|
placeholder: "\u8BF7\u8F93\u5165\u53C2\u6570(double/int)"
|
7733
7991
|
}, c.fieldProps))));
|
7734
7992
|
} else if (c.renderFormItem) {
|
7735
|
-
var
|
7993
|
+
var _labelCol23 = {};
|
7736
7994
|
|
7737
7995
|
if (search && search.labelWidth) {
|
7738
|
-
|
7996
|
+
_labelCol23.style = {
|
7739
7997
|
width: search.labelWidth
|
7740
7998
|
};
|
7741
7999
|
}
|
@@ -7756,13 +8014,13 @@ var WForm = function WForm(props, ref) {
|
|
7756
8014
|
}, c.formItemProps), {}, {
|
7757
8015
|
name: c.dataIndex,
|
7758
8016
|
label: c.title,
|
7759
|
-
labelCol:
|
8017
|
+
labelCol: _labelCol23
|
7760
8018
|
}), baseitem)) : null;
|
7761
8019
|
} else if (c.valueType === 'textarea') {
|
7762
|
-
var
|
8020
|
+
var _labelCol24 = {};
|
7763
8021
|
|
7764
8022
|
if (search && search.labelWidth) {
|
7765
|
-
|
8023
|
+
_labelCol24.style = {
|
7766
8024
|
width: search.labelWidth
|
7767
8025
|
};
|
7768
8026
|
}
|
@@ -7776,17 +8034,17 @@ var WForm = function WForm(props, ref) {
|
|
7776
8034
|
}, c.formItemProps), {}, {
|
7777
8035
|
name: c.dataIndex,
|
7778
8036
|
label: c.title,
|
7779
|
-
labelCol:
|
8037
|
+
labelCol: _labelCol24
|
7780
8038
|
}), /*#__PURE__*/React.createElement(Index.TextArea, _objectSpread2({
|
7781
8039
|
rows: 4,
|
7782
8040
|
disabled: disabled,
|
7783
8041
|
placeholder: "\u8BF7\u8F93\u5165"
|
7784
8042
|
}, c.fieldProps))));
|
7785
8043
|
} else if (c.valueType === 'inputNumber') {
|
7786
|
-
var
|
8044
|
+
var _labelCol25 = {};
|
7787
8045
|
|
7788
8046
|
if (search && search.labelWidth) {
|
7789
|
-
|
8047
|
+
_labelCol25.style = {
|
7790
8048
|
width: search.labelWidth
|
7791
8049
|
};
|
7792
8050
|
}
|
@@ -7800,16 +8058,16 @@ var WForm = function WForm(props, ref) {
|
|
7800
8058
|
}, c.formItemProps), {}, {
|
7801
8059
|
name: c.dataIndex,
|
7802
8060
|
label: c.title,
|
7803
|
-
labelCol:
|
8061
|
+
labelCol: _labelCol25
|
7804
8062
|
}), /*#__PURE__*/React.createElement(WInputNumber, _objectSpread2({
|
7805
8063
|
disabled: disabled,
|
7806
8064
|
placeholder: "\u8BF7\u8F93\u5165"
|
7807
8065
|
}, c.fieldProps))));
|
7808
8066
|
} else {
|
7809
|
-
var
|
8067
|
+
var _labelCol26 = {};
|
7810
8068
|
|
7811
8069
|
if (search && search.labelWidth) {
|
7812
|
-
|
8070
|
+
_labelCol26.style = {
|
7813
8071
|
width: search.labelWidth
|
7814
8072
|
};
|
7815
8073
|
}
|
@@ -7823,7 +8081,7 @@ var WForm = function WForm(props, ref) {
|
|
7823
8081
|
}, c.formItemProps), {}, {
|
7824
8082
|
name: c.dataIndex,
|
7825
8083
|
label: c.title,
|
7826
|
-
labelCol:
|
8084
|
+
labelCol: _labelCol26
|
7827
8085
|
}), /*#__PURE__*/React.createElement(Index, _objectSpread2({
|
7828
8086
|
disabled: disabled,
|
7829
8087
|
placeholder: "\u8BF7\u8F93\u5165"
|
@@ -7892,6 +8150,65 @@ var WForm = function WForm(props, ref) {
|
|
7892
8150
|
return filterObj(searchForm);
|
7893
8151
|
};
|
7894
8152
|
|
8153
|
+
var getFormValues = function getFormValues() {
|
8154
|
+
var searchForm = form.getFieldsValue();
|
8155
|
+
filterFormColumns.forEach(function (c) {
|
8156
|
+
if (c.search && c.search.transform) {
|
8157
|
+
var transformObj = c.search.transform(searchForm[c.dataIndex]);
|
8158
|
+
searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
|
8159
|
+
|
8160
|
+
if (!transformObj[c.dataIndex]) {
|
8161
|
+
delete searchForm[c.dataIndex];
|
8162
|
+
}
|
8163
|
+
|
8164
|
+
return false;
|
8165
|
+
}
|
8166
|
+
|
8167
|
+
if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear', 'dateRange', 'dateTimeRange'].includes(c.valueType)) {
|
8168
|
+
if (c.valueType === 'date' && searchForm[c.dataIndex]) {
|
8169
|
+
var _c$fieldProps7;
|
8170
|
+
|
8171
|
+
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');
|
8172
|
+
}
|
8173
|
+
|
8174
|
+
if (c.valueType === 'dateTime' && searchForm[c.dataIndex]) {
|
8175
|
+
var _c$fieldProps8;
|
8176
|
+
|
8177
|
+
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');
|
8178
|
+
}
|
8179
|
+
|
8180
|
+
if (c.valueType === 'dateMonth' && searchForm[c.dataIndex]) {
|
8181
|
+
var _c$fieldProps9;
|
8182
|
+
|
8183
|
+
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');
|
8184
|
+
}
|
8185
|
+
|
8186
|
+
if (c.valueType === 'dateYear' && searchForm[c.dataIndex]) {
|
8187
|
+
var _c$fieldProps10;
|
8188
|
+
|
8189
|
+
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');
|
8190
|
+
}
|
8191
|
+
|
8192
|
+
if (c.valueType === 'dateRange' && searchForm[c.dataIndex]) {
|
8193
|
+
searchForm[c.dataIndex] = searchForm[c.dataIndex].map(function (item) {
|
8194
|
+
var _c$fieldProps11;
|
8195
|
+
|
8196
|
+
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');
|
8197
|
+
});
|
8198
|
+
}
|
8199
|
+
|
8200
|
+
if (c.valueType === 'dateTimeRange' && searchForm[c.dataIndex]) {
|
8201
|
+
searchForm[c.dataIndex] = searchForm[c.dataIndex].map(function (item) {
|
8202
|
+
var _c$fieldProps12;
|
8203
|
+
|
8204
|
+
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');
|
8205
|
+
});
|
8206
|
+
}
|
8207
|
+
}
|
8208
|
+
});
|
8209
|
+
return filterObj(searchForm);
|
8210
|
+
};
|
8211
|
+
|
7895
8212
|
var handleRest = function handleRest() {
|
7896
8213
|
var _form$resetFields;
|
7897
8214
|
|
@@ -7926,7 +8243,8 @@ var WForm = function WForm(props, ref) {
|
|
7926
8243
|
handleSubmit: form.submit,
|
7927
8244
|
handleRest: handleRest,
|
7928
8245
|
resetFields: handleRest,
|
7929
|
-
setFieldsValue: setFieldsValue
|
8246
|
+
setFieldsValue: setFieldsValue,
|
8247
|
+
getFormValues: getFormValues
|
7930
8248
|
};
|
7931
8249
|
});
|
7932
8250
|
useEffect(function () {
|
@@ -7998,7 +8316,7 @@ var WForm = function WForm(props, ref) {
|
|
7998
8316
|
|
7999
8317
|
var WForm$1 = /*#__PURE__*/React.forwardRef(WForm);
|
8000
8318
|
|
8001
|
-
var _excluded$
|
8319
|
+
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"];
|
8002
8320
|
|
8003
8321
|
function Table(_ref) {
|
8004
8322
|
var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
|
@@ -8030,7 +8348,7 @@ function Table(_ref) {
|
|
8030
8348
|
frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
|
8031
8349
|
formRef = _ref.formRef,
|
8032
8350
|
none = _ref.none,
|
8033
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
8351
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
8034
8352
|
|
8035
8353
|
var _useState = useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
|
8036
8354
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -8291,7 +8609,7 @@ function Table(_ref) {
|
|
8291
8609
|
left: 6
|
8292
8610
|
} : {}),
|
8293
8611
|
className: "td ".concat(showColumns[0].fixed == 'left' ? 'fixedLeft' : '')
|
8294
|
-
}, /*#__PURE__*/React.createElement(Index$
|
8612
|
+
}, /*#__PURE__*/React.createElement(Index$4, {
|
8295
8613
|
checked: (_ref2 = [].concat(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || []), _toConsumableArray(selectedRowKeys))) === null || _ref2 === void 0 ? void 0 : _ref2.includes(key),
|
8296
8614
|
onClick: function onClick(e) {
|
8297
8615
|
return e.stopPropagation();
|
@@ -8331,7 +8649,7 @@ function Table(_ref) {
|
|
8331
8649
|
left: 6
|
8332
8650
|
} : {}),
|
8333
8651
|
className: "td ".concat(showColumns[0].fixed == 'left' ? 'fixedLeft' : '')
|
8334
|
-
}, /*#__PURE__*/React.createElement(Index$
|
8652
|
+
}, /*#__PURE__*/React.createElement(Index$3, {
|
8335
8653
|
checked: (_ref3 = [].concat(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || []), _toConsumableArray(selectedRowKeys))) === null || _ref3 === void 0 ? void 0 : _ref3.includes(key),
|
8336
8654
|
onClick: function onClick(e) {
|
8337
8655
|
return e.stopPropagation();
|
@@ -8511,7 +8829,7 @@ function Table(_ref) {
|
|
8511
8829
|
left: 6
|
8512
8830
|
} : {}),
|
8513
8831
|
className: "td ".concat(((_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.fixed) == 'left' ? 'fixedLeft' : '')
|
8514
|
-
}, /*#__PURE__*/React.createElement(Index$
|
8832
|
+
}, /*#__PURE__*/React.createElement(Index$4, {
|
8515
8833
|
checked: dataSource.every(function (record) {
|
8516
8834
|
return selectedRowKeys.includes(typeof rowKey === 'function' ? record[rowKey(record)] : record[rowKey]);
|
8517
8835
|
}),
|
@@ -8570,7 +8888,7 @@ Table.defaultProps = {
|
|
8570
8888
|
};
|
8571
8889
|
var index$1 = /*#__PURE__*/memo(Table);
|
8572
8890
|
|
8573
|
-
var _excluded$
|
8891
|
+
var _excluded$9 = ["height", "width", "count", "style", "numberStyle"],
|
8574
8892
|
_excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
|
8575
8893
|
|
8576
8894
|
var Number = function Number(_ref) {
|
@@ -8580,7 +8898,7 @@ var Number = function Number(_ref) {
|
|
8580
8898
|
count = _ref$count === void 0 ? 0 : _ref$count,
|
8581
8899
|
style = _ref.style,
|
8582
8900
|
numberStyle = _ref.numberStyle,
|
8583
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
8901
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
8584
8902
|
|
8585
8903
|
// 上次的值
|
8586
8904
|
var _useState = useState(0),
|
@@ -8700,7 +9018,7 @@ Number.defaultProps = {
|
|
8700
9018
|
height: 40
|
8701
9019
|
};
|
8702
9020
|
|
8703
|
-
var Index$
|
9021
|
+
var Index$8 = function Index(props) {
|
8704
9022
|
var count = props.count,
|
8705
9023
|
_props$numberCount = props.numberCount,
|
8706
9024
|
numberCount = _props$numberCount === void 0 ? 5 : _props$numberCount,
|
@@ -8744,20 +9062,20 @@ var Index$7 = function Index(props) {
|
|
8744
9062
|
}));
|
8745
9063
|
};
|
8746
9064
|
|
8747
|
-
var _excluded$
|
9065
|
+
var _excluded$a = ["duration"];
|
8748
9066
|
|
8749
|
-
var Index$
|
9067
|
+
var Index$9 = function Index(props) {
|
8750
9068
|
var _props$duration = props.duration,
|
8751
9069
|
duration = _props$duration === void 0 ? 2.75 : _props$duration,
|
8752
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
9070
|
+
extraProps = _objectWithoutProperties(props, _excluded$a);
|
8753
9071
|
return /*#__PURE__*/React.createElement(CountUp, _objectSpread2({
|
8754
9072
|
duration: duration
|
8755
9073
|
}, extraProps));
|
8756
9074
|
};
|
8757
9075
|
|
8758
|
-
Index$
|
9076
|
+
Index$9.defaultProps = {};
|
8759
9077
|
|
8760
|
-
var _excluded$
|
9078
|
+
var _excluded$b = ["list", "render", "none", "partSize"];
|
8761
9079
|
|
8762
9080
|
function AutoScroll(props) {
|
8763
9081
|
var inner1 = useRef();
|
@@ -8836,13 +9154,13 @@ function AutoScroll(props) {
|
|
8836
9154
|
}));
|
8837
9155
|
}
|
8838
9156
|
|
8839
|
-
var Index$
|
9157
|
+
var Index$a = function Index(_ref) {
|
8840
9158
|
var list = _ref.list,
|
8841
9159
|
render = _ref.render,
|
8842
9160
|
none = _ref.none,
|
8843
9161
|
_ref$partSize = _ref.partSize,
|
8844
9162
|
partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
|
8845
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
9163
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$b);
|
8846
9164
|
|
8847
9165
|
var _useState = useState([]),
|
8848
9166
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -8925,11 +9243,11 @@ var Index$9 = function Index(_ref) {
|
|
8925
9243
|
}, none || '暂无数据');
|
8926
9244
|
};
|
8927
9245
|
|
8928
|
-
var _excluded$
|
9246
|
+
var _excluded$c = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
|
8929
9247
|
|
8930
9248
|
SwiperCore.use([Pagination, Navigation, Autoplay, Virtual]);
|
8931
9249
|
|
8932
|
-
var Index$
|
9250
|
+
var Index$b = function Index(props) {
|
8933
9251
|
var data = props.data,
|
8934
9252
|
_onClick = props.onClick,
|
8935
9253
|
_props$slidesPerView = props.slidesPerView,
|
@@ -8937,7 +9255,7 @@ var Index$a = function Index(props) {
|
|
8937
9255
|
rowKey = props.rowKey,
|
8938
9256
|
onSwiperChange = props.onSwiperChange,
|
8939
9257
|
renderItem = props.renderItem,
|
8940
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
9258
|
+
extraProps = _objectWithoutProperties(props, _excluded$c);
|
8941
9259
|
|
8942
9260
|
var _useState = useState(null),
|
8943
9261
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -8992,7 +9310,7 @@ var Index$a = function Index(props) {
|
|
8992
9310
|
}));
|
8993
9311
|
};
|
8994
9312
|
|
8995
|
-
Index$
|
9313
|
+
Index$b.defaultProps = {};
|
8996
9314
|
|
8997
9315
|
function _extends$1() {
|
8998
9316
|
_extends$1 = Object.assign || function (target) {
|
@@ -9588,7 +9906,7 @@ function createBrowserHistory(props) {
|
|
9588
9906
|
return history;
|
9589
9907
|
}
|
9590
9908
|
|
9591
|
-
var _excluded$
|
9909
|
+
var _excluded$d = ["routes", "className"];
|
9592
9910
|
var history = createBrowserHistory();
|
9593
9911
|
|
9594
9912
|
function itemRender(route, params, routes, paths) {
|
@@ -9603,10 +9921,10 @@ function itemRender(route, params, routes, paths) {
|
|
9603
9921
|
}, route.breadcrumbName);
|
9604
9922
|
}
|
9605
9923
|
|
9606
|
-
var Index$
|
9924
|
+
var Index$c = function Index(_ref) {
|
9607
9925
|
var routes = _ref.routes,
|
9608
9926
|
className = _ref.className,
|
9609
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
9927
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
9610
9928
|
|
9611
9929
|
return /*#__PURE__*/React.createElement(_Breadcrumb, _objectSpread2({
|
9612
9930
|
className: className || 'default',
|
@@ -9616,9 +9934,9 @@ var Index$b = function Index(_ref) {
|
|
9616
9934
|
}, props));
|
9617
9935
|
};
|
9618
9936
|
|
9619
|
-
var _excluded$
|
9937
|
+
var _excluded$e = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
|
9620
9938
|
|
9621
|
-
var Index$
|
9939
|
+
var Index$d = function Index(_ref, ref) {
|
9622
9940
|
var _classNames, _sliderTabs$component, _sliderTabs$tabs;
|
9623
9941
|
|
9624
9942
|
var title = _ref.title,
|
@@ -9627,7 +9945,7 @@ var Index$c = function Index(_ref, ref) {
|
|
9627
9945
|
headerTail = _ref.headerTail,
|
9628
9946
|
headerCenter = _ref.headerCenter,
|
9629
9947
|
sliderTabs = _ref.sliderTabs,
|
9630
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
9948
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
9631
9949
|
|
9632
9950
|
useImperativeHandle(ref, function () {
|
9633
9951
|
return {
|
@@ -9669,7 +9987,7 @@ var Index$c = function Index(_ref, ref) {
|
|
9669
9987
|
}))));
|
9670
9988
|
};
|
9671
9989
|
|
9672
|
-
var index$2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Index$
|
9990
|
+
var index$2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Index$d));
|
9673
9991
|
|
9674
9992
|
var controlShow = function controlShow(f1, f2, value, timer) {
|
9675
9993
|
f1(value);
|
@@ -9871,7 +10189,7 @@ function DialogModel(props, ref) {
|
|
9871
10189
|
|
9872
10190
|
var Dialog = /*#__PURE__*/React.forwardRef(DialogModel);
|
9873
10191
|
|
9874
|
-
var _excluded$
|
10192
|
+
var _excluded$f = ["visible", "width", "closeCb", "onClose", "className", "style"],
|
9875
10193
|
_excluded2$3 = ["visible"];
|
9876
10194
|
|
9877
10195
|
var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
@@ -9988,7 +10306,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
9988
10306
|
onClose = _this$props4.onClose,
|
9989
10307
|
className = _this$props4.className,
|
9990
10308
|
style = _this$props4.style,
|
9991
|
-
other = _objectWithoutProperties(_this$props4, _excluded$
|
10309
|
+
other = _objectWithoutProperties(_this$props4, _excluded$f);
|
9992
10310
|
|
9993
10311
|
return /*#__PURE__*/React.createElement(Dialog, _objectSpread2({
|
9994
10312
|
ref: this.containerRef,
|
@@ -10171,7 +10489,7 @@ function DialogModel$1(props) {
|
|
10171
10489
|
return renderChildren;
|
10172
10490
|
}
|
10173
10491
|
|
10174
|
-
var _excluded$
|
10492
|
+
var _excluded$g = ["visible"];
|
10175
10493
|
|
10176
10494
|
var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
10177
10495
|
_inherits(Modal, _React$PureComponent);
|
@@ -10311,7 +10629,7 @@ Modal$1.show = function (config) {
|
|
10311
10629
|
manager.setShow = setShow;
|
10312
10630
|
|
10313
10631
|
var visible = props.visible,
|
10314
|
-
trueProps = _objectWithoutProperties(props, _excluded$
|
10632
|
+
trueProps = _objectWithoutProperties(props, _excluded$g);
|
10315
10633
|
|
10316
10634
|
useEffect(function () {
|
10317
10635
|
manager.mounted = true;
|
@@ -10511,7 +10829,7 @@ function DragBox(_ref) {
|
|
10511
10829
|
}, children)) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
10512
10830
|
}
|
10513
10831
|
|
10514
|
-
var _excluded$
|
10832
|
+
var _excluded$h = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel"];
|
10515
10833
|
|
10516
10834
|
var ModalForm = function ModalForm(props, ref) {
|
10517
10835
|
var columns = props.columns,
|
@@ -10526,7 +10844,8 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10526
10844
|
record = props.record,
|
10527
10845
|
onFormChange = props.onFormChange,
|
10528
10846
|
formItemChild = props.formItemChild,
|
10529
|
-
|
10847
|
+
onCancel = props.onCancel,
|
10848
|
+
extraProps = _objectWithoutProperties(props, _excluded$h);
|
10530
10849
|
|
10531
10850
|
var formRef = useRef(null);
|
10532
10851
|
|
@@ -10588,6 +10907,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10588
10907
|
}();
|
10589
10908
|
|
10590
10909
|
var handleCancel = function handleCancel() {
|
10910
|
+
onCancel && onCancel();
|
10591
10911
|
setVisible(false);
|
10592
10912
|
};
|
10593
10913
|
|
@@ -10657,7 +10977,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10657
10977
|
|
10658
10978
|
var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
|
10659
10979
|
|
10660
|
-
var _excluded$
|
10980
|
+
var _excluded$i = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig", "pagination", "noBordered"];
|
10661
10981
|
|
10662
10982
|
var TabelCard = function TabelCard(props, ref) {
|
10663
10983
|
var columns = props.columns,
|
@@ -10675,7 +10995,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10675
10995
|
optionColumnConfig = props.optionColumnConfig,
|
10676
10996
|
pagination = props.pagination,
|
10677
10997
|
noBordered = props.noBordered,
|
10678
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10998
|
+
extraProps = _objectWithoutProperties(props, _excluded$i);
|
10679
10999
|
|
10680
11000
|
var actionRef = useRef();
|
10681
11001
|
var modalFormRef = useRef(null);
|
@@ -11625,7 +11945,7 @@ function VideoPlayer(_ref, ref) {
|
|
11625
11945
|
|
11626
11946
|
var index$4 = /*#__PURE__*/forwardRef(VideoPlayer);
|
11627
11947
|
|
11628
|
-
var _excluded$
|
11948
|
+
var _excluded$j = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
|
11629
11949
|
|
11630
11950
|
var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2]; // 默认记忆提示文字展示时长(s)
|
11631
11951
|
|
@@ -11656,7 +11976,7 @@ var index$5 = (function (_ref) {
|
|
11656
11976
|
enableMemory = _ref$enableMemory === void 0 ? false : _ref$enableMemory,
|
11657
11977
|
_ref$lastPlayTimeHide = _ref.lastPlayTimeHideDelay,
|
11658
11978
|
lastPlayTimeHideDelay = _ref$lastPlayTimeHide === void 0 ? DEFAULT_LAST_PLAY_TIME_DELAY : _ref$lastPlayTimeHide,
|
11659
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
11979
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
11660
11980
|
|
11661
11981
|
var player = useRef();
|
11662
11982
|
var currentPlayerIndex = useRef(0); // 内置的 index 状态管理
|
@@ -12634,4 +12954,4 @@ function WaterLevelCharts(config) {
|
|
12634
12954
|
});
|
12635
12955
|
}
|
12636
12956
|
|
12637
|
-
export { Index$
|
12957
|
+
export { Index$a as AutoScroll, Index$c as Breadcrumb, WButton as Button, index$2 as Card, WCascader as Cascader, Index$4 as Checkbox, Index$9 as CountUp, Index$2 as DatePicker, DragBox, index as IconFont, Index as Input, WInputNumber as InputNumber, LineEcharts, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, Index$8 as Number, NumericInput, Index$3 as Radio, Select, Index$b as Swiper, WSwitch as Switch, index$3 as TabelCard, index$1 as Table, Index$7 as TreeSelect, Upload, index$5 as Video, index$4 as VideoPlayer, Index$6 as WDatePicker, WForm$1 as WForm, WaterLevelCharts, WebsocketHeart, useEventEmitter };
|