wargerm 0.2.43 → 0.3.3
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/AutoScroll/index.d.ts +1 -0
- package/dist/components/ModalTips/dialog.d.ts +19 -0
- package/dist/components/ModalTips/index.d.ts +30 -0
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/components/WebsocketHeart/index.d.ts +1 -0
- package/dist/index.css +94 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.css +94 -0
- package/dist/index.esm.js +341 -71
- package/dist/index.js +341 -70
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -7923,7 +7923,7 @@ var WForm = function WForm(props, ref) {
|
|
7923
7923
|
|
7924
7924
|
var WForm$1 = /*#__PURE__*/React__default['default'].forwardRef(WForm);
|
7925
7925
|
|
7926
|
-
var _excluded$7 = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef"];
|
7926
|
+
var _excluded$7 = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
|
7927
7927
|
function Table(_ref) {
|
7928
7928
|
var _formSearchRef$curren3, _classnames2;
|
7929
7929
|
|
@@ -7953,6 +7953,7 @@ function Table(_ref) {
|
|
7953
7953
|
_ref$frameBoxDirectio = _ref.frameBoxDirection,
|
7954
7954
|
frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
|
7955
7955
|
formRef = _ref.formRef,
|
7956
|
+
none = _ref.none,
|
7956
7957
|
props = _objectWithoutProperties(_ref, _excluded$7);
|
7957
7958
|
|
7958
7959
|
var _useState = React.useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
|
@@ -8323,7 +8324,7 @@ function Table(_ref) {
|
|
8323
8324
|
}
|
8324
8325
|
}, _callee);
|
8325
8326
|
}))();
|
8326
|
-
}, [params, pageParams, pagination, tableList, formSearch]);
|
8327
|
+
}, [params, pageParams, pagination, tableList, formSearch, columns]);
|
8327
8328
|
|
8328
8329
|
var onFormSubmit = function onFormSubmit(values) {
|
8329
8330
|
onSubmit && onSubmit(values);
|
@@ -8399,7 +8400,7 @@ function Table(_ref) {
|
|
8399
8400
|
style: _objectSpread2({
|
8400
8401
|
height: (style === null || style === void 0 ? void 0 : style.height) ? "calc(".concat(style.height, " - ").concat(52 + (pagination === false ? 0 : 42), "px)") : '200px'
|
8401
8402
|
}, tbodyStyle)
|
8402
|
-
}, dataSource.map(function (record, index) {
|
8403
|
+
}, dataSource.length > 0 ? dataSource.map(function (record, index) {
|
8403
8404
|
var key = typeof rowKey === 'function' ? record[rowKey(record)] : record[rowKey];
|
8404
8405
|
return frameBoxTable ? /*#__PURE__*/React__default['default'].createElement(FrameBox, {
|
8405
8406
|
key: key,
|
@@ -8408,7 +8409,15 @@ function Table(_ref) {
|
|
8408
8409
|
width: '100%'
|
8409
8410
|
}
|
8410
8411
|
}, renderTr(record, index, key)) : renderTr(record, index, key);
|
8411
|
-
})
|
8412
|
+
}) : /*#__PURE__*/React__default['default'].createElement("div", {
|
8413
|
+
style: {
|
8414
|
+
width: '100%',
|
8415
|
+
height: '100%',
|
8416
|
+
display: 'flex',
|
8417
|
+
justifyContent: 'center',
|
8418
|
+
alignItems: 'center'
|
8419
|
+
}
|
8420
|
+
}, none || '暂无数据')), _typeof(pagination) === 'object' && /*#__PURE__*/React__default['default'].createElement(_Pagination__default['default'], _objectSpread2({
|
8412
8421
|
style: {
|
8413
8422
|
textAlign: 'right',
|
8414
8423
|
marginTop: '10px'
|
@@ -8606,7 +8615,7 @@ var Index$8 = function Index(props) {
|
|
8606
8615
|
|
8607
8616
|
Index$8.defaultProps = {};
|
8608
8617
|
|
8609
|
-
var _excluded$a = ["list", "render", "partSize"];
|
8618
|
+
var _excluded$a = ["list", "render", "none", "partSize"];
|
8610
8619
|
|
8611
8620
|
function AutoScroll(props) {
|
8612
8621
|
var inner1 = React.useRef();
|
@@ -8688,83 +8697,90 @@ function AutoScroll(props) {
|
|
8688
8697
|
var Index$9 = function Index(_ref) {
|
8689
8698
|
var list = _ref.list,
|
8690
8699
|
render = _ref.render,
|
8700
|
+
none = _ref.none,
|
8691
8701
|
_ref$partSize = _ref.partSize,
|
8692
8702
|
partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
|
8693
8703
|
otherProps = _objectWithoutProperties(_ref, _excluded$a);
|
8694
8704
|
|
8695
|
-
|
8696
|
-
|
8697
|
-
|
8698
|
-
|
8699
|
-
setPatrA = _useState2[1];
|
8705
|
+
var _useState = React.useState([]),
|
8706
|
+
_useState2 = _slicedToArray(_useState, 2),
|
8707
|
+
partA = _useState2[0],
|
8708
|
+
setPatrA = _useState2[1];
|
8700
8709
|
|
8701
|
-
|
8702
|
-
|
8703
|
-
|
8704
|
-
|
8710
|
+
var _useState3 = React.useState([]),
|
8711
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
8712
|
+
partB = _useState4[0],
|
8713
|
+
setPatrB = _useState4[1]; // partA在items中的开始索引
|
8705
8714
|
|
8706
8715
|
|
8707
|
-
|
8708
|
-
|
8709
|
-
|
8710
|
-
|
8716
|
+
var _useState5 = React.useState(0),
|
8717
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
8718
|
+
partAStartIndex = _useState6[0],
|
8719
|
+
setPartAStartIndex = _useState6[1]; // partB在items中的开始索引
|
8711
8720
|
|
8712
8721
|
|
8713
|
-
|
8714
|
-
|
8715
|
-
|
8716
|
-
|
8722
|
+
var _useState7 = React.useState(partSize),
|
8723
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
8724
|
+
partBStartIndex = _useState8[0],
|
8725
|
+
setPartBStartIndex = _useState8[1];
|
8717
8726
|
|
8718
|
-
|
8727
|
+
var autoRef = React.useRef(); // 当滚动至一半的位置时,修改partAStartIndex
|
8719
8728
|
|
8720
|
-
|
8721
|
-
|
8722
|
-
|
8729
|
+
var handleHalf = function handleHalf() {
|
8730
|
+
setPartAStartIndex((partBStartIndex + partSize) % list.length);
|
8731
|
+
}; // 当滚动归位时,修改partBStartIndex
|
8723
8732
|
|
8724
8733
|
|
8725
|
-
|
8726
|
-
|
8727
|
-
|
8734
|
+
var handleComplete = function handleComplete() {
|
8735
|
+
setPartBStartIndex((partAStartIndex + partSize) % list.length);
|
8736
|
+
};
|
8728
8737
|
|
8729
|
-
|
8730
|
-
|
8731
|
-
|
8732
|
-
|
8733
|
-
|
8734
|
-
|
8735
|
-
|
8738
|
+
React.useEffect(function () {
|
8739
|
+
// partA中的数据
|
8740
|
+
if (list.length > partSize) {
|
8741
|
+
setPatrA(list);
|
8742
|
+
} else {
|
8743
|
+
setPatrA(list);
|
8744
|
+
} // partB中的数据
|
8736
8745
|
|
8737
8746
|
|
8738
|
-
|
8739
|
-
|
8740
|
-
|
8741
|
-
|
8742
|
-
|
8747
|
+
if (list.length > partSize) {
|
8748
|
+
setPatrB(list);
|
8749
|
+
} else {
|
8750
|
+
setPatrB([]);
|
8751
|
+
}
|
8743
8752
|
|
8744
|
-
|
8745
|
-
|
8746
|
-
|
8747
|
-
|
8748
|
-
}
|
8749
|
-
}, 0);
|
8750
|
-
}, [list]);
|
8751
|
-
React.useEffect(function () {
|
8752
|
-
setPartBStartIndex(partAStartIndex + partSize);
|
8753
|
-
}, []);
|
8754
|
-
return /*#__PURE__*/React__default['default'].createElement(AutoScroll, _objectSpread2({
|
8755
|
-
cref: autoRef,
|
8756
|
-
complete: function complete() {
|
8757
|
-
return handleComplete;
|
8758
|
-
},
|
8759
|
-
half: function half() {
|
8760
|
-
return handleHalf;
|
8753
|
+
setTimeout(function () {
|
8754
|
+
//手动触发执行滚动
|
8755
|
+
if (autoRef.current) {
|
8756
|
+
autoRef.current.tryScroll();
|
8761
8757
|
}
|
8762
|
-
},
|
8763
|
-
|
8764
|
-
|
8765
|
-
|
8766
|
-
|
8767
|
-
|
8758
|
+
}, 0);
|
8759
|
+
}, [list]);
|
8760
|
+
React.useEffect(function () {
|
8761
|
+
setPartBStartIndex(partAStartIndex + partSize);
|
8762
|
+
}, []);
|
8763
|
+
return list.length > 0 ? /*#__PURE__*/React__default['default'].createElement(AutoScroll, _objectSpread2({
|
8764
|
+
cref: autoRef,
|
8765
|
+
complete: function complete() {
|
8766
|
+
return handleComplete;
|
8767
|
+
},
|
8768
|
+
half: function half() {
|
8769
|
+
return handleHalf;
|
8770
|
+
}
|
8771
|
+
}, otherProps), partA && partA.map(function (item, index) {
|
8772
|
+
return render(item, index);
|
8773
|
+
}), partB && partB.map(function (item, index) {
|
8774
|
+
return render(item, index);
|
8775
|
+
})) : /*#__PURE__*/React__default['default'].createElement("div", {
|
8776
|
+
style: {
|
8777
|
+
width: '100%',
|
8778
|
+
height: '100%',
|
8779
|
+
display: 'flex',
|
8780
|
+
justifyContent: 'center',
|
8781
|
+
alignItems: 'center'
|
8782
|
+
}
|
8783
|
+
}, none || '暂无数据');
|
8768
8784
|
};
|
8769
8785
|
|
8770
8786
|
var _excluded$b = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
|
@@ -9733,7 +9749,255 @@ Modal.hidden = function () {
|
|
9733
9749
|
ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
|
9734
9750
|
};
|
9735
9751
|
|
9736
|
-
var
|
9752
|
+
var controlShow$1 = function controlShow(f1, f2, value, timer) {
|
9753
|
+
f1(value);
|
9754
|
+
return setTimeout(function () {
|
9755
|
+
f2(value);
|
9756
|
+
}, timer);
|
9757
|
+
};
|
9758
|
+
|
9759
|
+
function DialogModel$1(props) {
|
9760
|
+
var width = props.width,
|
9761
|
+
visible = props.visible,
|
9762
|
+
closeCb = props.closeCb,
|
9763
|
+
onClose = props.onClose,
|
9764
|
+
_props$className = props.className,
|
9765
|
+
className = _props$className === void 0 ? 'default-dialog' : _props$className,
|
9766
|
+
style = props.style;
|
9767
|
+
|
9768
|
+
var _useState = React.useState(visible),
|
9769
|
+
_useState2 = _slicedToArray(_useState, 2),
|
9770
|
+
modelShow = _useState2[0],
|
9771
|
+
setModelShow = _useState2[1];
|
9772
|
+
|
9773
|
+
var _useState3 = React.useState(visible),
|
9774
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
9775
|
+
modelShowAync = _useState4[0],
|
9776
|
+
setModelShowAync = _useState4[1];
|
9777
|
+
|
9778
|
+
var _useState5 = React.useState(visible),
|
9779
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
9780
|
+
flag = _useState6[0],
|
9781
|
+
setFlag = _useState6[1];
|
9782
|
+
|
9783
|
+
var renderChildren = React.useMemo(function () {
|
9784
|
+
var _classNames;
|
9785
|
+
|
9786
|
+
return /*#__PURE__*/ReactDOM__default['default'].createPortal( /*#__PURE__*/React__default['default'].createElement("div", {
|
9787
|
+
className: "w100p h100p pa ",
|
9788
|
+
style: {
|
9789
|
+
display: modelShow ? 'block' : 'none',
|
9790
|
+
overflow: 'hidden',
|
9791
|
+
top: 0,
|
9792
|
+
left: 0
|
9793
|
+
}
|
9794
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
9795
|
+
className: classnames__default['default']((_classNames = {}, _defineProperty(_classNames, className, true), _defineProperty(_classNames, 'model_container-tips', true), _defineProperty(_classNames, "animate__animated", true), _defineProperty(_classNames, flag ? 'animate__bounceInDown' : 'animate__fadeOutRightBig', true), _classNames)),
|
9796
|
+
style: _objectSpread2({
|
9797
|
+
opacity: modelShowAync ? 1 : 0,
|
9798
|
+
width: typeof width == 'number' ? width + 'px' : width
|
9799
|
+
}, style)
|
9800
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
9801
|
+
className: 'model_wrap-tips'
|
9802
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
9803
|
+
style: {
|
9804
|
+
width: '100%',
|
9805
|
+
height: '100%',
|
9806
|
+
position: 'relative'
|
9807
|
+
}
|
9808
|
+
}, ' ', props.children, ' '))), /*#__PURE__*/React__default['default'].createElement("div", {
|
9809
|
+
className: 'mask-tips',
|
9810
|
+
onClick: function onClick() {
|
9811
|
+
return onClose && onClose();
|
9812
|
+
},
|
9813
|
+
style: {
|
9814
|
+
opacity: modelShowAync ? 0.6 : 0
|
9815
|
+
}
|
9816
|
+
})), document.body);
|
9817
|
+
}, [modelShowAync, modelShow, props]);
|
9818
|
+
React.useEffect(function () {
|
9819
|
+
var timer;
|
9820
|
+
setFlag(visible);
|
9821
|
+
|
9822
|
+
if (visible) {
|
9823
|
+
timer = controlShow$1(setModelShow, setModelShowAync, visible, 30);
|
9824
|
+
} else {
|
9825
|
+
timer = controlShow$1(setModelShowAync, setModelShow, visible, 1000);
|
9826
|
+
}
|
9827
|
+
|
9828
|
+
return function () {
|
9829
|
+
timer && clearTimeout(timer);
|
9830
|
+
};
|
9831
|
+
}, [visible]);
|
9832
|
+
React.useEffect(function () {
|
9833
|
+
!modelShow && typeof closeCb === 'function' && closeCb();
|
9834
|
+
}, [modelShow]);
|
9835
|
+
return renderChildren;
|
9836
|
+
}
|
9837
|
+
|
9838
|
+
var _excluded$f = ["visible"];
|
9839
|
+
|
9840
|
+
var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
9841
|
+
_inherits(Modal, _React$PureComponent);
|
9842
|
+
|
9843
|
+
var _super = _createSuper(Modal);
|
9844
|
+
|
9845
|
+
function Modal() {
|
9846
|
+
var _this;
|
9847
|
+
|
9848
|
+
_classCallCheck(this, Modal);
|
9849
|
+
|
9850
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
9851
|
+
args[_key] = arguments[_key];
|
9852
|
+
}
|
9853
|
+
|
9854
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
9855
|
+
|
9856
|
+
_this.renderFooter = function () {
|
9857
|
+
var _this$props = _this.props,
|
9858
|
+
onOk = _this$props.onOk,
|
9859
|
+
onCancel = _this$props.onCancel,
|
9860
|
+
cancelText = _this$props.cancelText,
|
9861
|
+
okText = _this$props.okText,
|
9862
|
+
footer = _this$props.footer;
|
9863
|
+
if (footer && /*#__PURE__*/React__default['default'].isValidElement(footer)) return footer;
|
9864
|
+
if (footer === false) return null;
|
9865
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
9866
|
+
className: "model_bottom-tips"
|
9867
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
9868
|
+
className: "model_btn_box",
|
9869
|
+
style: {
|
9870
|
+
display: 'flex'
|
9871
|
+
}
|
9872
|
+
}, /*#__PURE__*/React__default['default'].createElement(WButton, {
|
9873
|
+
className: "okbtn",
|
9874
|
+
onClick: function onClick(e) {
|
9875
|
+
onOk && onOk(e);
|
9876
|
+
}
|
9877
|
+
}, okText || '确定'), /*#__PURE__*/React__default['default'].createElement(WButton, {
|
9878
|
+
className: "concellbtn",
|
9879
|
+
style: {
|
9880
|
+
marginLeft: '10px'
|
9881
|
+
},
|
9882
|
+
onClick: function onClick(e) {
|
9883
|
+
onCancel && onCancel(e);
|
9884
|
+
}
|
9885
|
+
}, cancelText || '取消')));
|
9886
|
+
};
|
9887
|
+
|
9888
|
+
_this.renderTop = function () {
|
9889
|
+
var _this$props2 = _this.props,
|
9890
|
+
title = _this$props2.title,
|
9891
|
+
onClose = _this$props2.onClose;
|
9892
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
9893
|
+
className: "model-header-tips"
|
9894
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
9895
|
+
className: "model-title-tips"
|
9896
|
+
}, title), /*#__PURE__*/React__default['default'].createElement(icons.CloseCircleOutlined, {
|
9897
|
+
className: "model-closeIcon-tips",
|
9898
|
+
onClick: function onClick() {
|
9899
|
+
return onClose && onClose();
|
9900
|
+
}
|
9901
|
+
}));
|
9902
|
+
};
|
9903
|
+
|
9904
|
+
_this.renderContent = function () {
|
9905
|
+
var _this$props3 = _this.props,
|
9906
|
+
content = _this$props3.content,
|
9907
|
+
children = _this$props3.children;
|
9908
|
+
return /*#__PURE__*/React__default['default'].isValidElement(content) ? content : children ? children : null;
|
9909
|
+
};
|
9910
|
+
|
9911
|
+
return _this;
|
9912
|
+
}
|
9913
|
+
|
9914
|
+
_createClass(Modal, [{
|
9915
|
+
key: "render",
|
9916
|
+
value: function render() {
|
9917
|
+
var _this$props4 = this.props,
|
9918
|
+
visible = _this$props4.visible,
|
9919
|
+
width = _this$props4.width,
|
9920
|
+
closeCb = _this$props4.closeCb,
|
9921
|
+
onClose = _this$props4.onClose,
|
9922
|
+
className = _this$props4.className,
|
9923
|
+
style = _this$props4.style;
|
9924
|
+
return /*#__PURE__*/React__default['default'].createElement(DialogModel$1, {
|
9925
|
+
closeCb: closeCb,
|
9926
|
+
onClose: onClose,
|
9927
|
+
visible: visible,
|
9928
|
+
width: width,
|
9929
|
+
className: className,
|
9930
|
+
style: style
|
9931
|
+
}, this.renderTop(), /*#__PURE__*/React__default['default'].createElement("div", {
|
9932
|
+
className: "model-content-tips"
|
9933
|
+
}, this.renderContent()), this.renderFooter());
|
9934
|
+
}
|
9935
|
+
}]);
|
9936
|
+
|
9937
|
+
return Modal;
|
9938
|
+
}(React__default['default'].PureComponent);
|
9939
|
+
|
9940
|
+
Modal$1.show = void 0;
|
9941
|
+
Modal$1.hidden = void 0;
|
9942
|
+
var ModalContainer$1 = null;
|
9943
|
+
var modelSysbol$1 = Symbol('$$__model__Container_hidden');
|
9944
|
+
|
9945
|
+
Modal$1.show = function (config) {
|
9946
|
+
if (ModalContainer$1) return;
|
9947
|
+
|
9948
|
+
var props = _objectSpread2(_objectSpread2({}, config), {}, {
|
9949
|
+
visible: true
|
9950
|
+
});
|
9951
|
+
|
9952
|
+
var container = ModalContainer$1 = document.createElement('div');
|
9953
|
+
var manager = container[modelSysbol$1] = {
|
9954
|
+
setShow: null,
|
9955
|
+
mounted: false,
|
9956
|
+
hidden: function hidden() {
|
9957
|
+
var setShow = manager.setShow;
|
9958
|
+
setShow && setShow(false);
|
9959
|
+
},
|
9960
|
+
destory: function destory() {
|
9961
|
+
ReactDOM__default['default'].unmountComponentAtNode(container);
|
9962
|
+
document.body.removeChild(container);
|
9963
|
+
ModalContainer$1 = null;
|
9964
|
+
}
|
9965
|
+
};
|
9966
|
+
|
9967
|
+
var ModelApp = function ModelApp(props) {
|
9968
|
+
var _useState = React.useState(false),
|
9969
|
+
_useState2 = _slicedToArray(_useState, 2),
|
9970
|
+
show = _useState2[0],
|
9971
|
+
setShow = _useState2[1];
|
9972
|
+
|
9973
|
+
manager.setShow = setShow;
|
9974
|
+
|
9975
|
+
var visible = props.visible,
|
9976
|
+
trueProps = _objectWithoutProperties(props, _excluded$f);
|
9977
|
+
|
9978
|
+
React.useEffect(function () {
|
9979
|
+
manager.mounted = true;
|
9980
|
+
setShow(visible);
|
9981
|
+
}, []);
|
9982
|
+
return /*#__PURE__*/React__default['default'].createElement(Modal$1, _objectSpread2(_objectSpread2({}, trueProps), {}, {
|
9983
|
+
closeCb: function closeCb() {
|
9984
|
+
return manager.mounted && manager.destory();
|
9985
|
+
},
|
9986
|
+
visible: show
|
9987
|
+
}));
|
9988
|
+
};
|
9989
|
+
|
9990
|
+
document.body.appendChild(container);
|
9991
|
+
ReactDOM__default['default'].render( /*#__PURE__*/React__default['default'].createElement(ModelApp, _objectSpread2({}, props)), container);
|
9992
|
+
return manager;
|
9993
|
+
};
|
9994
|
+
|
9995
|
+
Modal$1.hidden = function () {
|
9996
|
+
if (!ModalContainer$1) return;
|
9997
|
+
ModalContainer$1[modelSysbol$1] && ModalContainer$1[modelSysbol$1].hidden();
|
9998
|
+
};
|
9999
|
+
|
10000
|
+
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange"];
|
9737
10001
|
|
9738
10002
|
var ModalForm = function ModalForm(props, ref) {
|
9739
10003
|
var columns = props.columns,
|
@@ -9747,7 +10011,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
9747
10011
|
title = props.title,
|
9748
10012
|
record = props.record,
|
9749
10013
|
onFormChange = props.onFormChange,
|
9750
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10014
|
+
extraProps = _objectWithoutProperties(props, _excluded$g);
|
9751
10015
|
|
9752
10016
|
var formRef = React.useRef(null);
|
9753
10017
|
|
@@ -9878,7 +10142,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
9878
10142
|
|
9879
10143
|
var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
|
9880
10144
|
|
9881
|
-
var _excluded$
|
10145
|
+
var _excluded$h = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig"],
|
9882
10146
|
_excluded2$3 = ["actionMethod"];
|
9883
10147
|
|
9884
10148
|
var TabelCard = function TabelCard(props, ref) {
|
@@ -9894,7 +10158,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
9894
10158
|
onFormChange = props.onFormChange,
|
9895
10159
|
modalConfig = props.modalConfig,
|
9896
10160
|
optionColumnConfig = props.optionColumnConfig,
|
9897
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10161
|
+
extraProps = _objectWithoutProperties(props, _excluded$h);
|
9898
10162
|
|
9899
10163
|
var actionRef = React.useRef();
|
9900
10164
|
var formRef = React.useRef(null);
|
@@ -10452,9 +10716,9 @@ var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
|
|
10452
10716
|
};
|
10453
10717
|
|
10454
10718
|
this.websocketOnmessage = function (e) {
|
10455
|
-
console.log('-----接收消息-------', e);
|
10719
|
+
// console.log('-----接收消息-------', e);
|
10720
|
+
// const data = e.data //解析对象
|
10456
10721
|
// To handle
|
10457
|
-
|
10458
10722
|
_this.onmessageCB(e); //心跳检测重置
|
10459
10723
|
|
10460
10724
|
|
@@ -10480,6 +10744,12 @@ var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
|
|
10480
10744
|
}
|
10481
10745
|
};
|
10482
10746
|
|
10747
|
+
this.close = function () {
|
10748
|
+
_this.websock.close();
|
10749
|
+
|
10750
|
+
_this.lockReconnect = true;
|
10751
|
+
};
|
10752
|
+
|
10483
10753
|
this.reconnect = function () {
|
10484
10754
|
var that = _this;
|
10485
10755
|
if (that.lockReconnect) return;
|
@@ -10549,6 +10819,7 @@ exports.Input = Index;
|
|
10549
10819
|
exports.InputNumber = WInputNumber;
|
10550
10820
|
exports.Modal = Modal;
|
10551
10821
|
exports.ModalForm = ModalForm$1;
|
10822
|
+
exports.ModalTips = Modal$1;
|
10552
10823
|
exports.Number = Index$7;
|
10553
10824
|
exports.NumericInput = NumericInput;
|
10554
10825
|
exports.Radio = Index$2;
|