wargerm 0.2.44 → 0.3.4
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/index.css +96 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.css +96 -0
- package/dist/index.esm.js +343 -75
- package/dist/index.js +343 -74
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -7889,7 +7889,7 @@ var WForm = function WForm(props, ref) {
|
|
7889
7889
|
|
7890
7890
|
var WForm$1 = /*#__PURE__*/React.forwardRef(WForm);
|
7891
7891
|
|
7892
|
-
var _excluded$7 = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef"];
|
7892
|
+
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"];
|
7893
7893
|
function Table(_ref) {
|
7894
7894
|
var _formSearchRef$curren3, _classnames2;
|
7895
7895
|
|
@@ -7919,6 +7919,7 @@ function Table(_ref) {
|
|
7919
7919
|
_ref$frameBoxDirectio = _ref.frameBoxDirection,
|
7920
7920
|
frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
|
7921
7921
|
formRef = _ref.formRef,
|
7922
|
+
none = _ref.none,
|
7922
7923
|
props = _objectWithoutProperties(_ref, _excluded$7);
|
7923
7924
|
|
7924
7925
|
var _useState = useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
|
@@ -7991,12 +7992,16 @@ function Table(_ref) {
|
|
7991
7992
|
return arr;
|
7992
7993
|
};
|
7993
7994
|
|
7994
|
-
var filterFormColumns =
|
7995
|
-
return
|
7996
|
-
|
7997
|
-
|
7998
|
-
|
7999
|
-
|
7995
|
+
var filterFormColumns = useMemo(function () {
|
7996
|
+
return flattenColumns(columns).filter(function (c) {
|
7997
|
+
return !c.hideInSearch;
|
7998
|
+
});
|
7999
|
+
}, [columns]);
|
8000
|
+
var filterColumns = useMemo(function () {
|
8001
|
+
return flattenColumns(columns).filter(function (c) {
|
8002
|
+
return !c.hideInTable;
|
8003
|
+
});
|
8004
|
+
}, [columns]);
|
8000
8005
|
var renderTh = useMemo(function () {
|
8001
8006
|
var renderThFc = function renderThFc(columns, parentHeight, isChild) {
|
8002
8007
|
var showColumns = columns.filter(function (c) {
|
@@ -8289,7 +8294,7 @@ function Table(_ref) {
|
|
8289
8294
|
}
|
8290
8295
|
}, _callee);
|
8291
8296
|
}))();
|
8292
|
-
}, [params, pageParams, pagination, tableList, formSearch]);
|
8297
|
+
}, [params, pageParams, pagination, tableList, formSearch, columns]);
|
8293
8298
|
|
8294
8299
|
var onFormSubmit = function onFormSubmit(values) {
|
8295
8300
|
onSubmit && onSubmit(values);
|
@@ -8365,7 +8370,7 @@ function Table(_ref) {
|
|
8365
8370
|
style: _objectSpread2({
|
8366
8371
|
height: (style === null || style === void 0 ? void 0 : style.height) ? "calc(".concat(style.height, " - ").concat(52 + (pagination === false ? 0 : 42), "px)") : '200px'
|
8367
8372
|
}, tbodyStyle)
|
8368
|
-
}, dataSource.map(function (record, index) {
|
8373
|
+
}, dataSource.length > 0 ? dataSource.map(function (record, index) {
|
8369
8374
|
var key = typeof rowKey === 'function' ? record[rowKey(record)] : record[rowKey];
|
8370
8375
|
return frameBoxTable ? /*#__PURE__*/React.createElement(FrameBox, {
|
8371
8376
|
key: key,
|
@@ -8374,7 +8379,15 @@ function Table(_ref) {
|
|
8374
8379
|
width: '100%'
|
8375
8380
|
}
|
8376
8381
|
}, renderTr(record, index, key)) : renderTr(record, index, key);
|
8377
|
-
})
|
8382
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
8383
|
+
style: {
|
8384
|
+
width: '100%',
|
8385
|
+
height: '100%',
|
8386
|
+
display: 'flex',
|
8387
|
+
justifyContent: 'center',
|
8388
|
+
alignItems: 'center'
|
8389
|
+
}
|
8390
|
+
}, none || '暂无数据')), _typeof(pagination) === 'object' && /*#__PURE__*/React.createElement(_Pagination, _objectSpread2({
|
8378
8391
|
style: {
|
8379
8392
|
textAlign: 'right',
|
8380
8393
|
marginTop: '10px'
|
@@ -8572,7 +8585,7 @@ var Index$8 = function Index(props) {
|
|
8572
8585
|
|
8573
8586
|
Index$8.defaultProps = {};
|
8574
8587
|
|
8575
|
-
var _excluded$a = ["list", "render", "partSize"];
|
8588
|
+
var _excluded$a = ["list", "render", "none", "partSize"];
|
8576
8589
|
|
8577
8590
|
function AutoScroll(props) {
|
8578
8591
|
var inner1 = useRef();
|
@@ -8654,83 +8667,90 @@ function AutoScroll(props) {
|
|
8654
8667
|
var Index$9 = function Index(_ref) {
|
8655
8668
|
var list = _ref.list,
|
8656
8669
|
render = _ref.render,
|
8670
|
+
none = _ref.none,
|
8657
8671
|
_ref$partSize = _ref.partSize,
|
8658
8672
|
partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
|
8659
8673
|
otherProps = _objectWithoutProperties(_ref, _excluded$a);
|
8660
8674
|
|
8661
|
-
|
8662
|
-
|
8663
|
-
|
8664
|
-
|
8665
|
-
setPatrA = _useState2[1];
|
8675
|
+
var _useState = useState([]),
|
8676
|
+
_useState2 = _slicedToArray(_useState, 2),
|
8677
|
+
partA = _useState2[0],
|
8678
|
+
setPatrA = _useState2[1];
|
8666
8679
|
|
8667
|
-
|
8668
|
-
|
8669
|
-
|
8670
|
-
|
8680
|
+
var _useState3 = useState([]),
|
8681
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
8682
|
+
partB = _useState4[0],
|
8683
|
+
setPatrB = _useState4[1]; // partA在items中的开始索引
|
8671
8684
|
|
8672
8685
|
|
8673
|
-
|
8674
|
-
|
8675
|
-
|
8676
|
-
|
8686
|
+
var _useState5 = useState(0),
|
8687
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
8688
|
+
partAStartIndex = _useState6[0],
|
8689
|
+
setPartAStartIndex = _useState6[1]; // partB在items中的开始索引
|
8677
8690
|
|
8678
8691
|
|
8679
|
-
|
8680
|
-
|
8681
|
-
|
8682
|
-
|
8692
|
+
var _useState7 = useState(partSize),
|
8693
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
8694
|
+
partBStartIndex = _useState8[0],
|
8695
|
+
setPartBStartIndex = _useState8[1];
|
8683
8696
|
|
8684
|
-
|
8697
|
+
var autoRef = useRef(); // 当滚动至一半的位置时,修改partAStartIndex
|
8685
8698
|
|
8686
|
-
|
8687
|
-
|
8688
|
-
|
8699
|
+
var handleHalf = function handleHalf() {
|
8700
|
+
setPartAStartIndex((partBStartIndex + partSize) % list.length);
|
8701
|
+
}; // 当滚动归位时,修改partBStartIndex
|
8689
8702
|
|
8690
8703
|
|
8691
|
-
|
8692
|
-
|
8693
|
-
|
8704
|
+
var handleComplete = function handleComplete() {
|
8705
|
+
setPartBStartIndex((partAStartIndex + partSize) % list.length);
|
8706
|
+
};
|
8694
8707
|
|
8695
|
-
|
8696
|
-
|
8697
|
-
|
8698
|
-
|
8699
|
-
|
8700
|
-
|
8701
|
-
|
8708
|
+
useEffect(function () {
|
8709
|
+
// partA中的数据
|
8710
|
+
if (list.length > partSize) {
|
8711
|
+
setPatrA(list);
|
8712
|
+
} else {
|
8713
|
+
setPatrA(list);
|
8714
|
+
} // partB中的数据
|
8702
8715
|
|
8703
8716
|
|
8704
|
-
|
8705
|
-
|
8706
|
-
|
8707
|
-
|
8708
|
-
|
8717
|
+
if (list.length > partSize) {
|
8718
|
+
setPatrB(list);
|
8719
|
+
} else {
|
8720
|
+
setPatrB([]);
|
8721
|
+
}
|
8709
8722
|
|
8710
|
-
|
8711
|
-
|
8712
|
-
|
8713
|
-
|
8714
|
-
}
|
8715
|
-
}, 0);
|
8716
|
-
}, [list]);
|
8717
|
-
useEffect(function () {
|
8718
|
-
setPartBStartIndex(partAStartIndex + partSize);
|
8719
|
-
}, []);
|
8720
|
-
return /*#__PURE__*/React.createElement(AutoScroll, _objectSpread2({
|
8721
|
-
cref: autoRef,
|
8722
|
-
complete: function complete() {
|
8723
|
-
return handleComplete;
|
8724
|
-
},
|
8725
|
-
half: function half() {
|
8726
|
-
return handleHalf;
|
8723
|
+
setTimeout(function () {
|
8724
|
+
//手动触发执行滚动
|
8725
|
+
if (autoRef.current) {
|
8726
|
+
autoRef.current.tryScroll();
|
8727
8727
|
}
|
8728
|
-
},
|
8729
|
-
|
8730
|
-
|
8731
|
-
|
8732
|
-
|
8733
|
-
|
8728
|
+
}, 0);
|
8729
|
+
}, [list]);
|
8730
|
+
useEffect(function () {
|
8731
|
+
setPartBStartIndex(partAStartIndex + partSize);
|
8732
|
+
}, []);
|
8733
|
+
return list.length > 0 ? /*#__PURE__*/React.createElement(AutoScroll, _objectSpread2({
|
8734
|
+
cref: autoRef,
|
8735
|
+
complete: function complete() {
|
8736
|
+
return handleComplete;
|
8737
|
+
},
|
8738
|
+
half: function half() {
|
8739
|
+
return handleHalf;
|
8740
|
+
}
|
8741
|
+
}, otherProps), partA && partA.map(function (item, index) {
|
8742
|
+
return render(item, index);
|
8743
|
+
}), partB && partB.map(function (item, index) {
|
8744
|
+
return render(item, index);
|
8745
|
+
})) : /*#__PURE__*/React.createElement("div", {
|
8746
|
+
style: {
|
8747
|
+
width: '100%',
|
8748
|
+
height: '100%',
|
8749
|
+
display: 'flex',
|
8750
|
+
justifyContent: 'center',
|
8751
|
+
alignItems: 'center'
|
8752
|
+
}
|
8753
|
+
}, none || '暂无数据');
|
8734
8754
|
};
|
8735
8755
|
|
8736
8756
|
var _excluded$b = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
|
@@ -9699,7 +9719,255 @@ Modal.hidden = function () {
|
|
9699
9719
|
ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
|
9700
9720
|
};
|
9701
9721
|
|
9702
|
-
var
|
9722
|
+
var controlShow$1 = function controlShow(f1, f2, value, timer) {
|
9723
|
+
f1(value);
|
9724
|
+
return setTimeout(function () {
|
9725
|
+
f2(value);
|
9726
|
+
}, timer);
|
9727
|
+
};
|
9728
|
+
|
9729
|
+
function DialogModel$1(props) {
|
9730
|
+
var width = props.width,
|
9731
|
+
visible = props.visible,
|
9732
|
+
closeCb = props.closeCb,
|
9733
|
+
onClose = props.onClose,
|
9734
|
+
_props$className = props.className,
|
9735
|
+
className = _props$className === void 0 ? 'default-dialog' : _props$className,
|
9736
|
+
style = props.style;
|
9737
|
+
|
9738
|
+
var _useState = useState(visible),
|
9739
|
+
_useState2 = _slicedToArray(_useState, 2),
|
9740
|
+
modelShow = _useState2[0],
|
9741
|
+
setModelShow = _useState2[1];
|
9742
|
+
|
9743
|
+
var _useState3 = useState(visible),
|
9744
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
9745
|
+
modelShowAync = _useState4[0],
|
9746
|
+
setModelShowAync = _useState4[1];
|
9747
|
+
|
9748
|
+
var _useState5 = useState(visible),
|
9749
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
9750
|
+
flag = _useState6[0],
|
9751
|
+
setFlag = _useState6[1];
|
9752
|
+
|
9753
|
+
var renderChildren = useMemo(function () {
|
9754
|
+
var _classNames;
|
9755
|
+
|
9756
|
+
return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement("div", {
|
9757
|
+
className: "w100p h100p pa ",
|
9758
|
+
style: {
|
9759
|
+
display: modelShow ? 'block' : 'none',
|
9760
|
+
overflow: 'hidden',
|
9761
|
+
top: 0,
|
9762
|
+
left: 0
|
9763
|
+
}
|
9764
|
+
}, /*#__PURE__*/React.createElement("div", {
|
9765
|
+
className: classnames((_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)),
|
9766
|
+
style: _objectSpread2({
|
9767
|
+
opacity: modelShowAync ? 1 : 0,
|
9768
|
+
width: typeof width == 'number' ? width + 'px' : width
|
9769
|
+
}, style)
|
9770
|
+
}, /*#__PURE__*/React.createElement("div", {
|
9771
|
+
className: 'model_wrap-tips'
|
9772
|
+
}, /*#__PURE__*/React.createElement("div", {
|
9773
|
+
style: {
|
9774
|
+
width: '100%',
|
9775
|
+
height: '100%',
|
9776
|
+
position: 'relative'
|
9777
|
+
}
|
9778
|
+
}, ' ', props.children, ' '))), /*#__PURE__*/React.createElement("div", {
|
9779
|
+
className: 'mask-tips',
|
9780
|
+
onClick: function onClick() {
|
9781
|
+
return onClose && onClose();
|
9782
|
+
},
|
9783
|
+
style: {
|
9784
|
+
opacity: modelShowAync ? 0.6 : 0
|
9785
|
+
}
|
9786
|
+
})), document.body);
|
9787
|
+
}, [modelShowAync, modelShow, props]);
|
9788
|
+
useEffect(function () {
|
9789
|
+
var timer;
|
9790
|
+
setFlag(visible);
|
9791
|
+
|
9792
|
+
if (visible) {
|
9793
|
+
timer = controlShow$1(setModelShow, setModelShowAync, visible, 30);
|
9794
|
+
} else {
|
9795
|
+
timer = controlShow$1(setModelShowAync, setModelShow, visible, 1000);
|
9796
|
+
}
|
9797
|
+
|
9798
|
+
return function () {
|
9799
|
+
timer && clearTimeout(timer);
|
9800
|
+
};
|
9801
|
+
}, [visible]);
|
9802
|
+
useEffect(function () {
|
9803
|
+
!modelShow && typeof closeCb === 'function' && closeCb();
|
9804
|
+
}, [modelShow]);
|
9805
|
+
return renderChildren;
|
9806
|
+
}
|
9807
|
+
|
9808
|
+
var _excluded$f = ["visible"];
|
9809
|
+
|
9810
|
+
var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
9811
|
+
_inherits(Modal, _React$PureComponent);
|
9812
|
+
|
9813
|
+
var _super = _createSuper(Modal);
|
9814
|
+
|
9815
|
+
function Modal() {
|
9816
|
+
var _this;
|
9817
|
+
|
9818
|
+
_classCallCheck(this, Modal);
|
9819
|
+
|
9820
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
9821
|
+
args[_key] = arguments[_key];
|
9822
|
+
}
|
9823
|
+
|
9824
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
9825
|
+
|
9826
|
+
_this.renderFooter = function () {
|
9827
|
+
var _this$props = _this.props,
|
9828
|
+
onOk = _this$props.onOk,
|
9829
|
+
onCancel = _this$props.onCancel,
|
9830
|
+
cancelText = _this$props.cancelText,
|
9831
|
+
okText = _this$props.okText,
|
9832
|
+
footer = _this$props.footer;
|
9833
|
+
if (footer && /*#__PURE__*/React.isValidElement(footer)) return footer;
|
9834
|
+
if (footer === false) return null;
|
9835
|
+
return /*#__PURE__*/React.createElement("div", {
|
9836
|
+
className: "model_bottom-tips"
|
9837
|
+
}, /*#__PURE__*/React.createElement("div", {
|
9838
|
+
className: "model_btn_box",
|
9839
|
+
style: {
|
9840
|
+
display: 'flex'
|
9841
|
+
}
|
9842
|
+
}, /*#__PURE__*/React.createElement(WButton, {
|
9843
|
+
className: "okbtn",
|
9844
|
+
onClick: function onClick(e) {
|
9845
|
+
onOk && onOk(e);
|
9846
|
+
}
|
9847
|
+
}, okText || '确定'), /*#__PURE__*/React.createElement(WButton, {
|
9848
|
+
className: "concellbtn",
|
9849
|
+
style: {
|
9850
|
+
marginLeft: '10px'
|
9851
|
+
},
|
9852
|
+
onClick: function onClick(e) {
|
9853
|
+
onCancel && onCancel(e);
|
9854
|
+
}
|
9855
|
+
}, cancelText || '取消')));
|
9856
|
+
};
|
9857
|
+
|
9858
|
+
_this.renderTop = function () {
|
9859
|
+
var _this$props2 = _this.props,
|
9860
|
+
title = _this$props2.title,
|
9861
|
+
onClose = _this$props2.onClose;
|
9862
|
+
return /*#__PURE__*/React.createElement("div", {
|
9863
|
+
className: "model-header-tips"
|
9864
|
+
}, /*#__PURE__*/React.createElement("div", {
|
9865
|
+
className: "model-title-tips"
|
9866
|
+
}, title), /*#__PURE__*/React.createElement(CloseCircleOutlined, {
|
9867
|
+
className: "model-closeIcon-tips",
|
9868
|
+
onClick: function onClick() {
|
9869
|
+
return onClose && onClose();
|
9870
|
+
}
|
9871
|
+
}));
|
9872
|
+
};
|
9873
|
+
|
9874
|
+
_this.renderContent = function () {
|
9875
|
+
var _this$props3 = _this.props,
|
9876
|
+
content = _this$props3.content,
|
9877
|
+
children = _this$props3.children;
|
9878
|
+
return /*#__PURE__*/React.isValidElement(content) ? content : children ? children : null;
|
9879
|
+
};
|
9880
|
+
|
9881
|
+
return _this;
|
9882
|
+
}
|
9883
|
+
|
9884
|
+
_createClass(Modal, [{
|
9885
|
+
key: "render",
|
9886
|
+
value: function render() {
|
9887
|
+
var _this$props4 = this.props,
|
9888
|
+
visible = _this$props4.visible,
|
9889
|
+
width = _this$props4.width,
|
9890
|
+
closeCb = _this$props4.closeCb,
|
9891
|
+
onClose = _this$props4.onClose,
|
9892
|
+
className = _this$props4.className,
|
9893
|
+
style = _this$props4.style;
|
9894
|
+
return /*#__PURE__*/React.createElement(DialogModel$1, {
|
9895
|
+
closeCb: closeCb,
|
9896
|
+
onClose: onClose,
|
9897
|
+
visible: visible,
|
9898
|
+
width: width,
|
9899
|
+
className: className,
|
9900
|
+
style: style
|
9901
|
+
}, this.renderTop(), /*#__PURE__*/React.createElement("div", {
|
9902
|
+
className: "model-content-tips"
|
9903
|
+
}, this.renderContent()), this.renderFooter());
|
9904
|
+
}
|
9905
|
+
}]);
|
9906
|
+
|
9907
|
+
return Modal;
|
9908
|
+
}(React.PureComponent);
|
9909
|
+
|
9910
|
+
Modal$1.show = void 0;
|
9911
|
+
Modal$1.hidden = void 0;
|
9912
|
+
var ModalContainer$1 = null;
|
9913
|
+
var modelSysbol$1 = Symbol('$$__model__Container_hidden');
|
9914
|
+
|
9915
|
+
Modal$1.show = function (config) {
|
9916
|
+
if (ModalContainer$1) return;
|
9917
|
+
|
9918
|
+
var props = _objectSpread2(_objectSpread2({}, config), {}, {
|
9919
|
+
visible: true
|
9920
|
+
});
|
9921
|
+
|
9922
|
+
var container = ModalContainer$1 = document.createElement('div');
|
9923
|
+
var manager = container[modelSysbol$1] = {
|
9924
|
+
setShow: null,
|
9925
|
+
mounted: false,
|
9926
|
+
hidden: function hidden() {
|
9927
|
+
var setShow = manager.setShow;
|
9928
|
+
setShow && setShow(false);
|
9929
|
+
},
|
9930
|
+
destory: function destory() {
|
9931
|
+
ReactDOM.unmountComponentAtNode(container);
|
9932
|
+
document.body.removeChild(container);
|
9933
|
+
ModalContainer$1 = null;
|
9934
|
+
}
|
9935
|
+
};
|
9936
|
+
|
9937
|
+
var ModelApp = function ModelApp(props) {
|
9938
|
+
var _useState = useState(false),
|
9939
|
+
_useState2 = _slicedToArray(_useState, 2),
|
9940
|
+
show = _useState2[0],
|
9941
|
+
setShow = _useState2[1];
|
9942
|
+
|
9943
|
+
manager.setShow = setShow;
|
9944
|
+
|
9945
|
+
var visible = props.visible,
|
9946
|
+
trueProps = _objectWithoutProperties(props, _excluded$f);
|
9947
|
+
|
9948
|
+
useEffect(function () {
|
9949
|
+
manager.mounted = true;
|
9950
|
+
setShow(visible);
|
9951
|
+
}, []);
|
9952
|
+
return /*#__PURE__*/React.createElement(Modal$1, _objectSpread2(_objectSpread2({}, trueProps), {}, {
|
9953
|
+
closeCb: function closeCb() {
|
9954
|
+
return manager.mounted && manager.destory();
|
9955
|
+
},
|
9956
|
+
visible: show
|
9957
|
+
}));
|
9958
|
+
};
|
9959
|
+
|
9960
|
+
document.body.appendChild(container);
|
9961
|
+
ReactDOM.render( /*#__PURE__*/React.createElement(ModelApp, _objectSpread2({}, props)), container);
|
9962
|
+
return manager;
|
9963
|
+
};
|
9964
|
+
|
9965
|
+
Modal$1.hidden = function () {
|
9966
|
+
if (!ModalContainer$1) return;
|
9967
|
+
ModalContainer$1[modelSysbol$1] && ModalContainer$1[modelSysbol$1].hidden();
|
9968
|
+
};
|
9969
|
+
|
9970
|
+
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange"];
|
9703
9971
|
|
9704
9972
|
var ModalForm = function ModalForm(props, ref) {
|
9705
9973
|
var columns = props.columns,
|
@@ -9713,7 +9981,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
9713
9981
|
title = props.title,
|
9714
9982
|
record = props.record,
|
9715
9983
|
onFormChange = props.onFormChange,
|
9716
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
9984
|
+
extraProps = _objectWithoutProperties(props, _excluded$g);
|
9717
9985
|
|
9718
9986
|
var formRef = useRef(null);
|
9719
9987
|
|
@@ -9844,7 +10112,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
9844
10112
|
|
9845
10113
|
var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
|
9846
10114
|
|
9847
|
-
var _excluded$
|
10115
|
+
var _excluded$h = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig"],
|
9848
10116
|
_excluded2$3 = ["actionMethod"];
|
9849
10117
|
|
9850
10118
|
var TabelCard = function TabelCard(props, ref) {
|
@@ -9860,7 +10128,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
9860
10128
|
onFormChange = props.onFormChange,
|
9861
10129
|
modalConfig = props.modalConfig,
|
9862
10130
|
optionColumnConfig = props.optionColumnConfig,
|
9863
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10131
|
+
extraProps = _objectWithoutProperties(props, _excluded$h);
|
9864
10132
|
|
9865
10133
|
var actionRef = useRef();
|
9866
10134
|
var formRef = useRef(null);
|
@@ -10508,4 +10776,4 @@ var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
|
|
10508
10776
|
this.heartCheck = null;
|
10509
10777
|
});
|
10510
10778
|
|
10511
|
-
export { Index$9 as AutoScroll, Index$b as Breadcrumb, WButton as Button, Index$c as Card, WCascader as Cascader, Index$3 as Checkbox, Index$8 as CountUp, Index$1 as DatePicker, index as IconFont, Index as Input, WInputNumber as InputNumber, Modal, ModalForm$1 as ModalForm, Index$7 as Number, NumericInput, Index$2 as Radio, Index$4 as Select, Index$a as Swiper, WSwitch as Switch, index$1 as TabelCard, Table, Index$6 as TreeSelect, Index$5 as WDatePicker, WForm$1 as WForm, WebsocketHeart };
|
10779
|
+
export { Index$9 as AutoScroll, Index$b as Breadcrumb, WButton as Button, Index$c as Card, WCascader as Cascader, Index$3 as Checkbox, Index$8 as CountUp, Index$1 as DatePicker, index as IconFont, Index as Input, WInputNumber as InputNumber, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, Index$7 as Number, NumericInput, Index$2 as Radio, Index$4 as Select, Index$a as Swiper, WSwitch as Switch, index$1 as TabelCard, Table, Index$6 as TreeSelect, Index$5 as WDatePicker, WForm$1 as WForm, WebsocketHeart };
|