cloud-b2b 1.1.62 → 1.1.64

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.
Files changed (80) hide show
  1. package/es/Area/Area.js +8 -11
  2. package/es/CodeInput/CodeInput.js +16 -19
  3. package/es/Enhance/Dialogs.js +11 -14
  4. package/es/Enhance/Loading.js +15 -18
  5. package/es/Header/Header.js +17 -20
  6. package/es/Header/Vertical.js +11 -14
  7. package/es/ImageView/ImageView.js +10 -13
  8. package/es/InpurCascader/InputCascader.js +11 -14
  9. package/es/InputEditor/InputEditor.js +16 -18
  10. package/es/InputSearch/InputSearch.js +19 -22
  11. package/es/InputSelect/InputSelect.js +14 -17
  12. package/es/InputTreeSelect/InputTreeSelect.js +10 -13
  13. package/es/InputWriting/InputWriting.js +12 -15
  14. package/es/Layout/Layout.js +14 -17
  15. package/es/Link/Link.js +7 -10
  16. package/es/NumberInput/NumberInput.js +13 -16
  17. package/es/Search/Search.js +52 -55
  18. package/es/Search2/Search.js +85 -88
  19. package/es/Search2/Search.less +64 -64
  20. package/es/Search2/package.json +6 -6
  21. package/es/Sidebar/Sidebar.js +11 -14
  22. package/es/Sidebar2/Sidebar.js +13 -16
  23. package/es/SuperForm/SuperForm.js +74 -79
  24. package/es/SuperForm2/SuperForm.js +95 -101
  25. package/es/SuperPagination/SuperPagination.js +8 -11
  26. package/es/SuperTab/SuperTab.js +12 -15
  27. package/es/SuperTab2/SuperTab2.js +13 -16
  28. package/es/SuperTable/DragSortRow.js +12 -15
  29. package/es/SuperTable/FilterDropDown.js +11 -14
  30. package/es/SuperTable/SuperTable.js +68 -71
  31. package/es/SuperTable2/SuperTable2.js +85 -88
  32. package/es/SuperTable2/SuperTableCell.js +27 -30
  33. package/es/SuperTable3/FilterDropDown.js +11 -14
  34. package/es/SuperTable3/SuperTable.js +58 -61
  35. package/es/SuperToolbar/SuperToolbar.js +11 -14
  36. package/es/SuperUpload/SuperUpload.js +107 -91
  37. package/es/Viewer/ImageViews.js +16 -19
  38. package/es/Viewer/Viewer.js +11 -14
  39. package/es/helper.js +18 -17
  40. package/lib/Area/Area.js +8 -11
  41. package/lib/CodeInput/CodeInput.js +16 -19
  42. package/lib/Enhance/Dialogs.js +11 -14
  43. package/lib/Enhance/Loading.js +15 -18
  44. package/lib/Header/Header.js +17 -20
  45. package/lib/Header/Vertical.js +11 -14
  46. package/lib/ImageView/ImageView.js +10 -13
  47. package/lib/InpurCascader/InputCascader.js +11 -14
  48. package/lib/InputEditor/InputEditor.js +16 -18
  49. package/lib/InputSearch/InputSearch.js +19 -22
  50. package/lib/InputSelect/InputSelect.js +14 -17
  51. package/lib/InputTreeSelect/InputTreeSelect.js +10 -13
  52. package/lib/InputWriting/InputWriting.js +12 -15
  53. package/lib/Layout/Layout.js +14 -17
  54. package/lib/LayoutLink/LayoutLink.js +1 -2
  55. package/lib/Link/Link.js +7 -10
  56. package/lib/NumberInput/NumberInput.js +13 -16
  57. package/lib/Search/Search.js +53 -57
  58. package/lib/Search2/Search.js +86 -90
  59. package/lib/Search2/Search.less +64 -64
  60. package/lib/Search2/package.json +6 -6
  61. package/lib/Sidebar/Sidebar.js +11 -14
  62. package/lib/Sidebar2/Sidebar.js +13 -16
  63. package/lib/SuperForm/SuperForm.js +75 -81
  64. package/lib/SuperForm2/SuperForm.js +96 -103
  65. package/lib/SuperPagination/SuperPagination.js +8 -11
  66. package/lib/SuperTab/SuperTab.js +12 -15
  67. package/lib/SuperTab2/SuperTab2.js +13 -16
  68. package/lib/SuperTable/DragSortRow.js +12 -15
  69. package/lib/SuperTable/FilterDropDown.js +11 -14
  70. package/lib/SuperTable/SuperTable.js +68 -71
  71. package/lib/SuperTable2/SuperTable2.js +86 -90
  72. package/lib/SuperTable2/SuperTableCell.js +27 -30
  73. package/lib/SuperTable3/FilterDropDown.js +11 -14
  74. package/lib/SuperTable3/SuperTable.js +58 -61
  75. package/lib/SuperToolbar/SuperToolbar.js +11 -14
  76. package/lib/SuperUpload/SuperUpload.js +96 -81
  77. package/lib/Viewer/ImageViews.js +16 -19
  78. package/lib/Viewer/Viewer.js +11 -14
  79. package/lib/helper.js +18 -17
  80. package/package.json +1 -1
