wargerm 0.5.20 → 0.5.21

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.
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function InputGroup({ value, onChange, onClick, ...props }: any): JSX.Element;
package/dist/index.esm.js CHANGED
@@ -10454,7 +10454,9 @@ var ModalForm = function ModalForm(props, ref) {
10454
10454
  var _formRef$current3;
10455
10455
 
10456
10456
  if (formRef === null || formRef === void 0 ? void 0 : (_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldsValue) {
10457
+ resetFields();
10457
10458
  formRef.current.setFieldsValue(record);
10459
+ modalFormOpend && modalFormOpend(record);
10458
10460
  }
10459
10461
  };
10460
10462
 
@@ -10535,11 +10537,9 @@ var ModalForm = function ModalForm(props, ref) {
10535
10537
 
10536
10538
  useEffect(function () {
10537
10539
  if (formIntance) {
10538
- resetFields();
10539
10540
  setFieldsValue(record);
10540
- modalFormOpend && modalFormOpend(record);
10541
10541
  }
10542
- }, [visible, record, formIntance, JSON.stringify(extraColumns)]);
10542
+ }, [visible, record, formIntance]);
10543
10543
  return /*#__PURE__*/React.createElement(_Modal, _objectSpread2(_objectSpread2({
10544
10544
  title: title,
10545
10545
  visible: visible
package/dist/index.js CHANGED
@@ -10514,7 +10514,9 @@ var ModalForm = function ModalForm(props, ref) {
10514
10514
  var _formRef$current3;
10515
10515
 
10516
10516
  if (formRef === null || formRef === void 0 ? void 0 : (_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldsValue) {
10517
+ resetFields();
10517
10518
  formRef.current.setFieldsValue(record);
10519
+ modalFormOpend && modalFormOpend(record);
10518
10520
  }
10519
10521
  };
10520
10522
 
@@ -10595,11 +10597,9 @@ var ModalForm = function ModalForm(props, ref) {
10595
10597
 
10596
10598
  React.useEffect(function () {
10597
10599
  if (formIntance) {
10598
- resetFields();
10599
10600
  setFieldsValue(record);
10600
- modalFormOpend && modalFormOpend(record);
10601
10601
  }
10602
- }, [visible, record, formIntance, JSON.stringify(extraColumns)]);
10602
+ }, [visible, record, formIntance]);
10603
10603
  return /*#__PURE__*/React__default['default'].createElement(_Modal__default['default'], _objectSpread2(_objectSpread2({
10604
10604
  title: title,
10605
10605
  visible: visible
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.5.20",
4
+ "version": "0.5.21",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",