wargerm 0.4.29 → 0.4.30
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/index.esm.js +10 -3
- package/dist/index.js +10 -3
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
@@ -10321,7 +10321,7 @@ Modal$1.hidden = function () {
|
|
10321
10321
|
ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
|
10322
10322
|
};
|
10323
10323
|
|
10324
|
-
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange"];
|
10324
|
+
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild"];
|
10325
10325
|
|
10326
10326
|
var ModalForm = function ModalForm(props, ref) {
|
10327
10327
|
var columns = props.columns,
|
@@ -10335,6 +10335,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10335
10335
|
title = props.title,
|
10336
10336
|
record = props.record,
|
10337
10337
|
onFormChange = props.onFormChange,
|
10338
|
+
formItemChild = props.formItemChild,
|
10338
10339
|
extraProps = _objectWithoutProperties(props, _excluded$g);
|
10339
10340
|
|
10340
10341
|
var formRef = useRef(null);
|
@@ -10461,7 +10462,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10461
10462
|
search: search,
|
10462
10463
|
columns: columns,
|
10463
10464
|
extraColumns: extraColumns
|
10464
|
-
}));
|
10465
|
+
}), title == '查看' && formItemChild ? formItemChild() : null);
|
10465
10466
|
};
|
10466
10467
|
|
10467
10468
|
var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
|
@@ -10541,7 +10542,12 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10541
10542
|
|
10542
10543
|
return modalOnOk;
|
10543
10544
|
}(),
|
10544
|
-
index: index
|
10545
|
+
index: index,
|
10546
|
+
formItemChild: function formItemChild() {
|
10547
|
+
var _item$formItemChild;
|
10548
|
+
|
10549
|
+
return item === null || item === void 0 ? void 0 : (_item$formItemChild = item.formItemChild) === null || _item$formItemChild === void 0 ? void 0 : _item$formItemChild.call(item, record, actionRef, index);
|
10550
|
+
}
|
10545
10551
|
});
|
10546
10552
|
},
|
10547
10553
|
edit: function edit(item, record, index) {
|
@@ -10853,6 +10859,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10853
10859
|
title: modalFormConfig.type || '新增',
|
10854
10860
|
visible: visible,
|
10855
10861
|
record: modalFormConfig.record,
|
10862
|
+
formItemChild: modalFormConfig.formItemChild,
|
10856
10863
|
disabled: modalFormConfig.type == '查看',
|
10857
10864
|
setVisible: setVisible,
|
10858
10865
|
submitMethod: function () {
|
package/dist/index.js
CHANGED
@@ -10380,7 +10380,7 @@ Modal$1.hidden = function () {
|
|
10380
10380
|
ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
|
10381
10381
|
};
|
10382
10382
|
|
10383
|
-
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange"];
|
10383
|
+
var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild"];
|
10384
10384
|
|
10385
10385
|
var ModalForm = function ModalForm(props, ref) {
|
10386
10386
|
var columns = props.columns,
|
@@ -10394,6 +10394,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10394
10394
|
title = props.title,
|
10395
10395
|
record = props.record,
|
10396
10396
|
onFormChange = props.onFormChange,
|
10397
|
+
formItemChild = props.formItemChild,
|
10397
10398
|
extraProps = _objectWithoutProperties(props, _excluded$g);
|
10398
10399
|
|
10399
10400
|
var formRef = React.useRef(null);
|
@@ -10520,7 +10521,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10520
10521
|
search: search,
|
10521
10522
|
columns: columns,
|
10522
10523
|
extraColumns: extraColumns
|
10523
|
-
}));
|
10524
|
+
}), title == '查看' && formItemChild ? formItemChild() : null);
|
10524
10525
|
};
|
10525
10526
|
|
10526
10527
|
var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
|
@@ -10600,7 +10601,12 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10600
10601
|
|
10601
10602
|
return modalOnOk;
|
10602
10603
|
}(),
|
10603
|
-
index: index
|
10604
|
+
index: index,
|
10605
|
+
formItemChild: function formItemChild() {
|
10606
|
+
var _item$formItemChild;
|
10607
|
+
|
10608
|
+
return item === null || item === void 0 ? void 0 : (_item$formItemChild = item.formItemChild) === null || _item$formItemChild === void 0 ? void 0 : _item$formItemChild.call(item, record, actionRef, index);
|
10609
|
+
}
|
10604
10610
|
});
|
10605
10611
|
},
|
10606
10612
|
edit: function edit(item, record, index) {
|
@@ -10912,6 +10918,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10912
10918
|
title: modalFormConfig.type || '新增',
|
10913
10919
|
visible: visible,
|
10914
10920
|
record: modalFormConfig.record,
|
10921
|
+
formItemChild: modalFormConfig.formItemChild,
|
10915
10922
|
disabled: modalFormConfig.type == '查看',
|
10916
10923
|
setVisible: setVisible,
|
10917
10924
|
submitMethod: function () {
|
package/package.json
CHANGED