@@ -15,10 +15,9 @@ import _Checkbox from "antd/es/checkbox";
15
15
  import _typeof from "@babel/runtime-corejs3/helpers/typeof";
16
16
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
17
17
  import _createClass from "@babel/runtime-corejs3/helpers/createClass";
18
- import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
19
- import _inherits from "@babel/runtime-corejs3/helpers/inherits";
20
18
  import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
21
19
  import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
20
+ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
22
21
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
23
22
  import _Form from "antd/es/form";
24
23
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
@@ -29,9 +28,9 @@ import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/ins
29
28
  import _bindInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/bind";
30
29
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
31
30
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
32
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context26, _context27; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context26 = ownKeys(Object(t), !0)).call(_context26, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context27 = ownKeys(Object(t))).call(_context27, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
33
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
34
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context24, _context25; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context24 = ownKeys(Object(t), !0)).call(_context24, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context25 = ownKeys(Object(t))).call(_context25, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
32
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
33
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
35
34
  import React from 'react';
36
35
  import PropTypes from 'prop-types';
37
36
  import ReactDOM from 'react-dom';
@@ -66,13 +65,11 @@ var ControlType = {
66
65
  props: PropTypes.object
67
66
  };
68
67
  var Controlled = /*#__PURE__*/function (_React$Component) {
69
- _inherits(Controlled, _React$Component);
70
- var _super = _createSuper(Controlled);
71
68
  function Controlled(props) {
72
69
  var _this;
73
70
  _classCallCheck(this, Controlled);
74
- _this = _super.call(this, props);
75
- _defineProperty(_assertThisInitialized(_this), "onChange", function (value) {
71
+ _this = _callSuper(this, Controlled, [props]);
72
+ _defineProperty(_this, "onChange", function (value) {
76
73
  var onChange = _this.props.onChange;
77
74
  _this.setState({
78
75
  value: value
@@ -84,7 +81,8 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
84
81
  };
85
82
  return _this;
86
83
  }
87
- _createClass(Controlled, [{
84
+ _inherits(Controlled, _React$Component);
85
+ return _createClass(Controlled, [{
88
86
  key: "componentWillReceiveProps",
89
87
  value: function componentWillReceiveProps(nextProps) {
90
88
  if (this.props.value !== nextProps.value) {
@@ -104,7 +102,6 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
104
102
  return /*#__PURE__*/React.createElement(Control, props);
105
103
  }
106
104
  }]);
107
- return Controlled;
108
105
  }(React.Component);
109
106
  /**
110
107
  * colNum:[可选],表单的列数,默认为4
@@ -120,8 +117,6 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
120
117
  * onFileChange:上传组件触发,原型为func(key,{fileList, fileDeleteList})
121
118
  */
122
119
  var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
123
- _inherits(SuperForm2, _React$Component2);
124
- var _super2 = _createSuper(SuperForm2);
125
120
  function SuperForm2() {
126
121
  var _context;
127
122
  var _this2;
@@ -129,35 +124,35 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
129
124
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
130
125
  args[_key] = arguments[_key];
131
126
  }
132
- _this2 = _super2.call.apply(_super2, _concatInstanceProperty(_context = [this]).call(_context, args));
133
- _defineProperty(_assertThisInitialized(_this2), "onAdd", function (key, title) {
127
+ _this2 = _callSuper(this, SuperForm2, _concatInstanceProperty(_context = []).call(_context, args));
128
+ _defineProperty(_this2, "onAdd", function (key, title) {
134
129
  var onAdd = _this2.props.onAdd;
135
130
  onAdd && onAdd(key, title);
136
131
  });
137
- _defineProperty(_assertThisInitialized(_this2), "onFileChange", function (_ref, file) {
132
+ _defineProperty(_this2, "onFileChange", function (_ref, file) {
138
133
  var key = _ref.key;
139
134
  var onFileChange = _this2.props.onFileChange;
140
135
  onFileChange && onFileChange(key, file);
141
136
  });
142
- _defineProperty(_assertThisInitialized(_this2), "onChange", function (key, value) {
137
+ _defineProperty(_this2, "onChange", function (key, value) {
143
138
  var onChange = _this2.props.onChange;
144
139
  if (onChange) {
145
140
  _this2.onExitValid(key);
146
141
  onChange(key, value);
147
142
  }
148
143
  });
149
- _defineProperty(_assertThisInitialized(_this2), "onGetCode", function (key, value) {
144
+ _defineProperty(_this2, "onGetCode", function (key, value) {
150
145
  var onGetCode = _this2.props.onGetCode;
151
146
  onGetCode && onGetCode();
152
147
  });
153
- _defineProperty(_assertThisInitialized(_this2), "onBlur", function (key, value) {
148
+ _defineProperty(_this2, "onBlur", function (key, value) {
154
149
  var onChange = _this2.props.onChange;
155
150
  if (onChange) {
156
151
  _this2.onExitValid(key);
157
152
  onChange(key, value);
158
153
  }
159
154
  });
160
- _defineProperty(_assertThisInitialized(_this2), "onExitValid", function (key, value) {
155
+ _defineProperty(_this2, "onExitValid", function (key, value) {
161
156
  if (key === _this2.validKey) {
162
157
  _this2.validKey = '';
163
158
  _this2.props.onExitValid();
@@ -165,7 +160,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
165
160
  _this2.props.onChangeOperate && _this2.props.onChangeOperate(key, value);
166
161
  });
167
162
  // 动态生成getValidState方法
168
- _defineProperty(_assertThisInitialized(_this2), "initValidState", function () {
163
+ _defineProperty(_this2, "initValidState", function () {
169
164
  var _this2$props = _this2.props,
170
165
  value = _this2$props.value,
171
166
  valid = _this2$props.valid;
@@ -186,7 +181,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
186
181
  };
187
182
  _this2.getValidState = valid ? _valid : invalid;
188
183
  });
189
- _defineProperty(_assertThisInitialized(_this2), "validDate", function (_ref3) {
184
+ _defineProperty(_this2, "validDate", function (_ref3) {
190
185
  var key = _ref3.key,
191
186
  type = _ref3.type;
192
187
  return function (date) {
@@ -205,25 +200,25 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
205
200
  }
206
201
  };
207
202
  });
208
- _defineProperty(_assertThisInitialized(_this2), "getPopupContainer", function () {
203
+ _defineProperty(_this2, "getPopupContainer", function () {
209
204
  var container = _this2.props.container;
210
205
  if (typeof container === 'undefined') {
211
- return ReactDOM.findDOMNode(_assertThisInitialized(_this2));
206
+ return ReactDOM.findDOMNode(_this2);
212
207
  } else if (typeof container === 'boolean') {
213
208
  return document.body;
214
209
  } else {
215
210
  return ReactDOM.findDOMNode(container);
216
211
  }
217
212
  });
218
- _defineProperty(_assertThisInitialized(_this2), "getMaxWidth", function () {
213
+ _defineProperty(_this2, "getMaxWidth", function () {
219
214
  var _this2$props$colNum = _this2.props.colNum,
220
215
  colNum = _this2$props$colNum === void 0 ? defaultColNum : _this2$props$colNum;
221
216
  return colNum * 1200;
222
217
  });
223
- _defineProperty(_assertThisInitialized(_this2), "getContainer", function () {
218
+ _defineProperty(_this2, "getContainer", function () {
224
219
  return _this2.props.getContainer;
225
220
  });
226
- _defineProperty(_assertThisInitialized(_this2), "getControls", function () {
221
+ _defineProperty(_this2, "getControls", function () {
227
222
  var _this2$props2 = _this2.props,
228
223
  hideControls = _this2$props2.hideControls,
229
224
  controls = _this2$props2.controls;
@@ -237,7 +232,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
237
232
  });
238
233
  }
239
234
  });
240
- _defineProperty(_assertThisInitialized(_this2), "getType", function (_ref4) {
235
+ _defineProperty(_this2, "getType", function (_ref4) {
241
236
  var _context2;
242
237
  var key = _ref4.key,
243
238
  type = _ref4.type;
@@ -256,7 +251,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
256
251
  return type;
257
252
  }
258
253
  });
259
- _defineProperty(_assertThisInitialized(_this2), "specialProps", function (type, _ref5) {
254
+ _defineProperty(_this2, "specialProps", function (type, _ref5) {
260
255
  var key = _ref5.key,
261
256
  _ref5$props = _ref5.props,
262
257
  props = _ref5$props === void 0 ? {} : _ref5$props,
@@ -267,70 +262,70 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
267
262
  return {
268
263
  type: 'textArea',
269
264
  readonly: true,
270
- onBlur: _bindInstanceProperty(_context3 = _this2.onExitValid).call(_context3, _assertThisInitialized(_this2), key)
265
+ onBlur: _bindInstanceProperty(_context3 = _this2.onExitValid).call(_context3, _this2, key)
271
266
  };
272
267
  } else if (originType === 'uploadImg') {
273
268
  var _context4;
274
269
  var commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
275
270
  return _objectSpread(_objectSpread(_objectSpread({}, props), commonProps), {}, {
276
271
  readonly: true,
277
- onBlur: _bindInstanceProperty(_context4 = _this2.onExitValid).call(_context4, _assertThisInitialized(_this2), key)
272
+ onBlur: _bindInstanceProperty(_context4 = _this2.onExitValid).call(_context4, _this2, key)
278
273
  });
279
274
  } else {
280
275
  var _context5;
281
276
  return {
282
- onBlur: _bindInstanceProperty(_context5 = _this2.onExitValid).call(_context5, _assertThisInitialized(_this2), key)
277
+ onBlur: _bindInstanceProperty(_context5 = _this2.onExitValid).call(_context5, _this2, key)
283
278
  };
284
279
  }
285
280
  } else if (type === 'text' || type === 'textArea') {
286
281
  var _context6, _context7;
287
282
  return _objectSpread(_objectSpread({}, props), {}, {
288
- onChange: _bindInstanceProperty(_context6 = _this2.onExitValid).call(_context6, _assertThisInitialized(_this2), key),
289
- onBlur: _bindInstanceProperty(_context7 = _this2.onChange).call(_context7, _assertThisInitialized(_this2), key)
283
+ onChange: _bindInstanceProperty(_context6 = _this2.onExitValid).call(_context6, _this2, key),
284
+ onBlur: _bindInstanceProperty(_context7 = _this2.onChange).call(_context7, _this2, key)
290
285
  });
291
286
  } else if (type === 'date') {
292
287
  var _context8, _context9;
293
288
  var propsObj = _objectSpread(_objectSpread({}, props), {}, {
294
- onChange: _bindInstanceProperty(_context8 = _this2.onBlur).call(_context8, _assertThisInitialized(_this2), key),
295
- onBlur: _bindInstanceProperty(_context9 = _this2.onExitValid).call(_context9, _assertThisInitialized(_this2), key)
289
+ onChange: _bindInstanceProperty(_context8 = _this2.onBlur).call(_context8, _this2, key),
290
+ onBlur: _bindInstanceProperty(_context9 = _this2.onExitValid).call(_context9, _this2, key)
296
291
  });
297
292
  if (_this2.props.onOpenChange && typeof _this2.props.onOpenChange === 'function') {
298
- var _context10;
299
- propsObj.onOpenChange = _bindInstanceProperty(_context10 = _this2.props.onOpenChange).call(_context10, _assertThisInitialized(_this2), key);
293
+ var _context0;
294
+ propsObj.onOpenChange = _bindInstanceProperty(_context0 = _this2.props.onOpenChange).call(_context0, _this2, key);
300
295
  }
301
296
  return propsObj;
302
297
  } else if (type === 'captcha') {
303
- var _context11, _context12, _context13;
298
+ var _context1, _context10, _context11;
304
299
  return _objectSpread(_objectSpread({}, props), {}, {
305
- onChange: _bindInstanceProperty(_context11 = _this2.onBlur).call(_context11, _assertThisInitialized(_this2), key),
306
- onBlur: _bindInstanceProperty(_context12 = _this2.onExitValid).call(_context12, _assertThisInitialized(_this2), key),
307
- onGetCode: _bindInstanceProperty(_context13 = _this2.onGetCode).call(_context13, _assertThisInitialized(_this2), key)
300
+ onChange: _bindInstanceProperty(_context1 = _this2.onBlur).call(_context1, _this2, key),
301
+ onBlur: _bindInstanceProperty(_context10 = _this2.onExitValid).call(_context10, _this2, key),
302
+ onGetCode: _bindInstanceProperty(_context11 = _this2.onGetCode).call(_context11, _this2, key)
308
303
  });
309
304
  } else if (type === 'area') {
310
- var _context14, _context15;
305
+ var _context12, _context13;
311
306
  return _objectSpread(_objectSpread({}, props), {}, {
312
- onChange: _bindInstanceProperty(_context14 = _this2.onBlur).call(_context14, _assertThisInitialized(_this2), key),
313
- onBlur: _bindInstanceProperty(_context15 = _this2.onExitValid).call(_context15, _assertThisInitialized(_this2), key),
307
+ onChange: _bindInstanceProperty(_context12 = _this2.onBlur).call(_context12, _this2, key),
308
+ onBlur: _bindInstanceProperty(_context13 = _this2.onExitValid).call(_context13, _this2, key),
314
309
  onAreaSearch: _this2.props.onAreaSearch
315
310
  });
316
311
  } else if (type === 'uploadImg') {
317
- var _context16, _context17;
312
+ var _context14, _context15;
318
313
  var _commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
319
314
  return _objectSpread(_objectSpread(_objectSpread({}, props), _commonProps), {}, {
320
- onChange: _bindInstanceProperty(_context16 = _this2.onBlur).call(_context16, _assertThisInitialized(_this2), key),
321
- onBlur: _bindInstanceProperty(_context17 = _this2.onExitValid).call(_context17, _assertThisInitialized(_this2), key)
315
+ onChange: _bindInstanceProperty(_context14 = _this2.onBlur).call(_context14, _this2, key),
316
+ onBlur: _bindInstanceProperty(_context15 = _this2.onExitValid).call(_context15, _this2, key)
322
317
  });
323
318
  } else if (type === 'double') {
324
319
  return props;
325
320
  } else {
326
- var _context18, _context19;
321
+ var _context16, _context17;
327
322
  return _objectSpread(_objectSpread({}, props), {}, {
328
- onChange: _bindInstanceProperty(_context18 = _this2.onBlur).call(_context18, _assertThisInitialized(_this2), key),
329
- onBlur: _bindInstanceProperty(_context19 = _this2.onExitValid).call(_context19, _assertThisInitialized(_this2), key)
323
+ onChange: _bindInstanceProperty(_context16 = _this2.onBlur).call(_context16, _this2, key),
324
+ onBlur: _bindInstanceProperty(_context17 = _this2.onExitValid).call(_context17, _this2, key)
330
325
  });
331
326
  }
332
327
  });
333
- _defineProperty(_assertThisInitialized(_this2), "getControlProps", function (control, status) {
328
+ _defineProperty(_this2, "getControlProps", function (control, status) {
334
329
  var _this2$props3 = _this2.props,
335
330
  _this2$props3$value = _this2$props3.value,
336
331
  value = _this2$props3$value === void 0 ? {} : _this2$props3$value,
@@ -345,25 +340,25 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
345
340
  value: makeString(value[control.key])
346
341
  });
347
342
  });
348
- _defineProperty(_assertThisInitialized(_this2), "getOptions", function (key, options) {
343
+ _defineProperty(_this2, "getOptions", function (key, options) {
349
344
  var higher = _this2.props.options || {};
350
345
  return higher[key] || options;
351
346
  });
352
- _defineProperty(_assertThisInitialized(_this2), "toEmpty", function (props) {});
353
- _defineProperty(_assertThisInitialized(_this2), "toText", function (props) {
347
+ _defineProperty(_this2, "toEmpty", function (props) {});
348
+ _defineProperty(_this2, "toText", function (props) {
354
349
  return /*#__PURE__*/React.createElement(Controlled, props);
355
350
  });
356
- _defineProperty(_assertThisInitialized(_this2), "toPassword", function (props) {
351
+ _defineProperty(_this2, "toPassword", function (props) {
357
352
  return /*#__PURE__*/React.createElement(Controlled, props);
358
353
  });
359
- _defineProperty(_assertThisInitialized(_this2), "toEditor", function (props, control) {
354
+ _defineProperty(_this2, "toEditor", function (props, control) {
360
355
  props.inputKey = control.key;
361
356
  return /*#__PURE__*/React.createElement(Controlled, props);
362
357
  });
363
- _defineProperty(_assertThisInitialized(_this2), "toSelectWriting", function (props, control) {
358
+ _defineProperty(_this2, "toSelectWriting", function (props, control) {
364
359
  return /*#__PURE__*/React.createElement(Controlled, props);
365
360
  });
366
- _defineProperty(_assertThisInitialized(_this2), "toTextArea", function (props, control) {
361
+ _defineProperty(_this2, "toTextArea", function (props, control) {
367
362
  if (control.allFullFather) {
368
363
  props.rows = control.rows;
369
364
  props.maxLength = control.maxLength;
@@ -378,22 +373,22 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
378
373
  }
379
374
  return /*#__PURE__*/React.createElement(Controlled, props);
380
375
  });
381
- _defineProperty(_assertThisInitialized(_this2), "toNumber", function (props) {
376
+ _defineProperty(_this2, "toNumber", function (props) {
382
377
  props.defaultValue = props.value;
383
378
  delete props.value;
384
379
  return /*#__PURE__*/React.createElement(Control, props);
385
380
  });
386
- _defineProperty(_assertThisInitialized(_this2), "toDoubleInput", function (props, control, cc) {
387
- var _context20, _context21;
381
+ _defineProperty(_this2, "toDoubleInput", function (props, control, cc) {
382
+ var _context18, _context19;
388
383
  props.defaultValue = props.value;
389
384
  props.doubleKey = props.key;
390
385
  props.doubleValue = helper.getObject(cc, props.key);
391
- props.onChangeKey1 = _bindInstanceProperty(_context20 = _this2.onChange).call(_context20, _assertThisInitialized(_this2), props.key[0]);
392
- props.onChangeKey2 = _bindInstanceProperty(_context21 = _this2.onChange).call(_context21, _assertThisInitialized(_this2), props.key[1]);
386
+ props.onChangeKey1 = _bindInstanceProperty(_context18 = _this2.onChange).call(_context18, _this2, props.key[0]);
387
+ props.onChangeKey2 = _bindInstanceProperty(_context19 = _this2.onChange).call(_context19, _this2, props.key[1]);
393
388
  delete props.value;
394
389
  return /*#__PURE__*/React.createElement(Control, props);
395
390
  });
396
- _defineProperty(_assertThisInitialized(_this2), "toSelect", function (props, _ref6) {
391
+ _defineProperty(_this2, "toSelect", function (props, _ref6) {
397
392
  var options = _ref6.options,
398
393
  key = _ref6.key;
399
394
  props.getPopupContainer = _this2.getPopupContainer;
@@ -401,7 +396,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
401
396
  props.dropdownMatchSelectWidth = false;
402
397
  return /*#__PURE__*/React.createElement(Control, props);
403
398
  });
404
- _defineProperty(_assertThisInitialized(_this2), "toTreeSelect", function (props, filter) {
399
+ _defineProperty(_this2, "toTreeSelect", function (props, filter) {
405
400
  var container = _this2.getContainer();
406
401
  container && (props.getPopupContainer = container);
407
402
  props.options = _this2.getOptions(filter);
@@ -409,7 +404,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
409
404
  props.placeholder = filter.placeholder || '';
410
405
  return /*#__PURE__*/React.createElement(Control, props);
411
406
  });
412
- _defineProperty(_assertThisInitialized(_this2), "createSearchEvent", function (control) {
407
+ _defineProperty(_this2, "createSearchEvent", function (control) {
413
408
  if (_this2.props.onSearch) {
414
409
  return function (value) {
415
410
  return _this2.props.onSearch(control.key, value, control);
@@ -418,7 +413,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
418
413
  return null;
419
414
  }
420
415
  });
421
- _defineProperty(_assertThisInitialized(_this2), "createGetCodeEvent", function (control) {
416
+ _defineProperty(_this2, "createGetCodeEvent", function (control) {
422
417
  if (_this2.props.onGetCode) {
423
418
  return function (value) {
424
419
  return _this2.props.onGetCode(control.key, value, control);
@@ -427,15 +422,14 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
427
422
  return null;
428
423
  }
429
424
  });
430
- _defineProperty(_assertThisInitialized(_this2), "toSearch", function (props, control) {
425
+ _defineProperty(_this2, "toSearch", function (props, control) {
431
426
  props.getPopupContainer = _this2.getPopupContainer;
432
427
  props.options = _this2.getOptions(control.key, control.options);
433
428
  props.onSearch = _this2.createSearchEvent(control);
434
429
  props.dropdownMatchSelectWidth = false;
435
- props.size = 'large';
436
430
  return /*#__PURE__*/React.createElement(Control, props);
437
431
  });
438
- _defineProperty(_assertThisInitialized(_this2), "toDate", function (props, _ref7) {
432
+ _defineProperty(_this2, "toDate", function (props, _ref7) {
439
433
  var rule = _ref7.rule;
440
434
  props.getCalendarContainer = _this2.getPopupContainer;
441
435
  props.style = {
@@ -444,32 +438,32 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
444
438
  rule && (props.disabledDate = _this2.validDate(rule));
445
439
  return /*#__PURE__*/React.createElement(Control, props);
446
440
  });
447
- _defineProperty(_assertThisInitialized(_this2), "toRadioGroup", function (props, _ref8) {
441
+ _defineProperty(_this2, "toRadioGroup", function (props, _ref8) {
448
442
  var key = _ref8.key,
449
443
  options = _ref8.options;
450
444
  props.options = _this2.getOptions(key, options);
451
445
  return /*#__PURE__*/React.createElement(Control, props);
452
446
  });
453
- _defineProperty(_assertThisInitialized(_this2), "captcha", function (props, control) {
447
+ _defineProperty(_this2, "captcha", function (props, control) {
454
448
  props.onGetCode = _this2.props.onGetCode;
455
449
  return /*#__PURE__*/React.createElement(Control, props);
456
450
  });
457
- _defineProperty(_assertThisInitialized(_this2), "toReadonly", function (props, _ref9) {
451
+ _defineProperty(_this2, "toReadonly", function (props, _ref9) {
458
452
  var options = _ref9.options,
459
453
  key = _ref9.key;
460
454
  props.value = getTitle(props.value, _this2.getOptions(key, options));
461
455
  return /*#__PURE__*/React.createElement(Control, props);
462
456
  });
463
- _defineProperty(_assertThisInitialized(_this2), "selectSearch", function (props, control) {
457
+ _defineProperty(_this2, "selectSearch", function (props, control) {
464
458
  props.getPopupContainer = _this2.getPopupContainer;
465
459
  props.options = _this2.getOptions(control.key, control.options);
466
460
  props.onSearch = _this2.createSearchEvent(control);
467
461
  props.dropdownMatchSelectWidth = false;
468
462
  return /*#__PURE__*/React.createElement(Control, props);
469
463
  });
470
- _defineProperty(_assertThisInitialized(_this2), "area", function (props, _ref10) {
471
- var key = _ref10.key,
472
- options = _ref10.options;
464
+ _defineProperty(_this2, "area", function (props, _ref0) {
465
+ var key = _ref0.key,
466
+ options = _ref0.options;
473
467
  var readonly = _this2.props.readonly;
474
468
  props.parentKey = key;
475
469
  props.options = _this2.getOptions(key, options);
@@ -479,17 +473,17 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
479
473
  }) ? true : false;
480
474
  return /*#__PURE__*/React.createElement(Control, props);
481
475
  });
482
- _defineProperty(_assertThisInitialized(_this2), "uploadImg", function (props, control) {
483
- var _context22;
476
+ _defineProperty(_this2, "uploadImg", function (props, control) {
477
+ var _context20;
484
478
  var readonly = _this2.props.readonly;
485
479
  props.required = control.required || false;
486
- props.onFileChange = _bindInstanceProperty(_context22 = _this2.onFileChange).call(_context22, _assertThisInitialized(_this2), control);
480
+ props.onFileChange = _bindInstanceProperty(_context20 = _this2.onFileChange).call(_context20, _this2, control);
487
481
  props.readonly = readonly === true || _Array$isArray(readonly) && _someInstanceProperty(readonly).call(readonly, function (readonlyKey) {
488
482
  return readonlyKey === control.key;
489
483
  }) ? true : false;
490
484
  return /*#__PURE__*/React.createElement(Control, props);
491
485
  });
492
- _defineProperty(_assertThisInitialized(_this2), "toCascader", function (props, control) {
486
+ _defineProperty(_this2, "toCascader", function (props, control) {
493
487
  var container = _this2.getContainer();
494
488
  container && (props.getPopupContainer = container);
495
489
  props.options = control.options || [];
@@ -498,16 +492,16 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
498
492
  props.loadData = _this2.createSearchEvent(control);
499
493
  return /*#__PURE__*/React.createElement(Control, props);
500
494
  });
501
- _defineProperty(_assertThisInitialized(_this2), "toCheckbox", function (props, control) {
502
- var _context23;
495
+ _defineProperty(_this2, "toCheckbox", function (props, control) {
496
+ var _context21;
503
497
  var options = control.options || [];
504
498
  return /*#__PURE__*/React.createElement(_Checkbox.Group, {
505
499
  options: options,
506
- onChange: _bindInstanceProperty(_context23 = _this2.onBlur).call(_context23, _assertThisInitialized(_this2), control.key),
500
+ onChange: _bindInstanceProperty(_context21 = _this2.onBlur).call(_context21, _this2, control.key),
507
501
  value: _this2.props.value[control.key]
508
502
  });
509
503
  });
510
- _defineProperty(_assertThisInitialized(_this2), "toControl", function (props, control) {
504
+ _defineProperty(_this2, "toControl", function (props, control) {
511
505
  switch (props.type) {
512
506
  case 'readonly':
513
507
  return _this2.toReadonly(props, control);
@@ -555,15 +549,15 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
555
549
  return 'type error';
556
550
  }
557
551
  });
558
- _defineProperty(_assertThisInitialized(_this2), "toLabel", function (_ref11, type) {
559
- var title = _ref11.title,
560
- showAdd = _ref11.showAdd,
561
- key = _ref11.key,
562
- showInfo = _ref11.showInfo,
563
- showInfoTitle = _ref11.showInfoTitle;
552
+ _defineProperty(_this2, "toLabel", function (_ref1, type) {
553
+ var title = _ref1.title,
554
+ showAdd = _ref1.showAdd,
555
+ key = _ref1.key,
556
+ showInfo = _ref1.showInfo,
557
+ showInfoTitle = _ref1.showInfoTitle;
564
558
  if (showAdd && type !== 'readonly') {
565
- var _context24;
566
- var onClick = _bindInstanceProperty(_context24 = _this2.onAdd).call(_context24, _assertThisInitialized(_this2), key, title);
559
+ var _context22;
560
+ var onClick = _bindInstanceProperty(_context22 = _this2.onAdd).call(_context22, _this2, key, title);
567
561
  return /*#__PURE__*/React.createElement("span", null, title, /*#__PURE__*/React.createElement(_Icon, {
568
562
  role: "add",
569
563
  type: "plus-circle-o",
@@ -579,7 +573,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
579
573
  return title;
580
574
  }
581
575
  });
582
- _defineProperty(_assertThisInitialized(_this2), "toCol", function (span, control) {
576
+ _defineProperty(_this2, "toCol", function (span, control) {
583
577
  var factor = control.span || 1;
584
578
  var status = _this2.getValidState(control);
585
579
  var controlProps = _this2.getControlProps(control, status);
@@ -596,7 +590,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
596
590
  key: control.key
597
591
  }, checkable && /*#__PURE__*/React.createElement(_Checkbox, {
598
592
  className: variables('SuperForm2').checkbox,
599
- onChange: _bindInstanceProperty(onCheckItem).call(onCheckItem, _assertThisInitialized(_this2), control),
593
+ onChange: _bindInstanceProperty(onCheckItem).call(onCheckItem, _this2, control),
600
594
  checked: control.checked
601
595
  }), /*#__PURE__*/React.createElement(FormItem, _extends({}, itemProps, {
602
596
  className: checkable ? variables('SuperForm2').formItemWithCheckbox : '',
@@ -624,8 +618,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
624
618
  }
625
619
  });
626
620
  });
627
- _defineProperty(_assertThisInitialized(_this2), "toCols", function () {
628
- var _context25;
621
+ _defineProperty(_this2, "toCols", function () {
622
+ var _context23;
629
623
  var _this2$props5 = _this2.props,
630
624
  _this2$props5$colNum = _this2$props5.colNum,
631
625
  colNum = _this2$props5$colNum === void 0 ? defaultColNum : _this2$props5$colNum,
@@ -634,7 +628,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
634
628
  colNum = 1;
635
629
  }
636
630
  var span = 24 / colNum;
637
- return _mapInstanceProperty(_context25 = _this2.getControls()).call(_context25, function (control) {
631
+ return _mapInstanceProperty(_context23 = _this2.getControls()).call(_context23, function (control) {
638
632
  if (allFullFather) {
639
633
  control.allFullFather = allFullFather;
640
634
  }
@@ -643,7 +637,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
643
637
  });
644
638
  return _this2;
645
639
  }
646
- _createClass(SuperForm2, [{
640
+ _inherits(SuperForm2, _React$Component2);
641
+ return _createClass(SuperForm2, [{
647
642
  key: "render",
648
643
  value: function render() {
649
644
  this.initValidState();
@@ -661,7 +656,6 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
661
656
  }, this.toCols())));
662
657
  }
663
658
  }]);
664
- return SuperForm2;
665
659
  }(React.Component);
666
660
  _defineProperty(SuperForm2, "propTypes", {
667
661
  controls: PropTypes.arrayOf(PropTypes.shape(ControlType)).isRequired,
@@ -2,15 +2,14 @@ import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/co
2
2
  import _Pagination from "antd/es/pagination";
3
3
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime-corejs3/helpers/createClass";
5
- import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
6
- import _inherits from "@babel/runtime-corejs3/helpers/inherits";
7
5
  import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
8
6
  import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
7
+ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
9
8
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
10
9
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
11
10
  import _Object$assign from "@babel/runtime-corejs3/core-js-stable/object/assign";
12
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
12
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
13
  import React from 'react';
15
14
  import PropTypes from 'prop-types';
16
15
  /**
@@ -25,8 +24,6 @@ import PropTypes from 'prop-types';
25
24
  * onPageSizeChange: 页大小改变时触发,原型func(pageSize, pageNumber)
26
25
  */
27
26
  var SuperPagination = /*#__PURE__*/function (_React$Component) {
28
- _inherits(SuperPagination, _React$Component);
29
- var _super = _createSuper(SuperPagination);
30
27
  function SuperPagination() {
31
28
  var _context;
32
29
  var _this;
@@ -34,14 +31,14 @@ var SuperPagination = /*#__PURE__*/function (_React$Component) {
34
31
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
35
32
  args[_key] = arguments[_key];
36
33
  }
37
- _this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
38
- _defineProperty(_assertThisInitialized(_this), "onChange", function (page) {
34
+ _this = _callSuper(this, SuperPagination, _concatInstanceProperty(_context = []).call(_context, args));
35
+ _defineProperty(_this, "onChange", function (page) {
39
36
  var _this$props$callback = _this.props.callback,
40
37
  callback = _this$props$callback === void 0 ? {} : _this$props$callback;
41
38
  var onPageNumberChange = _this.props.onPageNumberChange || callback.onPageNumberChange;
42
39
  onPageNumberChange && onPageNumberChange(page);
43
40
  });
44
- _defineProperty(_assertThisInitialized(_this), "onShowSizeChange", function (current, size) {
41
+ _defineProperty(_this, "onShowSizeChange", function (current, size) {
45
42
  var _this$props$callback2 = _this.props.callback,
46
43
  callback = _this$props$callback2 === void 0 ? {} : _this$props$callback2;
47
44
  var onPageSizeChange = _this.props.onPageSizeChange || callback.onPageSizeChange;
@@ -49,7 +46,8 @@ var SuperPagination = /*#__PURE__*/function (_React$Component) {
49
46
  });
50
47
  return _this;
51
48
  }
52
- _createClass(SuperPagination, [{
49
+ _inherits(SuperPagination, _React$Component);
50
+ return _createClass(SuperPagination, [{
53
51
  key: "render",
54
52
  value: function render() {
55
53
  var _this$props = this.props,
@@ -92,7 +90,6 @@ var SuperPagination = /*#__PURE__*/function (_React$Component) {
92
90
  }, /*#__PURE__*/React.createElement(_Pagination, props));
93
91
  }
94
92
  }]);
95
- return SuperPagination;
96
93
  }(React.Component);
97
94
  _defineProperty(SuperPagination, "propTypes", {
98
95
  maxRecords: PropTypes.number,