wargerm 0.4.15 → 0.4.16

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 CHANGED
@@ -9804,6 +9804,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
9804
9804
  var _this$props2 = _this.props,
9805
9805
  title = _this$props2.title,
9806
9806
  onClose = _this$props2.onClose,
9807
+ closeCb = _this$props2.closeCb,
9807
9808
  isDrag = _this$props2.isDrag;
9808
9809
  return /*#__PURE__*/React.createElement("div", {
9809
9810
  className: "model-header"
@@ -9813,7 +9814,8 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
9813
9814
  }, title), /*#__PURE__*/React.createElement(CloseCircleOutlined, {
9814
9815
  className: "model-closeIcon",
9815
9816
  onClick: function onClick() {
9816
- return onClose && onClose();
9817
+ onClose && onClose();
9818
+ closeCb && closeCb();
9817
9819
  }
9818
9820
  }));
9819
9821
  };
@@ -9890,10 +9892,10 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
9890
9892
 
9891
9893
  Modal.show = void 0;
9892
9894
  Modal.hidden = void 0;
9893
- var ModalContainer = null;
9894
- var modelSysbol = Symbol('$$__model__Container_hidden');
9895
9895
 
9896
9896
  Modal.show = function (config) {
9897
+ var ModalContainer = null;
9898
+ var modelSysbol = Symbol('$$__model__Container_hidden');
9897
9899
  if (ModalContainer) return;
9898
9900
 
9899
9901
  var props = _objectSpread2(_objectSpread2({}, config), {}, {
@@ -9943,9 +9945,8 @@ Modal.show = function (config) {
9943
9945
  return manager;
9944
9946
  };
9945
9947
 
9946
- Modal.hidden = function () {
9947
- if (!ModalContainer) return;
9948
- ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
9948
+ Modal.hidden = function () {// if (!ModalContainer) return;
9949
+ // ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
9949
9950
  };
9950
9951
 
9951
9952
  var controlShow$1 = function controlShow(f1, f2, value, timer) {
@@ -10140,18 +10141,18 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
10140
10141
 
10141
10142
  Modal$1.show = void 0;
10142
10143
  Modal$1.hidden = void 0;
10143
- var ModalContainer$1 = null;
10144
- var modelSysbol$1 = Symbol('$$__model__Container_hidden');
10144
+ var ModalContainer = null;
10145
+ var modelSysbol = Symbol('$$__model__Container_hidden');
10145
10146
 
10146
10147
  Modal$1.show = function (config) {
10147
- if (ModalContainer$1) return;
10148
+ if (ModalContainer) return;
10148
10149
 
10149
10150
  var props = _objectSpread2(_objectSpread2({}, config), {}, {
10150
10151
  visible: true
10151
10152
  });
10152
10153
 
10153
- var container = ModalContainer$1 = document.createElement('div');
10154
- var manager = container[modelSysbol$1] = {
10154
+ var container = ModalContainer = document.createElement('div');
10155
+ var manager = container[modelSysbol] = {
10155
10156
  setShow: null,
10156
10157
  mounted: false,
10157
10158
  hidden: function hidden() {
@@ -10161,7 +10162,7 @@ Modal$1.show = function (config) {
10161
10162
  destory: function destory() {
10162
10163
  ReactDOM.unmountComponentAtNode(container);
10163
10164
  document.body.removeChild(container);
10164
- ModalContainer$1 = null;
10165
+ ModalContainer = null;
10165
10166
  }
10166
10167
  };
10167
10168
 
@@ -10194,8 +10195,8 @@ Modal$1.show = function (config) {
10194
10195
  };
10195
10196
 
10196
10197
  Modal$1.hidden = function () {
10197
- if (!ModalContainer$1) return;
10198
- ModalContainer$1[modelSysbol$1] && ModalContainer$1[modelSysbol$1].hidden();
10198
+ if (!ModalContainer) return;
10199
+ ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
10199
10200
  };
10200
10201
 
10201
10202
  var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange"];
package/dist/index.js CHANGED
@@ -9842,6 +9842,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
9842
9842
  var _this$props2 = _this.props,
9843
9843
  title = _this$props2.title,
9844
9844
  onClose = _this$props2.onClose,
9845
+ closeCb = _this$props2.closeCb,
9845
9846
  isDrag = _this$props2.isDrag;
9846
9847
  return /*#__PURE__*/React__default['default'].createElement("div", {
9847
9848
  className: "model-header"
@@ -9851,7 +9852,8 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
9851
9852
  }, title), /*#__PURE__*/React__default['default'].createElement(icons.CloseCircleOutlined, {
9852
9853
  className: "model-closeIcon",
9853
9854
  onClick: function onClick() {
9854
- return onClose && onClose();
9855
+ onClose && onClose();
9856
+ closeCb && closeCb();
9855
9857
  }
9856
9858
  }));
9857
9859
  };
@@ -9928,10 +9930,10 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
9928
9930
 
9929
9931
  Modal.show = void 0;
9930
9932
  Modal.hidden = void 0;
9931
- var ModalContainer = null;
9932
- var modelSysbol = Symbol('$$__model__Container_hidden');
9933
9933
 
9934
9934
  Modal.show = function (config) {
9935
+ var ModalContainer = null;
9936
+ var modelSysbol = Symbol('$$__model__Container_hidden');
9935
9937
  if (ModalContainer) return;
9936
9938
 
9937
9939
  var props = _objectSpread2(_objectSpread2({}, config), {}, {
@@ -9981,9 +9983,8 @@ Modal.show = function (config) {
9981
9983
  return manager;
9982
9984
  };
9983
9985
 
9984
- Modal.hidden = function () {
9985
- if (!ModalContainer) return;
9986
- ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
9986
+ Modal.hidden = function () {// if (!ModalContainer) return;
9987
+ // ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
9987
9988
  };
9988
9989
 
9989
9990
  var controlShow$1 = function controlShow(f1, f2, value, timer) {
@@ -10178,18 +10179,18 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
10178
10179
 
10179
10180
  Modal$1.show = void 0;
10180
10181
  Modal$1.hidden = void 0;
10181
- var ModalContainer$1 = null;
10182
- var modelSysbol$1 = Symbol('$$__model__Container_hidden');
10182
+ var ModalContainer = null;
10183
+ var modelSysbol = Symbol('$$__model__Container_hidden');
10183
10184
 
10184
10185
  Modal$1.show = function (config) {
10185
- if (ModalContainer$1) return;
10186
+ if (ModalContainer) return;
10186
10187
 
10187
10188
  var props = _objectSpread2(_objectSpread2({}, config), {}, {
10188
10189
  visible: true
10189
10190
  });
10190
10191
 
10191
- var container = ModalContainer$1 = document.createElement('div');
10192
- var manager = container[modelSysbol$1] = {
10192
+ var container = ModalContainer = document.createElement('div');
10193
+ var manager = container[modelSysbol] = {
10193
10194
  setShow: null,
10194
10195
  mounted: false,
10195
10196
  hidden: function hidden() {
@@ -10199,7 +10200,7 @@ Modal$1.show = function (config) {
10199
10200
  destory: function destory() {
10200
10201
  ReactDOM__default['default'].unmountComponentAtNode(container);
10201
10202
  document.body.removeChild(container);
10202
- ModalContainer$1 = null;
10203
+ ModalContainer = null;
10203
10204
  }
10204
10205
  };
10205
10206
 
@@ -10232,8 +10233,8 @@ Modal$1.show = function (config) {
10232
10233
  };
10233
10234
 
10234
10235
  Modal$1.hidden = function () {
10235
- if (!ModalContainer$1) return;
10236
- ModalContainer$1[modelSysbol$1] && ModalContainer$1[modelSysbol$1].hidden();
10236
+ if (!ModalContainer) return;
10237
+ ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
10237
10238
  };
10238
10239
 
10239
10240
  var _excluded$g = ["columns", "extraColumns", "search", "visible", "setVisible", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.4.15",
4
+ "version": "0.4.16",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",