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.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) || [])),
|
@@ -8025,12 +8026,16 @@ function Table(_ref) {
|
|
8025
8026
|
return arr;
|
8026
8027
|
};
|
8027
8028
|
|
8028
|
-
var filterFormColumns =
|
8029
|
-
return
|
8030
|
-
|
8031
|
-
|
8032
|
-
|
8033
|
-
|
8029
|
+
var filterFormColumns = React.useMemo(function () {
|
8030
|
+
return flattenColumns(columns).filter(function (c) {
|
8031
|
+
return !c.hideInSearch;
|
8032
|
+
});
|
8033
|
+
}, [columns]);
|
8034
|
+
var filterColumns = React.useMemo(function () {
|
8035
|
+
return flattenColumns(columns).filter(function (c) {
|
8036
|
+
return !c.hideInTable;
|
8037
|
+
});
|
8038
|
+
}, [columns]);
|
8034
8039
|
var renderTh = React.useMemo(function () {
|
8035
8040
|
var renderThFc = function renderThFc(columns, parentHeight, isChild) {
|
8036
8041
|
var showColumns = columns.filter(function (c) {
|
@@ -8323,7 +8328,7 @@ function Table(_ref) {
|
|
8323
8328
|
}
|
8324
8329
|
}, _callee);
|
8325
8330
|
}))();
|
8326
|
-
}, [params, pageParams, pagination, tableList, formSearch]);
|
8331
|
+
}, [params, pageParams, pagination, tableList, formSearch, columns]);
|
8327
8332
|
|
8328
8333
|
var onFormSubmit = function onFormSubmit(values) {
|
8329
8334
|
onSubmit && onSubmit(values);
|
@@ -8399,7 +8404,7 @@ function Table(_ref) {
|
|
8399
8404
|
style: _objectSpread2({
|
8400
8405
|
height: (style === null || style === void 0 ? void 0 : style.height) ? "calc(".concat(style.height, " - ").concat(52 + (pagination === false ? 0 : 42), "px)") : '200px'
|
8401
8406
|
}, tbodyStyle)
|
8402
|
-
}, dataSource.map(function (record, index) {
|
8407
|
+
}, dataSource.length > 0 ? dataSource.map(function (record, index) {
|
8403
8408
|
var key = typeof rowKey === 'function' ? record[rowKey(record)] : record[rowKey];
|
8404
8409
|
return frameBoxTable ? /*#__PURE__*/React__default['default'].createElement(FrameBox, {
|
8405
8410
|
key: key,
|
@@ -8408,7 +8413,15 @@ function Table(_ref) {
|
|
8408
8413
|
width: '100%'
|
8409
8414
|
}
|
8410
8415
|
}, renderTr(record, index, key)) : renderTr(record, index, key);
|
8411
|
-
})
|
8416
|
+
}) : /*#__PURE__*/React__default['default'].createElement("div", {
|
8417
|
+
style: {
|
8418
|
+
width: '100%',
|
8419
|
+
height: '100%',
|
8420
|
+
display: 'flex',
|
8421
|
+
justifyContent: 'center',
|
8422
|
+
alignItems: 'center'
|
8423
|
+
}
|
8424
|
+
}, none || '暂无数据')), _typeof(pagination) === 'object' && /*#__PURE__*/React__default['default'].createElement(_Pagination__default['default'], _objectSpread2({
|
8412
8425
|
style: {
|
8413
8426
|
textAlign: 'right',
|
8414
8427
|
marginTop: '10px'
|
@@ -8606,7 +8619,7 @@ var Index$8 = function Index(props) {
|
|
8606
8619
|
|
8607
8620
|
Index$8.defaultProps = {};
|
8608
8621
|
|
8609
|
-
var _excluded$a = ["list", "render", "partSize"];
|
8622
|
+
var _excluded$a = ["list", "render", "none", "partSize"];
|
8610
8623
|
|
8611
8624
|
function AutoScroll(props) {
|
8612
8625
|
var inner1 = React.useRef();
|
@@ -8688,83 +8701,90 @@ function AutoScroll(props) {
|
|
8688
8701
|
var Index$9 = function Index(_ref) {
|
8689
8702
|
var list = _ref.list,
|
8690
8703
|
render = _ref.render,
|
8704
|
+
none = _ref.none,
|
8691
8705
|
_ref$partSize = _ref.partSize,
|
8692
8706
|
partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
|
8693
8707
|
otherProps = _objectWithoutProperties(_ref, _excluded$a);
|
8694
8708
|
|
8695
|
-
|
8696
|
-
|
8697
|
-
|
8698
|
-
|
8699
|
-
setPatrA = _useState2[1];
|
8709
|
+
var _useState = React.useState([]),
|
8710
|
+
_useState2 = _slicedToArray(_useState, 2),
|
8711
|
+
partA = _useState2[0],
|
8712
|
+
setPatrA = _useState2[1];
|
8700
8713
|
|
8701
|
-
|
8702
|
-
|
8703
|
-
|
8704
|
-
|
8714
|
+
var _useState3 = React.useState([]),
|
8715
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
8716
|
+
partB = _useState4[0],
|
8717
|
+
setPatrB = _useState4[1]; // partA在items中的开始索引
|
8705
8718
|
|
8706
8719
|
|
8707
|
-
|
8708
|
-
|
8709
|
-
|
8710
|
-
|
8720
|
+
var _useState5 = React.useState(0),
|
8721
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
8722
|
+
partAStartIndex = _useState6[0],
|
8723
|
+
setPartAStartIndex = _useState6[1]; // partB在items中的开始索引
|
8711
8724
|
|
8712
8725
|
|
8713
|
-
|
8714
|
-
|
8715
|
-
|
8716
|
-
|
8726
|
+
var _useState7 = React.useState(partSize),
|
8727
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
8728
|
+
partBStartIndex = _useState8[0],
|
8729
|
+
setPartBStartIndex = _useState8[1];
|
8717
8730
|
|
8718
|
-
|
8731
|
+
var autoRef = React.useRef(); // 当滚动至一半的位置时,修改partAStartIndex
|
8719
8732
|
|
8720
|
-
|
8721
|
-
|
8722
|
-
|
8733
|
+
var handleHalf = function handleHalf() {
|
8734
|
+
setPartAStartIndex((partBStartIndex + partSize) % list.length);
|
8735
|
+
}; // 当滚动归位时,修改partBStartIndex
|
8723
8736
|
|
8724
8737
|
|
8725
|
-
|
8726
|
-
|
8727
|
-
|
8738
|
+
var handleComplete = function handleComplete() {
|
8739
|
+
setPartBStartIndex((partAStartIndex + partSize) % list.length);
|
8740
|
+
};
|
8728
8741
|
|
8729
|
-
|
8730
|
-
|
8731
|
-
|
8732
|
-
|
8733
|
-
|
8734
|
-
|
8735
|
-
|
8742
|
+
React.useEffect(function () {
|
8743
|
+
// partA中的数据
|
8744
|
+
if (list.length > partSize) {
|
8745
|
+
setPatrA(list);
|
8746
|
+
} else {
|
8747
|
+
setPatrA(list);
|
8748
|
+
} // partB中的数据
|
8736
8749
|
|
8737
8750
|
|
8738
|
-
|
8739
|
-
|
8740
|
-
|
8741
|
-
|
8742
|
-
|
8751
|
+
if (list.length > partSize) {
|
8752
|
+
setPatrB(list);
|
8753
|
+
} else {
|
8754
|
+
setPatrB([]);
|
8755
|
+
}
|
8743
8756
|
|
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;
|
8757
|
+
setTimeout(function () {
|
8758
|
+
//手动触发执行滚动
|
8759
|
+
if (autoRef.current) {
|
8760
|
+
autoRef.current.tryScroll();
|
8761
8761
|
}
|
8762
|
-
},
|
8763
|
-
|
8764
|
-
|
8765
|
-
|
8766
|
-
|
8767
|
-
|
8762
|
+
}, 0);
|
8763
|
+
}, [list]);
|
8764
|
+
React.useEffect(function () {
|
8765
|
+
setPartBStartIndex(partAStartIndex + partSize);
|
8766
|
+
}, []);
|
8767
|
+
return list.length > 0 ? /*#__PURE__*/React__default['default'].createElement(AutoScroll, _objectSpread2({
|
8768
|
+
cref: autoRef,
|
8769
|
+
complete: function complete() {
|
8770
|
+
return handleComplete;
|
8771
|
+
},
|
8772
|
+
half: function half() {
|
8773
|
+
return handleHalf;
|
8774
|
+
}
|
8775
|
+
}, otherProps), partA && partA.map(function (item, index) {
|
8776
|
+
return render(item, index);
|
8777
|
+
}), partB && partB.map(function (item, index) {
|
8778
|
+
return render(item, index);
|
8779
|
+
})) : /*#__PURE__*/React__default['default'].createElement("div", {
|
8780
|
+
style: {
|
8781
|
+
width: '100%',
|
8782
|
+
height: '100%',
|
8783
|
+
display: 'flex',
|
8784
|
+
justifyContent: 'center',
|
8785
|
+
alignItems: 'center'
|
8786
|
+
}
|
8787
|
+
}, none || '暂无数据');
|
8768
8788
|
};
|
8769
8789
|
|
8770
8790
|
var _excluded$b = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
|
@@ -9733,7 +9753,255 @@ Modal.hidden = function () {
|
|
9733
9753
|
ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
|
9734
9754
|
};
|
9735
9755
|
|
9736
|
-
var
|
9756
|
+
var controlShow$1 = function controlShow(f1, f2, value, timer) {
|
9757
|
+
f1(value);
|
9758
|
+
return setTimeout(function () {
|
9759
|
+
f2(value);
|
9760
|
+
}, timer);
|
9761
|
+
};
|
9762
|
+
|
9763
|
+
function DialogModel$1(props) {
|
9764
|
+
var width = props.width,
|
9765
|
+
visible = props.visible,
|
9766
|
+
closeCb = props.closeCb,
|
9767
|
+
onClose = props.onClose,
|
9768
|
+
_props$className = props.className,
|
9769
|
+
className = _props$className === void 0 ? 'default-dialog' : _props$className,
|
9770
|
+
style = props.style;
|
9771
|
+
|
9772
|
+
var _useState = React.useState(visible),
|
9773
|
+
_useState2 = _slicedToArray(_useState, 2),
|
9774
|
+
modelShow = _useState2[0],
|
9775
|
+
setModelShow = _useState2[1];
|
9776
|
+
|
9777
|
+
var _useState3 = React.useState(visible),
|
9778
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
9779
|
+
modelShowAync = _useState4[0],
|
9780
|
+
setModelShowAync = _useState4[1];
|
9781
|
+
|
9782
|
+
var _useState5 = React.useState(visible),
|
9783
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
9784
|
+
flag = _useState6[0],
|
9785
|
+
setFlag = _useState6[1];
|
9786
|
+
|
9787
|
+
var renderChildren = React.useMemo(function () {
|
9788
|
+
var _classNames;
|
9789
|
+
|
9790
|
+
return /*#__PURE__*/ReactDOM__default['default'].createPortal( /*#__PURE__*/React__default['default'].createElement("div", {
|
9791
|
+
className: "w100p h100p pa ",
|
9792
|
+
style: {
|
9793
|
+
display: modelShow ? 'block' : 'none',
|
9794
|
+
overflow: 'hidden',
|
9795
|
+
top: 0,
|
9796
|
+
left: 0
|
9797
|
+
}
|
9798
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
9799
|
+
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)),
|
9800
|
+
style: _objectSpread2({
|
9801
|
+
opacity: modelShowAync ? 1 : 0,
|
9802
|
+
width: typeof width == 'number' ? width + 'px' : width
|
9803
|
+
}, style)
|
9804
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
9805
|
+
className: 'model_wrap-tips'
|
9806
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
9807
|
+
style: {
|
9808
|
+
width: '100%',
|
9809
|
+
height: '100%',
|
9810
|
+
position: 'relative'
|
9811
|
+
}
|
9812
|
+
}, ' ', props.children, ' '))), /*#__PURE__*/React__default['default'].createElement("div", {
|
9813
|
+
className: 'mask-tips',
|
9814
|
+
onClick: function onClick() {
|
9815
|
+
return onClose && onClose();
|
9816
|
+
},
|
9817
|
+
style: {
|
9818
|
+
opacity: modelShowAync ? 0.6 : 0
|
9819
|
+
}
|
9820
|
+
})), document.body);
|
9821
|
+
}, [modelShowAync, modelShow, props]);
|
9822
|
+
React.useEffect(function () {
|
9823
|
+
var timer;
|
9824
|
+
setFlag(visible);
|
9825
|
+
|
9826
|
+
if (visible) {
|
9827
|
+
timer = controlShow$1(setModelShow, setModelShowAync, visible, 30);
|
9828
|
+
} else {
|
9829
|
+
timer = controlShow$1(setModelShowAync, setModelShow, visible, 1000);
|
9830
|
+
}
|
9831
|
+
|
9832
|
+
return function () {
|
9833
|
+
timer && clearTimeout(timer);
|
9834
|
+
};
|
9835
|
+
}, [visible]);
|
9836
|
+
React.useEffect(function () {
|
9837
|
+
!modelShow && typeof closeCb === 'function' && closeCb();
|
9838
|
+
}, [modelShow]);
|
9839
|
+
return renderChildren;
|
9840
|
+
}
|
9841
|
+
|
9842
|
+
var _excluded$f = ["visible"];
|
9843
|
+
|
9844
|
+
var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
9845
|
+
_inherits(Modal, _React$PureComponent);
|
9846
|
+
|
9847
|
+
var _super = _createSuper(Modal);
|
9848
|
+
|
9849
|
+
function Modal() {
|
9850
|
+
var _this;
|
9851
|
+
|
9852
|
+
_classCallCheck(this, Modal);
|
9853
|
+
|
9854
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
9855
|
+
args[_key] = arguments[_key];
|
9856
|
+
}
|
9857
|
+
|
9858
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
9859
|
+
|
9860
|
+
_this.renderFooter = function () {
|
9861
|
+
var _this$props = _this.props,
|
9862
|
+
onOk = _this$props.onOk,
|
9863
|
+
onCancel = _this$props.onCancel,
|
9864
|
+
cancelText = _this$props.cancelText,
|
9865
|
+
okText = _this$props.okText,
|
9866
|
+
footer = _this$props.footer;
|
9867
|
+
if (footer && /*#__PURE__*/React__default['default'].isValidElement(footer)) return footer;
|
9868
|
+
if (footer === false) return null;
|
9869
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
9870
|
+
className: "model_bottom-tips"
|
9871
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
9872
|
+
className: "model_btn_box",
|
9873
|
+
style: {
|
9874
|
+
display: 'flex'
|
9875
|
+
}
|
9876
|
+
}, /*#__PURE__*/React__default['default'].createElement(WButton, {
|
9877
|
+
className: "okbtn",
|
9878
|
+
onClick: function onClick(e) {
|
9879
|
+
onOk && onOk(e);
|
9880
|
+
}
|
9881
|
+
}, okText || '确定'), /*#__PURE__*/React__default['default'].createElement(WButton, {
|
9882
|
+
className: "concellbtn",
|
9883
|
+
style: {
|
9884
|
+
marginLeft: '10px'
|
9885
|
+
},
|
9886
|
+
onClick: function onClick(e) {
|
9887
|
+
onCancel && onCancel(e);
|
9888
|
+
}
|
9889
|
+
}, cancelText || '取消')));
|
9890
|
+
};
|
9891
|
+
|
9892
|
+
_this.renderTop = function () {
|
9893
|
+
var _this$props2 = _this.props,
|
9894
|
+
title = _this$props2.title,
|
9895
|
+
onClose = _this$props2.onClose;
|
9896
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
9897
|
+
className: "model-header-tips"
|
9898
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
9899
|
+
className: "model-title-tips"
|
9900
|
+
}, title), /*#__PURE__*/React__default['default'].createElement(icons.CloseCircleOutlined, {
|
9901
|
+
className: "model-closeIcon-tips",
|
9902
|
+
onClick: function onClick() {
|
9903
|
+
return onClose && onClose();
|
9904
|
+
}
|
9905
|
+
}));
|
9906
|
+
};
|
9907
|
+
|
9908
|
+
_this.renderContent = function () {
|
9909
|
+
var _this$props3 = _this.props,
|
9910
|
+
content = _this$props3.content,
|
9911
|
+
children = _this$props3.children;
|
9912
|
+
return /*#__PURE__*/React__default['default'].isValidElement(content) ? content : children ? children : null;
|
9913
|
+
};
|
9914
|
+
|
9915
|
+
return _this;
|
9916
|
+
}
|
9917
|
+
|
9918
|
+
_createClass(Modal, [{
|
9919
|
+
key: "render",
|
9920
|
+
value: function render() {
|
9921
|
+
var _this$props4 = this.props,
|
9922
|
+
visible = _this$props4.visible,
|
9923
|
+
width = _this$props4.width,
|
9924
|
+
closeCb = _this$props4.closeCb,
|
9925
|
+
onClose = _this$props4.onClose,
|
9926
|
+
className = _this$props4.className,
|
9927
|
+
style = _this$props4.style;
|
9928
|
+
return /*#__PURE__*/React__default['default'].createElement(DialogModel$1, {
|
9929
|
+
closeCb: closeCb,
|
9930
|
+
onClose: onClose,
|
9931
|
+
visible: visible,
|
9932
|
+
width: width,
|
9933
|
+
className: className,
|
9934
|
+
style: style
|
9935
|
+
}, this.renderTop(), /*#__PURE__*/React__default['default'].createElement("div", {
|
9936
|
+
className: "model-content-tips"
|
9937
|
+
}, this.renderContent()), this.renderFooter());
|
9938
|
+
}
|
9939
|
+
}]);
|
9940
|
+
|
9941
|
+
return Modal;
|
9942
|
+
}(React__default['default'].PureComponent);
|
9943
|
+
|
9944
|
+
Modal$1.show = void 0;
|
9945
|
+
Modal$1.hidden = void 0;
|
9946
|
+
var ModalContainer$1 = null;
|
9947
|
+
var modelSysbol$1 = Symbol('$$__model__Container_hidden');
|
9948
|
+
|
9949
|
+
Modal$1.show = function (config) {
|
9950
|
+
if (ModalContainer$1) return;
|
9951
|
+
|
9952
|
+
var props = _objectSpread2(_objectSpread2({}, config), {}, {
|
9953
|
+
visible: true
|
9954
|
+
});
|
9955
|
+
|
9956
|
+
var container = ModalContainer$1 = document.createElement('div');
|
9957
|
+
var manager = container[modelSysbol$1] = {
|
9958
|
+
setShow: null,
|
9959
|
+
mounted: false,
|
9960
|
+
hidden: function hidden() {
|
9961
|
+
var setShow = manager.setShow;
|
9962
|
+
setShow && setShow(false);
|
9963
|
+
},
|
9964
|
+
destory: function destory() {
|
9965
|
+
ReactDOM__default['default'].unmountComponentAtNode(container);
|
9966
|
+
document.body.removeChild(container);
|
9967
|
+
ModalContainer$1 = null;
|
9968
|
+
}
|
9969
|
+
};
|
9970
|
+
|
9971
|
+
var ModelApp = function ModelApp(props) {
|
9972
|
+
var _useState = React.useState(false),
|
9973
|
+
_useState2 = _slicedToArray(_useState, 2),
|
9974
|
+
show = _useState2[0],
|
9975
|
+
setShow = _useState2[1];
|
9976
|
+
|
9977
|
+
manager.setShow = setShow;
|
9978
|
+
|
9979
|
+
var visible = props.visible,
|
9980
|
+
trueProps = _objectWithoutProperties(props, _excluded$f);
|
9981
|
+
|
9982
|
+
React.useEffect(function () {
|
9983
|
+
manager.mounted = true;
|
9984
|
+
setShow(visible);
|
9985
|
+
}, []);
|
9986
|
+
return /*#__PURE__*/React__default['default'].createElement(Modal$1, _objectSpread2(_objectSpread2({}, trueProps), {}, {
|
9987
|
+
closeCb: function closeCb() {
|
9988
|
+
return manager.mounted && manager.destory();
|
9989
|
+
},
|
9990
|
+
visible: show
|
9991
|
+
}));
|
9992
|
+
};
|
9993
|
+
|
9994
|
+
document.body.appendChild(container);
|
9995
|
+
ReactDOM__default['default'].render( /*#__PURE__*/React__default['default'].createElement(ModelApp, _objectSpread2({}, props)), container);
|
9996
|
+
return manager;
|
9997
|
+
};
|
9998
|
+
|
9999
|
+
Modal$1.hidden = function () {
|
10000
|
+
if (!ModalContainer$1) return;
|
10001
|
+
ModalContainer$1[modelSysbol$1] && ModalContainer$1[modelSysbol$1].hidden();
|
10002
|
+
};
|
10003
|
+
|
10004
|
+
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange"];
|
9737
10005
|
|
9738
10006
|
var ModalForm = function ModalForm(props, ref) {
|
9739
10007
|
var columns = props.columns,
|
@@ -9747,7 +10015,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
9747
10015
|
title = props.title,
|
9748
10016
|
record = props.record,
|
9749
10017
|
onFormChange = props.onFormChange,
|
9750
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10018
|
+
extraProps = _objectWithoutProperties(props, _excluded$g);
|
9751
10019
|
|
9752
10020
|
var formRef = React.useRef(null);
|
9753
10021
|
|
@@ -9878,7 +10146,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
9878
10146
|
|
9879
10147
|
var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
|
9880
10148
|
|
9881
|
-
var _excluded$
|
10149
|
+
var _excluded$h = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig"],
|
9882
10150
|
_excluded2$3 = ["actionMethod"];
|
9883
10151
|
|
9884
10152
|
var TabelCard = function TabelCard(props, ref) {
|
@@ -9894,7 +10162,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
9894
10162
|
onFormChange = props.onFormChange,
|
9895
10163
|
modalConfig = props.modalConfig,
|
9896
10164
|
optionColumnConfig = props.optionColumnConfig,
|
9897
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10165
|
+
extraProps = _objectWithoutProperties(props, _excluded$h);
|
9898
10166
|
|
9899
10167
|
var actionRef = React.useRef();
|
9900
10168
|
var formRef = React.useRef(null);
|
@@ -10555,6 +10823,7 @@ exports.Input = Index;
|
|
10555
10823
|
exports.InputNumber = WInputNumber;
|
10556
10824
|
exports.Modal = Modal;
|
10557
10825
|
exports.ModalForm = ModalForm$1;
|
10826
|
+
exports.ModalTips = Modal$1;
|
10558
10827
|
exports.Number = Index$7;
|
10559
10828
|
exports.NumericInput = NumericInput;
|
10560
10829
|
exports.Radio = Index$2;
|