wargerm 0.2.16 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/WDatePicker/index.d.ts +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +98 -42
- package/dist/index.js +104 -47
- package/package.json +2 -2
@@ -0,0 +1,7 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { DatePickerProps, RangePickerProps } from 'antd/lib/date-picker';
|
3
|
+
export declare type IndexComponent = React.FC<DatePickerProps> & {
|
4
|
+
RangePicker: React.FC<RangePickerProps>;
|
5
|
+
};
|
6
|
+
declare const Index: IndexComponent;
|
7
|
+
export default Index;
|
package/dist/index.d.ts
CHANGED
@@ -8,6 +8,7 @@ export { default as Checkbox } from './components/Checkbox';
|
|
8
8
|
export { default as Radio } from './components/Radio';
|
9
9
|
export { default as Select } from './components/Select';
|
10
10
|
export { default as DatePicker } from './components/DatePicker';
|
11
|
+
export { default as WDatePicker } from './components/WDatePicker';
|
11
12
|
export { default as Switch } from './components/Switch';
|
12
13
|
export { default as TreeSelect } from './components/TreeSelect';
|
13
14
|
export { default as WForm } from './components/WForm';
|
package/dist/index.esm.js
CHANGED
@@ -537,15 +537,14 @@ var WSelect = function WSelect(props) {
|
|
537
537
|
switch (_context.prev = _context.next) {
|
538
538
|
case 0:
|
539
539
|
if (!request) {
|
540
|
-
_context.next =
|
540
|
+
_context.next = 8;
|
541
541
|
break;
|
542
542
|
}
|
543
543
|
|
544
|
-
|
545
|
-
_context.next = 4;
|
544
|
+
_context.next = 3;
|
546
545
|
return request();
|
547
546
|
|
548
|
-
case
|
547
|
+
case 3:
|
549
548
|
res = _context.sent;
|
550
549
|
setResList(res);
|
551
550
|
onLoad && onLoad(res);
|
@@ -557,7 +556,7 @@ var WSelect = function WSelect(props) {
|
|
557
556
|
});
|
558
557
|
setChildrenNode(node);
|
559
558
|
|
560
|
-
case
|
559
|
+
case 8:
|
561
560
|
case "end":
|
562
561
|
return _context.stop();
|
563
562
|
}
|
@@ -7541,8 +7540,65 @@ Table.defaultProps = {
|
|
7541
7540
|
rowKey: 'key'
|
7542
7541
|
};
|
7543
7542
|
|
7544
|
-
var _excluded$5 = ["
|
7545
|
-
|
7543
|
+
var _excluded$5 = ["defaultValue", "format", "value", "onChange"],
|
7544
|
+
_excluded2$1 = ["defaultValue", "value", "format", "onChange"];
|
7545
|
+
|
7546
|
+
var momentValue = function momentValue(value) {
|
7547
|
+
if (value) {
|
7548
|
+
return hooks(value);
|
7549
|
+
}
|
7550
|
+
};
|
7551
|
+
|
7552
|
+
var WDatePicker$1 = function WDatePicker(props) {
|
7553
|
+
var defaultValue = props.defaultValue,
|
7554
|
+
format = props.format,
|
7555
|
+
value = props.value,
|
7556
|
+
_onChange = props.onChange,
|
7557
|
+
extraProps = _objectWithoutProperties(props, _excluded$5);
|
7558
|
+
|
7559
|
+
return (
|
7560
|
+
/*#__PURE__*/
|
7561
|
+
// <ConfigProvider locale={zhCN}>
|
7562
|
+
React.createElement(_DatePicker, _objectSpread2({
|
7563
|
+
defaultValue: momentValue(defaultValue),
|
7564
|
+
value: momentValue(value),
|
7565
|
+
onChange: function onChange(v) {
|
7566
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(v, momentValue(v).format(format || 'YYYY-MM-DD'));
|
7567
|
+
}
|
7568
|
+
}, extraProps)) // </ConfigProvider>
|
7569
|
+
|
7570
|
+
);
|
7571
|
+
};
|
7572
|
+
|
7573
|
+
WDatePicker$1.defaultProps = {};
|
7574
|
+
|
7575
|
+
var RangePicker$2 = function RangePicker(props) {
|
7576
|
+
var defaultValue = props.defaultValue,
|
7577
|
+
value = props.value,
|
7578
|
+
format = props.format,
|
7579
|
+
_onChange2 = props.onChange,
|
7580
|
+
extraProps = _objectWithoutProperties(props, _excluded2$1);
|
7581
|
+
|
7582
|
+
return (
|
7583
|
+
/*#__PURE__*/
|
7584
|
+
// <ConfigProvider locale={zhCN}>
|
7585
|
+
React.createElement(_DatePicker.RangePicker, _objectSpread2({
|
7586
|
+
defaultValue: momentValue(defaultValue),
|
7587
|
+
value: momentValue(value),
|
7588
|
+
onChange: function onChange(v) {
|
7589
|
+
_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, momentValue(v).format(format || 'YYYY-MM-DD'));
|
7590
|
+
}
|
7591
|
+
}, extraProps)) // </ConfigProvider>
|
7592
|
+
|
7593
|
+
);
|
7594
|
+
};
|
7595
|
+
|
7596
|
+
RangePicker$2.defaultProps = {};
|
7597
|
+
var Index$6 = WDatePicker$1;
|
7598
|
+
Index$6.RangePicker = RangePicker$2;
|
7599
|
+
|
7600
|
+
var _excluded$6 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "onFormChange", "onSubmit", "onReset"];
|
7601
|
+
var RangePicker$3 = Index$6.RangePicker;
|
7546
7602
|
|
7547
7603
|
var WForm = function WForm(props, ref) {
|
7548
7604
|
var columns = props.columns,
|
@@ -7555,7 +7611,7 @@ var WForm = function WForm(props, ref) {
|
|
7555
7611
|
onFormChange = props.onFormChange,
|
7556
7612
|
onSubmit = props.onSubmit,
|
7557
7613
|
onReset = props.onReset,
|
7558
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
7614
|
+
extraProps = _objectWithoutProperties(props, _excluded$6);
|
7559
7615
|
|
7560
7616
|
var _Form$useForm = _Form.useForm(),
|
7561
7617
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
@@ -7719,7 +7775,7 @@ var WForm = function WForm(props, ref) {
|
|
7719
7775
|
name: c.dataIndex,
|
7720
7776
|
label: c.title,
|
7721
7777
|
labelCol: _labelCol2
|
7722
|
-
}), /*#__PURE__*/React.createElement(Index$
|
7778
|
+
}), /*#__PURE__*/React.createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
|
7723
7779
|
disabled: disabled,
|
7724
7780
|
placeholder: "\u8BF7\u8F93\u5165"
|
7725
7781
|
}, picker), showTime), c.fieldProps))));
|
@@ -7755,7 +7811,7 @@ var WForm = function WForm(props, ref) {
|
|
7755
7811
|
name: c.dataIndex,
|
7756
7812
|
label: c.title,
|
7757
7813
|
labelCol: _labelCol3
|
7758
|
-
}), /*#__PURE__*/React.createElement(RangePicker$
|
7814
|
+
}), /*#__PURE__*/React.createElement(RangePicker$3, _objectSpread2(_objectSpread2({
|
7759
7815
|
disabled: disabled
|
7760
7816
|
}, _showTime), c.fieldProps))));
|
7761
7817
|
} else if (c.valueType === 'checkbox') {
|
@@ -8182,7 +8238,7 @@ var WForm = function WForm(props, ref) {
|
|
8182
8238
|
name: c.dataIndex,
|
8183
8239
|
label: c.title,
|
8184
8240
|
labelCol: _labelCol13
|
8185
|
-
}), /*#__PURE__*/React.createElement(Index$
|
8241
|
+
}), /*#__PURE__*/React.createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
|
8186
8242
|
disabled: disabled,
|
8187
8243
|
placeholder: "\u8BF7\u8F93\u5165"
|
8188
8244
|
}, picker), showTime), c.fieldProps))));
|
@@ -8218,7 +8274,7 @@ var WForm = function WForm(props, ref) {
|
|
8218
8274
|
name: c.dataIndex,
|
8219
8275
|
label: c.title,
|
8220
8276
|
labelCol: _labelCol14
|
8221
|
-
}), /*#__PURE__*/React.createElement(RangePicker$
|
8277
|
+
}), /*#__PURE__*/React.createElement(RangePicker$3, _objectSpread2(_objectSpread2({
|
8222
8278
|
disabled: disabled
|
8223
8279
|
}, _showTime2), c.fieldProps))));
|
8224
8280
|
} else if (c.valueType === 'checkbox') {
|
@@ -8645,8 +8701,8 @@ var WForm = function WForm(props, ref) {
|
|
8645
8701
|
|
8646
8702
|
var WForm$1 = /*#__PURE__*/React.forwardRef(WForm);
|
8647
8703
|
|
8648
|
-
var _excluded$
|
8649
|
-
_excluded2$
|
8704
|
+
var _excluded$7 = ["height", "width", "count", "style", "numberStyle"],
|
8705
|
+
_excluded2$2 = ["count", "width", "height", "marginRight"];
|
8650
8706
|
|
8651
8707
|
var Number = function Number(_ref) {
|
8652
8708
|
var height = _ref.height,
|
@@ -8655,7 +8711,7 @@ var Number = function Number(_ref) {
|
|
8655
8711
|
count = _ref$count === void 0 ? 0 : _ref$count,
|
8656
8712
|
style = _ref.style,
|
8657
8713
|
numberStyle = _ref.numberStyle,
|
8658
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
8714
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
8659
8715
|
|
8660
8716
|
// 上次的值
|
8661
8717
|
var _useState = useState(0),
|
@@ -8775,13 +8831,13 @@ Number.defaultProps = {
|
|
8775
8831
|
height: 40
|
8776
8832
|
};
|
8777
8833
|
|
8778
|
-
var Index$
|
8834
|
+
var Index$7 = function Index(props) {
|
8779
8835
|
var count = props.count,
|
8780
8836
|
width = props.width,
|
8781
8837
|
height = props.height,
|
8782
8838
|
_props$marginRight = props.marginRight,
|
8783
8839
|
marginRight = _props$marginRight === void 0 ? '8px' : _props$marginRight,
|
8784
|
-
extraProps = _objectWithoutProperties(props, _excluded2$
|
8840
|
+
extraProps = _objectWithoutProperties(props, _excluded2$2);
|
8785
8841
|
|
8786
8842
|
var _useState9 = useState([]),
|
8787
8843
|
_useState10 = _slicedToArray(_useState9, 2),
|
@@ -8812,20 +8868,20 @@ var Index$6 = function Index(props) {
|
|
8812
8868
|
}));
|
8813
8869
|
};
|
8814
8870
|
|
8815
|
-
var _excluded$
|
8871
|
+
var _excluded$8 = ["duration"];
|
8816
8872
|
|
8817
|
-
var Index$
|
8873
|
+
var Index$8 = function Index(props) {
|
8818
8874
|
var _props$duration = props.duration,
|
8819
8875
|
duration = _props$duration === void 0 ? 2.75 : _props$duration,
|
8820
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
8876
|
+
extraProps = _objectWithoutProperties(props, _excluded$8);
|
8821
8877
|
return /*#__PURE__*/React.createElement(CountUp, _objectSpread2({
|
8822
8878
|
duration: duration
|
8823
8879
|
}, extraProps));
|
8824
8880
|
};
|
8825
8881
|
|
8826
|
-
Index$
|
8882
|
+
Index$8.defaultProps = {};
|
8827
8883
|
|
8828
|
-
var _excluded$
|
8884
|
+
var _excluded$9 = ["list", "render", "partSize"];
|
8829
8885
|
|
8830
8886
|
function AutoScroll(props) {
|
8831
8887
|
var inner1 = useRef();
|
@@ -8904,12 +8960,12 @@ function AutoScroll(props) {
|
|
8904
8960
|
}));
|
8905
8961
|
}
|
8906
8962
|
|
8907
|
-
var Index$
|
8963
|
+
var Index$9 = function Index(_ref) {
|
8908
8964
|
var list = _ref.list,
|
8909
8965
|
render = _ref.render,
|
8910
8966
|
_ref$partSize = _ref.partSize,
|
8911
8967
|
partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
|
8912
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
8968
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$9);
|
8913
8969
|
|
8914
8970
|
{
|
8915
8971
|
var _useState = useState([]),
|
@@ -8986,15 +9042,15 @@ var Index$8 = function Index(_ref) {
|
|
8986
9042
|
}
|
8987
9043
|
};
|
8988
9044
|
|
8989
|
-
var _excluded$
|
9045
|
+
var _excluded$a = ["data", "onClick", "renderItem"];
|
8990
9046
|
|
8991
9047
|
SwiperCore.use([Pagination, Navigation, Autoplay]);
|
8992
9048
|
|
8993
|
-
var Index$
|
9049
|
+
var Index$a = function Index(props) {
|
8994
9050
|
var data = props.data,
|
8995
9051
|
_onClick = props.onClick,
|
8996
9052
|
renderItem = props.renderItem,
|
8997
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
9053
|
+
extraProps = _objectWithoutProperties(props, _excluded$a);
|
8998
9054
|
|
8999
9055
|
return /*#__PURE__*/React.createElement(Swiper, _objectSpread2({
|
9000
9056
|
onClick: function onClick(swiper, event) {
|
@@ -9023,7 +9079,7 @@ var Index$9 = function Index(props) {
|
|
9023
9079
|
}));
|
9024
9080
|
};
|
9025
9081
|
|
9026
|
-
Index$
|
9082
|
+
Index$a.defaultProps = {};
|
9027
9083
|
|
9028
9084
|
function _extends$1() {
|
9029
9085
|
_extends$1 = Object.assign || function (target) {
|
@@ -9617,7 +9673,7 @@ function createBrowserHistory(props) {
|
|
9617
9673
|
return history;
|
9618
9674
|
}
|
9619
9675
|
|
9620
|
-
var _excluded$
|
9676
|
+
var _excluded$b = ["routes", "className"];
|
9621
9677
|
var history = createBrowserHistory();
|
9622
9678
|
|
9623
9679
|
function itemRender(route, params, routes, paths) {
|
@@ -9632,10 +9688,10 @@ function itemRender(route, params, routes, paths) {
|
|
9632
9688
|
}, route.breadcrumbName);
|
9633
9689
|
}
|
9634
9690
|
|
9635
|
-
var Index$
|
9691
|
+
var Index$b = function Index(_ref) {
|
9636
9692
|
var routes = _ref.routes,
|
9637
9693
|
className = _ref.className,
|
9638
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
9694
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
9639
9695
|
|
9640
9696
|
return /*#__PURE__*/React.createElement(_Breadcrumb, _objectSpread2({
|
9641
9697
|
className: className || 'default',
|
@@ -9645,9 +9701,9 @@ var Index$a = function Index(_ref) {
|
|
9645
9701
|
}, props));
|
9646
9702
|
};
|
9647
9703
|
|
9648
|
-
var _excluded$
|
9704
|
+
var _excluded$c = ["title", "className", "headerTail", "headerCenter"];
|
9649
9705
|
|
9650
|
-
var Index$
|
9706
|
+
var Index$c = function Index(_ref) {
|
9651
9707
|
var _classNames;
|
9652
9708
|
|
9653
9709
|
var title = _ref.title,
|
@@ -9655,7 +9711,7 @@ var Index$b = function Index(_ref) {
|
|
9655
9711
|
className = _ref$className === void 0 ? 'default' : _ref$className,
|
9656
9712
|
headerTail = _ref.headerTail,
|
9657
9713
|
headerCenter = _ref.headerCenter,
|
9658
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
9714
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
9659
9715
|
|
9660
9716
|
return /*#__PURE__*/React.createElement("div", _objectSpread2({
|
9661
9717
|
className: classnames((_classNames = {}, _defineProperty(_classNames, 'card-container', true), _defineProperty(_classNames, className, true), _classNames))
|
@@ -9674,7 +9730,7 @@ var Index$b = function Index(_ref) {
|
|
9674
9730
|
}, props.children))));
|
9675
9731
|
};
|
9676
9732
|
|
9677
|
-
Index$
|
9733
|
+
Index$c.defaultProps = {};
|
9678
9734
|
|
9679
9735
|
var controlShow = function controlShow(f1, f2, value, timer) {
|
9680
9736
|
f1(value);
|
@@ -9762,7 +9818,7 @@ function DialogModel(props) {
|
|
9762
9818
|
return renderChildren;
|
9763
9819
|
}
|
9764
9820
|
|
9765
|
-
var _excluded$
|
9821
|
+
var _excluded$d = ["visible"];
|
9766
9822
|
|
9767
9823
|
var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
9768
9824
|
_inherits(Modal, _React$PureComponent);
|
@@ -9894,7 +9950,7 @@ Modal.show = function (config) {
|
|
9894
9950
|
manager.setShow = setShow;
|
9895
9951
|
|
9896
9952
|
var visible = props.visible,
|
9897
|
-
trueProps = _objectWithoutProperties(props, _excluded$
|
9953
|
+
trueProps = _objectWithoutProperties(props, _excluded$d);
|
9898
9954
|
|
9899
9955
|
useEffect(function () {
|
9900
9956
|
manager.mounted = true;
|
@@ -9918,7 +9974,7 @@ Modal.hidden = function () {
|
|
9918
9974
|
ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
|
9919
9975
|
};
|
9920
9976
|
|
9921
|
-
var _excluded$
|
9977
|
+
var _excluded$e = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange"];
|
9922
9978
|
|
9923
9979
|
var ModalForm = function ModalForm(props, ref) {
|
9924
9980
|
var columns = props.columns,
|
@@ -9932,7 +9988,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
9932
9988
|
title = props.title,
|
9933
9989
|
record = props.record,
|
9934
9990
|
onFormChange = props.onFormChange,
|
9935
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
9991
|
+
extraProps = _objectWithoutProperties(props, _excluded$e);
|
9936
9992
|
|
9937
9993
|
var formRef = useRef(null);
|
9938
9994
|
|
@@ -10063,7 +10119,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10063
10119
|
|
10064
10120
|
var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
|
10065
10121
|
|
10066
|
-
var _excluded$
|
10122
|
+
var _excluded$f = ["columns", "extraColumns", "request", "modalFormSearch", "tableAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig"];
|
10067
10123
|
|
10068
10124
|
var TabelCard = function TabelCard(props, ref) {
|
10069
10125
|
var columns = props.columns,
|
@@ -10077,7 +10133,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10077
10133
|
onFormChange = props.onFormChange,
|
10078
10134
|
modalConfig = props.modalConfig,
|
10079
10135
|
optionColumnConfig = props.optionColumnConfig,
|
10080
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10136
|
+
extraProps = _objectWithoutProperties(props, _excluded$f);
|
10081
10137
|
|
10082
10138
|
var actionRef = useRef();
|
10083
10139
|
var formRef = useRef(null);
|
@@ -10399,4 +10455,4 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10399
10455
|
|
10400
10456
|
var index$1 = /*#__PURE__*/React.forwardRef(TabelCard);
|
10401
10457
|
|
10402
|
-
export { Index$
|
10458
|
+
export { Index$9 as AutoScroll, Index$b as Breadcrumb, WButton as Button, Index$c as Card, Index$4 as Checkbox, Index$8 as CountUp, Index$2 as DatePicker, index as IconFont, Index as Input, WInputNumber as InputNumber, Modal, ModalForm$1 as ModalForm, Index$7 as Number, NumericInput, Index$3 as Radio, Index$1 as Select, Index$a as Swiper, WSwitch as Switch, index$1 as TabelCard, Table, Index$5 as TreeSelect, Index$6 as WDatePicker, WForm$1 as WForm };
|
package/dist/index.js
CHANGED
@@ -570,15 +570,14 @@ var WSelect = function WSelect(props) {
|
|
570
570
|
switch (_context.prev = _context.next) {
|
571
571
|
case 0:
|
572
572
|
if (!request) {
|
573
|
-
_context.next =
|
573
|
+
_context.next = 8;
|
574
574
|
break;
|
575
575
|
}
|
576
576
|
|
577
|
-
|
578
|
-
_context.next = 4;
|
577
|
+
_context.next = 3;
|
579
578
|
return request();
|
580
579
|
|
581
|
-
case
|
580
|
+
case 3:
|
582
581
|
res = _context.sent;
|
583
582
|
setResList(res);
|
584
583
|
onLoad && onLoad(res);
|
@@ -590,7 +589,7 @@ var WSelect = function WSelect(props) {
|
|
590
589
|
});
|
591
590
|
setChildrenNode(node);
|
592
591
|
|
593
|
-
case
|
592
|
+
case 8:
|
594
593
|
case "end":
|
595
594
|
return _context.stop();
|
596
595
|
}
|
@@ -7574,8 +7573,65 @@ Table.defaultProps = {
|
|
7574
7573
|
rowKey: 'key'
|
7575
7574
|
};
|
7576
7575
|
|
7577
|
-
var _excluded$5 = ["
|
7578
|
-
|
7576
|
+
var _excluded$5 = ["defaultValue", "format", "value", "onChange"],
|
7577
|
+
_excluded2$1 = ["defaultValue", "value", "format", "onChange"];
|
7578
|
+
|
7579
|
+
var momentValue = function momentValue(value) {
|
7580
|
+
if (value) {
|
7581
|
+
return hooks(value);
|
7582
|
+
}
|
7583
|
+
};
|
7584
|
+
|
7585
|
+
var WDatePicker$1 = function WDatePicker(props) {
|
7586
|
+
var defaultValue = props.defaultValue,
|
7587
|
+
format = props.format,
|
7588
|
+
value = props.value,
|
7589
|
+
_onChange = props.onChange,
|
7590
|
+
extraProps = _objectWithoutProperties(props, _excluded$5);
|
7591
|
+
|
7592
|
+
return (
|
7593
|
+
/*#__PURE__*/
|
7594
|
+
// <ConfigProvider locale={zhCN}>
|
7595
|
+
React__default['default'].createElement(_DatePicker__default['default'], _objectSpread2({
|
7596
|
+
defaultValue: momentValue(defaultValue),
|
7597
|
+
value: momentValue(value),
|
7598
|
+
onChange: function onChange(v) {
|
7599
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(v, momentValue(v).format(format || 'YYYY-MM-DD'));
|
7600
|
+
}
|
7601
|
+
}, extraProps)) // </ConfigProvider>
|
7602
|
+
|
7603
|
+
);
|
7604
|
+
};
|
7605
|
+
|
7606
|
+
WDatePicker$1.defaultProps = {};
|
7607
|
+
|
7608
|
+
var RangePicker$2 = function RangePicker(props) {
|
7609
|
+
var defaultValue = props.defaultValue,
|
7610
|
+
value = props.value,
|
7611
|
+
format = props.format,
|
7612
|
+
_onChange2 = props.onChange,
|
7613
|
+
extraProps = _objectWithoutProperties(props, _excluded2$1);
|
7614
|
+
|
7615
|
+
return (
|
7616
|
+
/*#__PURE__*/
|
7617
|
+
// <ConfigProvider locale={zhCN}>
|
7618
|
+
React__default['default'].createElement(_DatePicker__default['default'].RangePicker, _objectSpread2({
|
7619
|
+
defaultValue: momentValue(defaultValue),
|
7620
|
+
value: momentValue(value),
|
7621
|
+
onChange: function onChange(v) {
|
7622
|
+
_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, momentValue(v).format(format || 'YYYY-MM-DD'));
|
7623
|
+
}
|
7624
|
+
}, extraProps)) // </ConfigProvider>
|
7625
|
+
|
7626
|
+
);
|
7627
|
+
};
|
7628
|
+
|
7629
|
+
RangePicker$2.defaultProps = {};
|
7630
|
+
var Index$6 = WDatePicker$1;
|
7631
|
+
Index$6.RangePicker = RangePicker$2;
|
7632
|
+
|
7633
|
+
var _excluded$6 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "onFormChange", "onSubmit", "onReset"];
|
7634
|
+
var RangePicker$3 = Index$6.RangePicker;
|
7579
7635
|
|
7580
7636
|
var WForm = function WForm(props, ref) {
|
7581
7637
|
var columns = props.columns,
|
@@ -7588,7 +7644,7 @@ var WForm = function WForm(props, ref) {
|
|
7588
7644
|
onFormChange = props.onFormChange,
|
7589
7645
|
onSubmit = props.onSubmit,
|
7590
7646
|
onReset = props.onReset,
|
7591
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
7647
|
+
extraProps = _objectWithoutProperties(props, _excluded$6);
|
7592
7648
|
|
7593
7649
|
var _Form$useForm = _Form__default['default'].useForm(),
|
7594
7650
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
@@ -7752,7 +7808,7 @@ var WForm = function WForm(props, ref) {
|
|
7752
7808
|
name: c.dataIndex,
|
7753
7809
|
label: c.title,
|
7754
7810
|
labelCol: _labelCol2
|
7755
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
7811
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
|
7756
7812
|
disabled: disabled,
|
7757
7813
|
placeholder: "\u8BF7\u8F93\u5165"
|
7758
7814
|
}, picker), showTime), c.fieldProps))));
|
@@ -7788,7 +7844,7 @@ var WForm = function WForm(props, ref) {
|
|
7788
7844
|
name: c.dataIndex,
|
7789
7845
|
label: c.title,
|
7790
7846
|
labelCol: _labelCol3
|
7791
|
-
}), /*#__PURE__*/React__default['default'].createElement(RangePicker$
|
7847
|
+
}), /*#__PURE__*/React__default['default'].createElement(RangePicker$3, _objectSpread2(_objectSpread2({
|
7792
7848
|
disabled: disabled
|
7793
7849
|
}, _showTime), c.fieldProps))));
|
7794
7850
|
} else if (c.valueType === 'checkbox') {
|
@@ -8215,7 +8271,7 @@ var WForm = function WForm(props, ref) {
|
|
8215
8271
|
name: c.dataIndex,
|
8216
8272
|
label: c.title,
|
8217
8273
|
labelCol: _labelCol13
|
8218
|
-
}), /*#__PURE__*/React__default['default'].createElement(Index$
|
8274
|
+
}), /*#__PURE__*/React__default['default'].createElement(Index$6, _objectSpread2(_objectSpread2(_objectSpread2({
|
8219
8275
|
disabled: disabled,
|
8220
8276
|
placeholder: "\u8BF7\u8F93\u5165"
|
8221
8277
|
}, picker), showTime), c.fieldProps))));
|
@@ -8251,7 +8307,7 @@ var WForm = function WForm(props, ref) {
|
|
8251
8307
|
name: c.dataIndex,
|
8252
8308
|
label: c.title,
|
8253
8309
|
labelCol: _labelCol14
|
8254
|
-
}), /*#__PURE__*/React__default['default'].createElement(RangePicker$
|
8310
|
+
}), /*#__PURE__*/React__default['default'].createElement(RangePicker$3, _objectSpread2(_objectSpread2({
|
8255
8311
|
disabled: disabled
|
8256
8312
|
}, _showTime2), c.fieldProps))));
|
8257
8313
|
} else if (c.valueType === 'checkbox') {
|
@@ -8678,8 +8734,8 @@ var WForm = function WForm(props, ref) {
|
|
8678
8734
|
|
8679
8735
|
var WForm$1 = /*#__PURE__*/React__default['default'].forwardRef(WForm);
|
8680
8736
|
|
8681
|
-
var _excluded$
|
8682
|
-
_excluded2$
|
8737
|
+
var _excluded$7 = ["height", "width", "count", "style", "numberStyle"],
|
8738
|
+
_excluded2$2 = ["count", "width", "height", "marginRight"];
|
8683
8739
|
|
8684
8740
|
var Number = function Number(_ref) {
|
8685
8741
|
var height = _ref.height,
|
@@ -8688,7 +8744,7 @@ var Number = function Number(_ref) {
|
|
8688
8744
|
count = _ref$count === void 0 ? 0 : _ref$count,
|
8689
8745
|
style = _ref.style,
|
8690
8746
|
numberStyle = _ref.numberStyle,
|
8691
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
8747
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
8692
8748
|
|
8693
8749
|
// 上次的值
|
8694
8750
|
var _useState = React.useState(0),
|
@@ -8808,13 +8864,13 @@ Number.defaultProps = {
|
|
8808
8864
|
height: 40
|
8809
8865
|
};
|
8810
8866
|
|
8811
|
-
var Index$
|
8867
|
+
var Index$7 = function Index(props) {
|
8812
8868
|
var count = props.count,
|
8813
8869
|
width = props.width,
|
8814
8870
|
height = props.height,
|
8815
8871
|
_props$marginRight = props.marginRight,
|
8816
8872
|
marginRight = _props$marginRight === void 0 ? '8px' : _props$marginRight,
|
8817
|
-
extraProps = _objectWithoutProperties(props, _excluded2$
|
8873
|
+
extraProps = _objectWithoutProperties(props, _excluded2$2);
|
8818
8874
|
|
8819
8875
|
var _useState9 = React.useState([]),
|
8820
8876
|
_useState10 = _slicedToArray(_useState9, 2),
|
@@ -8845,20 +8901,20 @@ var Index$6 = function Index(props) {
|
|
8845
8901
|
}));
|
8846
8902
|
};
|
8847
8903
|
|
8848
|
-
var _excluded$
|
8904
|
+
var _excluded$8 = ["duration"];
|
8849
8905
|
|
8850
|
-
var Index$
|
8906
|
+
var Index$8 = function Index(props) {
|
8851
8907
|
var _props$duration = props.duration,
|
8852
8908
|
duration = _props$duration === void 0 ? 2.75 : _props$duration,
|
8853
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
8909
|
+
extraProps = _objectWithoutProperties(props, _excluded$8);
|
8854
8910
|
return /*#__PURE__*/React__default['default'].createElement(CountUp__default['default'], _objectSpread2({
|
8855
8911
|
duration: duration
|
8856
8912
|
}, extraProps));
|
8857
8913
|
};
|
8858
8914
|
|
8859
|
-
Index$
|
8915
|
+
Index$8.defaultProps = {};
|
8860
8916
|
|
8861
|
-
var _excluded$
|
8917
|
+
var _excluded$9 = ["list", "render", "partSize"];
|
8862
8918
|
|
8863
8919
|
function AutoScroll(props) {
|
8864
8920
|
var inner1 = React.useRef();
|
@@ -8937,12 +8993,12 @@ function AutoScroll(props) {
|
|
8937
8993
|
}));
|
8938
8994
|
}
|
8939
8995
|
|
8940
|
-
var Index$
|
8996
|
+
var Index$9 = function Index(_ref) {
|
8941
8997
|
var list = _ref.list,
|
8942
8998
|
render = _ref.render,
|
8943
8999
|
_ref$partSize = _ref.partSize,
|
8944
9000
|
partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
|
8945
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
9001
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$9);
|
8946
9002
|
|
8947
9003
|
{
|
8948
9004
|
var _useState = React.useState([]),
|
@@ -9019,15 +9075,15 @@ var Index$8 = function Index(_ref) {
|
|
9019
9075
|
}
|
9020
9076
|
};
|
9021
9077
|
|
9022
|
-
var _excluded$
|
9078
|
+
var _excluded$a = ["data", "onClick", "renderItem"];
|
9023
9079
|
|
9024
9080
|
SwiperCore__default['default'].use([SwiperCore.Pagination, SwiperCore.Navigation, SwiperCore.Autoplay]);
|
9025
9081
|
|
9026
|
-
var Index$
|
9082
|
+
var Index$a = function Index(props) {
|
9027
9083
|
var data = props.data,
|
9028
9084
|
_onClick = props.onClick,
|
9029
9085
|
renderItem = props.renderItem,
|
9030
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
9086
|
+
extraProps = _objectWithoutProperties(props, _excluded$a);
|
9031
9087
|
|
9032
9088
|
return /*#__PURE__*/React__default['default'].createElement(react.Swiper, _objectSpread2({
|
9033
9089
|
onClick: function onClick(swiper, event) {
|
@@ -9056,7 +9112,7 @@ var Index$9 = function Index(props) {
|
|
9056
9112
|
}));
|
9057
9113
|
};
|
9058
9114
|
|
9059
|
-
Index$
|
9115
|
+
Index$a.defaultProps = {};
|
9060
9116
|
|
9061
9117
|
function _extends$1() {
|
9062
9118
|
_extends$1 = Object.assign || function (target) {
|
@@ -9650,7 +9706,7 @@ function createBrowserHistory(props) {
|
|
9650
9706
|
return history;
|
9651
9707
|
}
|
9652
9708
|
|
9653
|
-
var _excluded$
|
9709
|
+
var _excluded$b = ["routes", "className"];
|
9654
9710
|
var history = createBrowserHistory();
|
9655
9711
|
|
9656
9712
|
function itemRender(route, params, routes, paths) {
|
@@ -9665,10 +9721,10 @@ function itemRender(route, params, routes, paths) {
|
|
9665
9721
|
}, route.breadcrumbName);
|
9666
9722
|
}
|
9667
9723
|
|
9668
|
-
var Index$
|
9724
|
+
var Index$b = function Index(_ref) {
|
9669
9725
|
var routes = _ref.routes,
|
9670
9726
|
className = _ref.className,
|
9671
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
9727
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
9672
9728
|
|
9673
9729
|
return /*#__PURE__*/React__default['default'].createElement(_Breadcrumb__default['default'], _objectSpread2({
|
9674
9730
|
className: className || 'default',
|
@@ -9678,9 +9734,9 @@ var Index$a = function Index(_ref) {
|
|
9678
9734
|
}, props));
|
9679
9735
|
};
|
9680
9736
|
|
9681
|
-
var _excluded$
|
9737
|
+
var _excluded$c = ["title", "className", "headerTail", "headerCenter"];
|
9682
9738
|
|
9683
|
-
var Index$
|
9739
|
+
var Index$c = function Index(_ref) {
|
9684
9740
|
var _classNames;
|
9685
9741
|
|
9686
9742
|
var title = _ref.title,
|
@@ -9688,7 +9744,7 @@ var Index$b = function Index(_ref) {
|
|
9688
9744
|
className = _ref$className === void 0 ? 'default' : _ref$className,
|
9689
9745
|
headerTail = _ref.headerTail,
|
9690
9746
|
headerCenter = _ref.headerCenter,
|
9691
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
9747
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
9692
9748
|
|
9693
9749
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({
|
9694
9750
|
className: classnames__default['default']((_classNames = {}, _defineProperty(_classNames, 'card-container', true), _defineProperty(_classNames, className, true), _classNames))
|
@@ -9707,7 +9763,7 @@ var Index$b = function Index(_ref) {
|
|
9707
9763
|
}, props.children))));
|
9708
9764
|
};
|
9709
9765
|
|
9710
|
-
Index$
|
9766
|
+
Index$c.defaultProps = {};
|
9711
9767
|
|
9712
9768
|
var controlShow = function controlShow(f1, f2, value, timer) {
|
9713
9769
|
f1(value);
|
@@ -9795,7 +9851,7 @@ function DialogModel(props) {
|
|
9795
9851
|
return renderChildren;
|
9796
9852
|
}
|
9797
9853
|
|
9798
|
-
var _excluded$
|
9854
|
+
var _excluded$d = ["visible"];
|
9799
9855
|
|
9800
9856
|
var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
9801
9857
|
_inherits(Modal, _React$PureComponent);
|
@@ -9927,7 +9983,7 @@ Modal.show = function (config) {
|
|
9927
9983
|
manager.setShow = setShow;
|
9928
9984
|
|
9929
9985
|
var visible = props.visible,
|
9930
|
-
trueProps = _objectWithoutProperties(props, _excluded$
|
9986
|
+
trueProps = _objectWithoutProperties(props, _excluded$d);
|
9931
9987
|
|
9932
9988
|
React.useEffect(function () {
|
9933
9989
|
manager.mounted = true;
|
@@ -9951,7 +10007,7 @@ Modal.hidden = function () {
|
|
9951
10007
|
ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
|
9952
10008
|
};
|
9953
10009
|
|
9954
|
-
var _excluded$
|
10010
|
+
var _excluded$e = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange"];
|
9955
10011
|
|
9956
10012
|
var ModalForm = function ModalForm(props, ref) {
|
9957
10013
|
var columns = props.columns,
|
@@ -9965,7 +10021,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
9965
10021
|
title = props.title,
|
9966
10022
|
record = props.record,
|
9967
10023
|
onFormChange = props.onFormChange,
|
9968
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10024
|
+
extraProps = _objectWithoutProperties(props, _excluded$e);
|
9969
10025
|
|
9970
10026
|
var formRef = React.useRef(null);
|
9971
10027
|
|
@@ -10096,7 +10152,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10096
10152
|
|
10097
10153
|
var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
|
10098
10154
|
|
10099
|
-
var _excluded$
|
10155
|
+
var _excluded$f = ["columns", "extraColumns", "request", "modalFormSearch", "tableAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig"];
|
10100
10156
|
|
10101
10157
|
var TabelCard = function TabelCard(props, ref) {
|
10102
10158
|
var columns = props.columns,
|
@@ -10110,7 +10166,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10110
10166
|
onFormChange = props.onFormChange,
|
10111
10167
|
modalConfig = props.modalConfig,
|
10112
10168
|
optionColumnConfig = props.optionColumnConfig,
|
10113
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10169
|
+
extraProps = _objectWithoutProperties(props, _excluded$f);
|
10114
10170
|
|
10115
10171
|
var actionRef = React.useRef();
|
10116
10172
|
var formRef = React.useRef(null);
|
@@ -10432,25 +10488,26 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10432
10488
|
|
10433
10489
|
var index$1 = /*#__PURE__*/React__default['default'].forwardRef(TabelCard);
|
10434
10490
|
|
10435
|
-
exports.AutoScroll = Index$
|
10436
|
-
exports.Breadcrumb = Index$
|
10491
|
+
exports.AutoScroll = Index$9;
|
10492
|
+
exports.Breadcrumb = Index$b;
|
10437
10493
|
exports.Button = WButton;
|
10438
|
-
exports.Card = Index$
|
10494
|
+
exports.Card = Index$c;
|
10439
10495
|
exports.Checkbox = Index$4;
|
10440
|
-
exports.CountUp = Index$
|
10496
|
+
exports.CountUp = Index$8;
|
10441
10497
|
exports.DatePicker = Index$2;
|
10442
10498
|
exports.IconFont = index;
|
10443
10499
|
exports.Input = Index;
|
10444
10500
|
exports.InputNumber = WInputNumber;
|
10445
10501
|
exports.Modal = Modal;
|
10446
10502
|
exports.ModalForm = ModalForm$1;
|
10447
|
-
exports.Number = Index$
|
10503
|
+
exports.Number = Index$7;
|
10448
10504
|
exports.NumericInput = NumericInput;
|
10449
10505
|
exports.Radio = Index$3;
|
10450
10506
|
exports.Select = Index$1;
|
10451
|
-
exports.Swiper = Index$
|
10507
|
+
exports.Swiper = Index$a;
|
10452
10508
|
exports.Switch = WSwitch;
|
10453
10509
|
exports.TabelCard = index$1;
|
10454
10510
|
exports.Table = Table;
|
10455
10511
|
exports.TreeSelect = Index$5;
|
10512
|
+
exports.WDatePicker = Index$6;
|
10456
10513
|
exports.WForm = WForm$1;
|
package/package.json
CHANGED