cloud-b2b 1.1.57 → 1.1.58

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 (74) hide show
  1. package/es/Area/Area.js +11 -8
  2. package/es/CodeInput/CodeInput.js +19 -16
  3. package/es/Enhance/Dialogs.js +14 -11
  4. package/es/Enhance/Loading.js +18 -15
  5. package/es/Header/Header.js +20 -17
  6. package/es/Header/Vertical.js +14 -11
  7. package/es/ImageView/ImageView.js +13 -10
  8. package/es/InpurCascader/InputCascader.js +14 -11
  9. package/es/InputEditor/InputEditor.js +18 -16
  10. package/es/InputSearch/InputSearch.js +22 -19
  11. package/es/InputSelect/InputSelect.js +17 -14
  12. package/es/InputTreeSelect/InputTreeSelect.js +13 -10
  13. package/es/InputWriting/InputWriting.js +15 -12
  14. package/es/Layout/Layout.js +17 -14
  15. package/es/Link/Link.js +10 -7
  16. package/es/NumberInput/NumberInput.js +16 -13
  17. package/es/Search/Search.js +55 -52
  18. package/es/Sidebar/Sidebar.js +14 -11
  19. package/es/Sidebar2/Sidebar.js +16 -13
  20. package/es/SuperForm/SuperForm.js +79 -74
  21. package/es/SuperForm2/SuperForm.js +100 -95
  22. package/es/SuperPagination/SuperPagination.js +11 -8
  23. package/es/SuperTab/SuperTab.js +15 -12
  24. package/es/SuperTab2/SuperTab2.js +16 -13
  25. package/es/SuperTable/DragSortRow.js +15 -12
  26. package/es/SuperTable/FilterDropDown.js +14 -11
  27. package/es/SuperTable/SuperTable.js +71 -68
  28. package/es/SuperTable2/SuperTable2.js +89 -86
  29. package/es/SuperTable2/SuperTableCell.js +35 -25
  30. package/es/SuperTable3/FilterDropDown.js +14 -11
  31. package/es/SuperTable3/SuperTable.js +61 -58
  32. package/es/SuperToolbar/SuperToolbar.js +14 -11
  33. package/es/SuperUpload/SuperUpload.js +74 -74
  34. package/es/Viewer/ImageViews.js +19 -16
  35. package/es/Viewer/Viewer.js +14 -11
  36. package/es/helper.js +17 -18
  37. package/lib/Area/Area.js +11 -8
  38. package/lib/CodeInput/CodeInput.js +19 -16
  39. package/lib/Enhance/Dialogs.js +14 -11
  40. package/lib/Enhance/Loading.js +18 -15
  41. package/lib/Header/Header.js +20 -17
  42. package/lib/Header/Vertical.js +14 -11
  43. package/lib/ImageView/ImageView.js +13 -10
  44. package/lib/InpurCascader/InputCascader.js +14 -11
  45. package/lib/InputEditor/InputEditor.js +18 -16
  46. package/lib/InputSearch/InputSearch.js +22 -19
  47. package/lib/InputSelect/InputSelect.js +17 -14
  48. package/lib/InputTreeSelect/InputTreeSelect.js +13 -10
  49. package/lib/InputWriting/InputWriting.js +15 -12
  50. package/lib/Layout/Layout.js +17 -14
  51. package/lib/LayoutLink/LayoutLink.js +2 -1
  52. package/lib/Link/Link.js +10 -7
  53. package/lib/NumberInput/NumberInput.js +16 -13
  54. package/lib/Search/Search.js +57 -53
  55. package/lib/Sidebar/Sidebar.js +14 -11
  56. package/lib/Sidebar2/Sidebar.js +16 -13
  57. package/lib/SuperForm/SuperForm.js +81 -75
  58. package/lib/SuperForm2/SuperForm.js +102 -96
  59. package/lib/SuperPagination/SuperPagination.js +11 -8
  60. package/lib/SuperTab/SuperTab.js +15 -12
  61. package/lib/SuperTab2/SuperTab2.js +16 -13
  62. package/lib/SuperTable/DragSortRow.js +15 -12
  63. package/lib/SuperTable/FilterDropDown.js +14 -11
  64. package/lib/SuperTable/SuperTable.js +71 -68
  65. package/lib/SuperTable2/SuperTable2.js +91 -87
  66. package/lib/SuperTable2/SuperTableCell.js +35 -25
  67. package/lib/SuperTable3/FilterDropDown.js +14 -11
  68. package/lib/SuperTable3/SuperTable.js +61 -58
  69. package/lib/SuperToolbar/SuperToolbar.js +14 -11
  70. package/lib/SuperUpload/SuperUpload.js +76 -75
  71. package/lib/Viewer/ImageViews.js +19 -16
  72. package/lib/Viewer/Viewer.js +14 -11
  73. package/lib/helper.js +17 -18
  74. package/package.json +1 -1
@@ -32,9 +32,10 @@ var _checkbox = _interopRequireDefault(require("antd/lib/checkbox"));
32
32
  var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));
33
33
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
34
34
  var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
35
+ var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
36
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
35
37
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
36
38
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
37
- var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
38
39
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
39
40
  var _form = _interopRequireDefault(require("antd/lib/form"));
40
41
  var _react = _interopRequireDefault(require("react"));
@@ -43,11 +44,12 @@ var _reactDom = _interopRequireDefault(require("react-dom"));
43
44
  var _helper = _interopRequireDefault(require("../helper"));
44
45
  var _Control = _interopRequireWildcard(require("../Control"));
45
46
  var _variables = _interopRequireDefault(require("../variables"));
46
- function _interopRequireWildcard(e, t) { if ("function" == typeof _WeakMap) var r = new _WeakMap(), n = new _WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = _Object$defineProperty) && _Object$getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
47
+ function _getRequireWildcardCache(e) { if ("function" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
48
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
47
49
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty2(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
48
- 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) { (0, _defineProperty2["default"])(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; }
49
- function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
50
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
50
+ 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) { (0, _defineProperty2["default"])(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; }
51
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
52
+ 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; } }
51
53
  var FormItem = _form["default"].Item;
52
54
  var defaultSize = 'large';
53
55
  var defaultColNum = 4;
@@ -76,11 +78,13 @@ var ControlType = {
76
78
  props: _propTypes["default"].object
77
79
  };
78
80
  var Controlled = /*#__PURE__*/function (_React$Component) {
81
+ (0, _inherits2["default"])(Controlled, _React$Component);
82
+ var _super = _createSuper(Controlled);
79
83
  function Controlled(props) {
80
84
  var _this;
81
85
  (0, _classCallCheck2["default"])(this, Controlled);
82
- _this = _callSuper(this, Controlled, [props]);
83
- (0, _defineProperty2["default"])(_this, "onChange", function (value) {
86
+ _this = _super.call(this, props);
87
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (value) {
84
88
  var onChange = _this.props.onChange;
85
89
  _this.setState({
86
90
  value: value
@@ -92,8 +96,7 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
92
96
  };
93
97
  return _this;
94
98
  }
95
- (0, _inherits2["default"])(Controlled, _React$Component);
96
- return (0, _createClass2["default"])(Controlled, [{
99
+ (0, _createClass2["default"])(Controlled, [{
97
100
  key: "componentWillReceiveProps",
98
101
  value: function componentWillReceiveProps(nextProps) {
99
102
  if (this.props.value !== nextProps.value) {
@@ -113,6 +116,7 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
113
116
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
114
117
  }
115
118
  }]);
119
+ return Controlled;
116
120
  }(_react["default"].Component);
117
121
  /**
118
122
  * colNum:[可选],表单的列数,默认为4
@@ -128,6 +132,8 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
128
132
  * onFileChange:上传组件触发,原型为func(key,{fileList, fileDeleteList})
129
133
  */
130
134
  var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
135
+ (0, _inherits2["default"])(SuperForm2, _React$Component2);
136
+ var _super2 = _createSuper(SuperForm2);
131
137
  function SuperForm2() {
132
138
  var _context;
133
139
  var _this2;
@@ -135,35 +141,35 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
135
141
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
136
142
  args[_key] = arguments[_key];
137
143
  }
138
- _this2 = _callSuper(this, SuperForm2, (0, _concat["default"])(_context = []).call(_context, args));
139
- (0, _defineProperty2["default"])(_this2, "onAdd", function (key, title) {
144
+ _this2 = _super2.call.apply(_super2, (0, _concat["default"])(_context = [this]).call(_context, args));
145
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onAdd", function (key, title) {
140
146
  var onAdd = _this2.props.onAdd;
141
147
  onAdd && onAdd(key, title);
142
148
  });
143
- (0, _defineProperty2["default"])(_this2, "onFileChange", function (_ref, file) {
149
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onFileChange", function (_ref, file) {
144
150
  var key = _ref.key;
145
151
  var onFileChange = _this2.props.onFileChange;
146
152
  onFileChange && onFileChange(key, file);
147
153
  });
148
- (0, _defineProperty2["default"])(_this2, "onChange", function (key, value) {
154
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onChange", function (key, value) {
149
155
  var onChange = _this2.props.onChange;
150
156
  if (onChange) {
151
157
  _this2.onExitValid(key);
152
158
  onChange(key, value);
153
159
  }
154
160
  });
155
- (0, _defineProperty2["default"])(_this2, "onGetCode", function (key, value) {
161
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onGetCode", function (key, value) {
156
162
  var onGetCode = _this2.props.onGetCode;
157
163
  onGetCode && onGetCode();
158
164
  });
159
- (0, _defineProperty2["default"])(_this2, "onBlur", function (key, value) {
165
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onBlur", function (key, value) {
160
166
  var onChange = _this2.props.onChange;
161
167
  if (onChange) {
162
168
  _this2.onExitValid(key);
163
169
  onChange(key, value);
164
170
  }
165
171
  });
166
- (0, _defineProperty2["default"])(_this2, "onExitValid", function (key, value) {
172
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onExitValid", function (key, value) {
167
173
  if (key === _this2.validKey) {
168
174
  _this2.validKey = '';
169
175
  _this2.props.onExitValid();
@@ -171,7 +177,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
171
177
  _this2.props.onChangeOperate && _this2.props.onChangeOperate(key, value);
172
178
  });
173
179
  // 动态生成getValidState方法
174
- (0, _defineProperty2["default"])(_this2, "initValidState", function () {
180
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "initValidState", function () {
175
181
  var _this2$props = _this2.props,
176
182
  value = _this2$props.value,
177
183
  valid = _this2$props.valid;
@@ -192,7 +198,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
192
198
  };
193
199
  _this2.getValidState = valid ? _valid : invalid;
194
200
  });
195
- (0, _defineProperty2["default"])(_this2, "validDate", function (_ref3) {
201
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "validDate", function (_ref3) {
196
202
  var key = _ref3.key,
197
203
  type = _ref3.type;
198
204
  return function (date) {
@@ -211,25 +217,25 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
211
217
  }
212
218
  };
213
219
  });
214
- (0, _defineProperty2["default"])(_this2, "getPopupContainer", function () {
220
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getPopupContainer", function () {
215
221
  var container = _this2.props.container;
216
222
  if (typeof container === 'undefined') {
217
- return _reactDom["default"].findDOMNode(_this2);
223
+ return _reactDom["default"].findDOMNode((0, _assertThisInitialized2["default"])(_this2));
218
224
  } else if (typeof container === 'boolean') {
219
225
  return document.body;
220
226
  } else {
221
227
  return _reactDom["default"].findDOMNode(container);
222
228
  }
223
229
  });
224
- (0, _defineProperty2["default"])(_this2, "getMaxWidth", function () {
230
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getMaxWidth", function () {
225
231
  var _this2$props$colNum = _this2.props.colNum,
226
232
  colNum = _this2$props$colNum === void 0 ? defaultColNum : _this2$props$colNum;
227
233
  return colNum * 1200;
228
234
  });
229
- (0, _defineProperty2["default"])(_this2, "getContainer", function () {
235
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getContainer", function () {
230
236
  return _this2.props.getContainer;
231
237
  });
232
- (0, _defineProperty2["default"])(_this2, "getControls", function () {
238
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getControls", function () {
233
239
  var _this2$props2 = _this2.props,
234
240
  hideControls = _this2$props2.hideControls,
235
241
  controls = _this2$props2.controls;
@@ -243,7 +249,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
243
249
  });
244
250
  }
245
251
  });
246
- (0, _defineProperty2["default"])(_this2, "getType", function (_ref4) {
252
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getType", function (_ref4) {
247
253
  var _context2;
248
254
  var key = _ref4.key,
249
255
  type = _ref4.type;
@@ -262,7 +268,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
262
268
  return type;
263
269
  }
264
270
  });
265
- (0, _defineProperty2["default"])(_this2, "specialProps", function (type, _ref5) {
271
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "specialProps", function (type, _ref5) {
266
272
  var key = _ref5.key,
267
273
  _ref5$props = _ref5.props,
268
274
  props = _ref5$props === void 0 ? {} : _ref5$props,
@@ -273,70 +279,70 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
273
279
  return {
274
280
  type: 'textArea',
275
281
  readonly: true,
276
- onBlur: (0, _bind["default"])(_context3 = _this2.onExitValid).call(_context3, _this2, key)
282
+ onBlur: (0, _bind["default"])(_context3 = _this2.onExitValid).call(_context3, (0, _assertThisInitialized2["default"])(_this2), key)
277
283
  };
278
284
  } else if (originType === 'uploadImg') {
279
285
  var _context4;
280
286
  var commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
281
287
  return _objectSpread(_objectSpread(_objectSpread({}, props), commonProps), {}, {
282
288
  readonly: true,
283
- onBlur: (0, _bind["default"])(_context4 = _this2.onExitValid).call(_context4, _this2, key)
289
+ onBlur: (0, _bind["default"])(_context4 = _this2.onExitValid).call(_context4, (0, _assertThisInitialized2["default"])(_this2), key)
284
290
  });
285
291
  } else {
286
292
  var _context5;
287
293
  return {
288
- onBlur: (0, _bind["default"])(_context5 = _this2.onExitValid).call(_context5, _this2, key)
294
+ onBlur: (0, _bind["default"])(_context5 = _this2.onExitValid).call(_context5, (0, _assertThisInitialized2["default"])(_this2), key)
289
295
  };
290
296
  }
291
297
  } else if (type === 'text' || type === 'textArea') {
292
298
  var _context6, _context7;
293
299
  return _objectSpread(_objectSpread({}, props), {}, {
294
- onChange: (0, _bind["default"])(_context6 = _this2.onExitValid).call(_context6, _this2, key),
295
- onBlur: (0, _bind["default"])(_context7 = _this2.onChange).call(_context7, _this2, key)
300
+ onChange: (0, _bind["default"])(_context6 = _this2.onExitValid).call(_context6, (0, _assertThisInitialized2["default"])(_this2), key),
301
+ onBlur: (0, _bind["default"])(_context7 = _this2.onChange).call(_context7, (0, _assertThisInitialized2["default"])(_this2), key)
296
302
  });
297
303
  } else if (type === 'date') {
298
304
  var _context8, _context9;
299
305
  var propsObj = _objectSpread(_objectSpread({}, props), {}, {
300
- onChange: (0, _bind["default"])(_context8 = _this2.onBlur).call(_context8, _this2, key),
301
- onBlur: (0, _bind["default"])(_context9 = _this2.onExitValid).call(_context9, _this2, key)
306
+ onChange: (0, _bind["default"])(_context8 = _this2.onBlur).call(_context8, (0, _assertThisInitialized2["default"])(_this2), key),
307
+ onBlur: (0, _bind["default"])(_context9 = _this2.onExitValid).call(_context9, (0, _assertThisInitialized2["default"])(_this2), key)
302
308
  });
303
309
  if (_this2.props.onOpenChange && typeof _this2.props.onOpenChange === 'function') {
304
- var _context0;
305
- propsObj.onOpenChange = (0, _bind["default"])(_context0 = _this2.props.onOpenChange).call(_context0, _this2, key);
310
+ var _context10;
311
+ propsObj.onOpenChange = (0, _bind["default"])(_context10 = _this2.props.onOpenChange).call(_context10, (0, _assertThisInitialized2["default"])(_this2), key);
306
312
  }
307
313
  return propsObj;
308
314
  } else if (type === 'captcha') {
309
- var _context1, _context10, _context11;
315
+ var _context11, _context12, _context13;
310
316
  return _objectSpread(_objectSpread({}, props), {}, {
311
- onChange: (0, _bind["default"])(_context1 = _this2.onBlur).call(_context1, _this2, key),
312
- onBlur: (0, _bind["default"])(_context10 = _this2.onExitValid).call(_context10, _this2, key),
313
- onGetCode: (0, _bind["default"])(_context11 = _this2.onGetCode).call(_context11, _this2, key)
317
+ onChange: (0, _bind["default"])(_context11 = _this2.onBlur).call(_context11, (0, _assertThisInitialized2["default"])(_this2), key),
318
+ onBlur: (0, _bind["default"])(_context12 = _this2.onExitValid).call(_context12, (0, _assertThisInitialized2["default"])(_this2), key),
319
+ onGetCode: (0, _bind["default"])(_context13 = _this2.onGetCode).call(_context13, (0, _assertThisInitialized2["default"])(_this2), key)
314
320
  });
315
321
  } else if (type === 'area') {
316
- var _context12, _context13;
322
+ var _context14, _context15;
317
323
  return _objectSpread(_objectSpread({}, props), {}, {
318
- onChange: (0, _bind["default"])(_context12 = _this2.onBlur).call(_context12, _this2, key),
319
- onBlur: (0, _bind["default"])(_context13 = _this2.onExitValid).call(_context13, _this2, key),
324
+ onChange: (0, _bind["default"])(_context14 = _this2.onBlur).call(_context14, (0, _assertThisInitialized2["default"])(_this2), key),
325
+ onBlur: (0, _bind["default"])(_context15 = _this2.onExitValid).call(_context15, (0, _assertThisInitialized2["default"])(_this2), key),
320
326
  onAreaSearch: _this2.props.onAreaSearch
321
327
  });
322
328
  } else if (type === 'uploadImg') {
323
- var _context14, _context15;
329
+ var _context16, _context17;
324
330
  var _commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
325
331
  return _objectSpread(_objectSpread(_objectSpread({}, props), _commonProps), {}, {
326
- onChange: (0, _bind["default"])(_context14 = _this2.onBlur).call(_context14, _this2, key),
327
- onBlur: (0, _bind["default"])(_context15 = _this2.onExitValid).call(_context15, _this2, key)
332
+ onChange: (0, _bind["default"])(_context16 = _this2.onBlur).call(_context16, (0, _assertThisInitialized2["default"])(_this2), key),
333
+ onBlur: (0, _bind["default"])(_context17 = _this2.onExitValid).call(_context17, (0, _assertThisInitialized2["default"])(_this2), key)
328
334
  });
329
335
  } else if (type === 'double') {
330
336
  return props;
331
337
  } else {
332
- var _context16, _context17;
338
+ var _context18, _context19;
333
339
  return _objectSpread(_objectSpread({}, props), {}, {
334
- onChange: (0, _bind["default"])(_context16 = _this2.onBlur).call(_context16, _this2, key),
335
- onBlur: (0, _bind["default"])(_context17 = _this2.onExitValid).call(_context17, _this2, key)
340
+ onChange: (0, _bind["default"])(_context18 = _this2.onBlur).call(_context18, (0, _assertThisInitialized2["default"])(_this2), key),
341
+ onBlur: (0, _bind["default"])(_context19 = _this2.onExitValid).call(_context19, (0, _assertThisInitialized2["default"])(_this2), key)
336
342
  });
337
343
  }
338
344
  });
339
- (0, _defineProperty2["default"])(_this2, "getControlProps", function (control, status) {
345
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getControlProps", function (control, status) {
340
346
  var _this2$props3 = _this2.props,
341
347
  _this2$props3$value = _this2$props3.value,
342
348
  value = _this2$props3$value === void 0 ? {} : _this2$props3$value,
@@ -351,25 +357,25 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
351
357
  value: (0, _Control.makeString)(value[control.key])
352
358
  });
353
359
  });
354
- (0, _defineProperty2["default"])(_this2, "getOptions", function (key, options) {
360
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getOptions", function (key, options) {
355
361
  var higher = _this2.props.options || {};
356
362
  return higher[key] || options;
357
363
  });
358
- (0, _defineProperty2["default"])(_this2, "toEmpty", function (props) {});
359
- (0, _defineProperty2["default"])(_this2, "toText", function (props) {
364
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toEmpty", function (props) {});
365
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toText", function (props) {
360
366
  return /*#__PURE__*/_react["default"].createElement(Controlled, props);
361
367
  });
362
- (0, _defineProperty2["default"])(_this2, "toPassword", function (props) {
368
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toPassword", function (props) {
363
369
  return /*#__PURE__*/_react["default"].createElement(Controlled, props);
364
370
  });
365
- (0, _defineProperty2["default"])(_this2, "toEditor", function (props, control) {
371
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toEditor", function (props, control) {
366
372
  props.inputKey = control.key;
367
373
  return /*#__PURE__*/_react["default"].createElement(Controlled, props);
368
374
  });
369
- (0, _defineProperty2["default"])(_this2, "toSelectWriting", function (props, control) {
375
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toSelectWriting", function (props, control) {
370
376
  return /*#__PURE__*/_react["default"].createElement(Controlled, props);
371
377
  });
372
- (0, _defineProperty2["default"])(_this2, "toTextArea", function (props, control) {
378
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toTextArea", function (props, control) {
373
379
  if (control.allFullFather) {
374
380
  props.rows = control.rows;
375
381
  props.maxLength = control.maxLength;
@@ -384,22 +390,22 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
384
390
  }
385
391
  return /*#__PURE__*/_react["default"].createElement(Controlled, props);
386
392
  });
387
- (0, _defineProperty2["default"])(_this2, "toNumber", function (props) {
393
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toNumber", function (props) {
388
394
  props.defaultValue = props.value;
389
395
  delete props.value;
390
396
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
391
397
  });
392
- (0, _defineProperty2["default"])(_this2, "toDoubleInput", function (props, control, cc) {
393
- var _context18, _context19;
398
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toDoubleInput", function (props, control, cc) {
399
+ var _context20, _context21;
394
400
  props.defaultValue = props.value;
395
401
  props.doubleKey = props.key;
396
402
  props.doubleValue = _helper["default"].getObject(cc, props.key);
397
- props.onChangeKey1 = (0, _bind["default"])(_context18 = _this2.onChange).call(_context18, _this2, props.key[0]);
398
- props.onChangeKey2 = (0, _bind["default"])(_context19 = _this2.onChange).call(_context19, _this2, props.key[1]);
403
+ props.onChangeKey1 = (0, _bind["default"])(_context20 = _this2.onChange).call(_context20, (0, _assertThisInitialized2["default"])(_this2), props.key[0]);
404
+ props.onChangeKey2 = (0, _bind["default"])(_context21 = _this2.onChange).call(_context21, (0, _assertThisInitialized2["default"])(_this2), props.key[1]);
399
405
  delete props.value;
400
406
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
401
407
  });
402
- (0, _defineProperty2["default"])(_this2, "toSelect", function (props, _ref6) {
408
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toSelect", function (props, _ref6) {
403
409
  var options = _ref6.options,
404
410
  key = _ref6.key;
405
411
  props.getPopupContainer = _this2.getPopupContainer;
@@ -407,7 +413,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
407
413
  props.dropdownMatchSelectWidth = false;
408
414
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
409
415
  });
410
- (0, _defineProperty2["default"])(_this2, "toTreeSelect", function (props, filter) {
416
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toTreeSelect", function (props, filter) {
411
417
  var container = _this2.getContainer();
412
418
  container && (props.getPopupContainer = container);
413
419
  props.options = _this2.getOptions(filter);
@@ -415,7 +421,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
415
421
  props.placeholder = filter.placeholder || '';
416
422
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
417
423
  });
418
- (0, _defineProperty2["default"])(_this2, "createSearchEvent", function (control) {
424
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "createSearchEvent", function (control) {
419
425
  if (_this2.props.onSearch) {
420
426
  return function (value) {
421
427
  return _this2.props.onSearch(control.key, value, control);
@@ -424,7 +430,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
424
430
  return null;
425
431
  }
426
432
  });
427
- (0, _defineProperty2["default"])(_this2, "createGetCodeEvent", function (control) {
433
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "createGetCodeEvent", function (control) {
428
434
  if (_this2.props.onGetCode) {
429
435
  return function (value) {
430
436
  return _this2.props.onGetCode(control.key, value, control);
@@ -433,7 +439,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
433
439
  return null;
434
440
  }
435
441
  });
436
- (0, _defineProperty2["default"])(_this2, "toSearch", function (props, control) {
442
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toSearch", function (props, control) {
437
443
  props.getPopupContainer = _this2.getPopupContainer;
438
444
  props.options = _this2.getOptions(control.key, control.options);
439
445
  props.onSearch = _this2.createSearchEvent(control);
@@ -441,7 +447,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
441
447
  props.size = 'large';
442
448
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
443
449
  });
444
- (0, _defineProperty2["default"])(_this2, "toDate", function (props, _ref7) {
450
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toDate", function (props, _ref7) {
445
451
  var rule = _ref7.rule;
446
452
  props.getCalendarContainer = _this2.getPopupContainer;
447
453
  props.style = {
@@ -450,32 +456,32 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
450
456
  rule && (props.disabledDate = _this2.validDate(rule));
451
457
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
452
458
  });
453
- (0, _defineProperty2["default"])(_this2, "toRadioGroup", function (props, _ref8) {
459
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toRadioGroup", function (props, _ref8) {
454
460
  var key = _ref8.key,
455
461
  options = _ref8.options;
456
462
  props.options = _this2.getOptions(key, options);
457
463
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
458
464
  });
459
- (0, _defineProperty2["default"])(_this2, "captcha", function (props, control) {
465
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "captcha", function (props, control) {
460
466
  props.onGetCode = _this2.props.onGetCode;
461
467
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
462
468
  });
463
- (0, _defineProperty2["default"])(_this2, "toReadonly", function (props, _ref9) {
469
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toReadonly", function (props, _ref9) {
464
470
  var options = _ref9.options,
465
471
  key = _ref9.key;
466
472
  props.value = (0, _Control.getTitle)(props.value, _this2.getOptions(key, options));
467
473
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
468
474
  });
469
- (0, _defineProperty2["default"])(_this2, "selectSearch", function (props, control) {
475
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "selectSearch", function (props, control) {
470
476
  props.getPopupContainer = _this2.getPopupContainer;
471
477
  props.options = _this2.getOptions(control.key, control.options);
472
478
  props.onSearch = _this2.createSearchEvent(control);
473
479
  props.dropdownMatchSelectWidth = false;
474
480
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
475
481
  });
476
- (0, _defineProperty2["default"])(_this2, "area", function (props, _ref0) {
477
- var key = _ref0.key,
478
- options = _ref0.options;
482
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "area", function (props, _ref10) {
483
+ var key = _ref10.key,
484
+ options = _ref10.options;
479
485
  var readonly = _this2.props.readonly;
480
486
  props.parentKey = key;
481
487
  props.options = _this2.getOptions(key, options);
@@ -485,17 +491,17 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
485
491
  }) ? true : false;
486
492
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
487
493
  });
488
- (0, _defineProperty2["default"])(_this2, "uploadImg", function (props, control) {
489
- var _context20;
494
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "uploadImg", function (props, control) {
495
+ var _context22;
490
496
  var readonly = _this2.props.readonly;
491
497
  props.required = control.required || false;
492
- props.onFileChange = (0, _bind["default"])(_context20 = _this2.onFileChange).call(_context20, _this2, control);
498
+ props.onFileChange = (0, _bind["default"])(_context22 = _this2.onFileChange).call(_context22, (0, _assertThisInitialized2["default"])(_this2), control);
493
499
  props.readonly = readonly === true || (0, _isArray["default"])(readonly) && (0, _some["default"])(readonly).call(readonly, function (readonlyKey) {
494
500
  return readonlyKey === control.key;
495
501
  }) ? true : false;
496
502
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
497
503
  });
498
- (0, _defineProperty2["default"])(_this2, "toCascader", function (props, control) {
504
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCascader", function (props, control) {
499
505
  var container = _this2.getContainer();
500
506
  container && (props.getPopupContainer = container);
501
507
  props.options = control.options || [];
@@ -504,16 +510,16 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
504
510
  props.loadData = _this2.createSearchEvent(control);
505
511
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
506
512
  });
507
- (0, _defineProperty2["default"])(_this2, "toCheckbox", function (props, control) {
508
- var _context21;
513
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCheckbox", function (props, control) {
514
+ var _context23;
509
515
  var options = control.options || [];
510
516
  return /*#__PURE__*/_react["default"].createElement(_checkbox["default"].Group, {
511
517
  options: options,
512
- onChange: (0, _bind["default"])(_context21 = _this2.onBlur).call(_context21, _this2, control.key),
518
+ onChange: (0, _bind["default"])(_context23 = _this2.onBlur).call(_context23, (0, _assertThisInitialized2["default"])(_this2), control.key),
513
519
  value: _this2.props.value[control.key]
514
520
  });
515
521
  });
516
- (0, _defineProperty2["default"])(_this2, "toControl", function (props, control) {
522
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toControl", function (props, control) {
517
523
  switch (props.type) {
518
524
  case 'readonly':
519
525
  return _this2.toReadonly(props, control);
@@ -561,15 +567,15 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
561
567
  return 'type error';
562
568
  }
563
569
  });
564
- (0, _defineProperty2["default"])(_this2, "toLabel", function (_ref1, type) {
565
- var title = _ref1.title,
566
- showAdd = _ref1.showAdd,
567
- key = _ref1.key,
568
- showInfo = _ref1.showInfo,
569
- showInfoTitle = _ref1.showInfoTitle;
570
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toLabel", function (_ref11, type) {
571
+ var title = _ref11.title,
572
+ showAdd = _ref11.showAdd,
573
+ key = _ref11.key,
574
+ showInfo = _ref11.showInfo,
575
+ showInfoTitle = _ref11.showInfoTitle;
570
576
  if (showAdd && type !== 'readonly') {
571
- var _context22;
572
- var onClick = (0, _bind["default"])(_context22 = _this2.onAdd).call(_context22, _this2, key, title);
577
+ var _context24;
578
+ var onClick = (0, _bind["default"])(_context24 = _this2.onAdd).call(_context24, (0, _assertThisInitialized2["default"])(_this2), key, title);
573
579
  return /*#__PURE__*/_react["default"].createElement("span", null, title, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
574
580
  role: "add",
575
581
  type: "plus-circle-o",
@@ -585,7 +591,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
585
591
  return title;
586
592
  }
587
593
  });
588
- (0, _defineProperty2["default"])(_this2, "toCol", function (span, control) {
594
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCol", function (span, control) {
589
595
  var factor = control.span || 1;
590
596
  var status = _this2.getValidState(control);
591
597
  var controlProps = _this2.getControlProps(control, status);
@@ -602,7 +608,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
602
608
  key: control.key
603
609
  }, checkable && /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
604
610
  className: (0, _variables["default"])('SuperForm2').checkbox,
605
- onChange: (0, _bind["default"])(onCheckItem).call(onCheckItem, _this2, control),
611
+ onChange: (0, _bind["default"])(onCheckItem).call(onCheckItem, (0, _assertThisInitialized2["default"])(_this2), control),
606
612
  checked: control.checked
607
613
  }), /*#__PURE__*/_react["default"].createElement(FormItem, (0, _extends2["default"])({}, itemProps, {
608
614
  className: checkable ? (0, _variables["default"])('SuperForm2').formItemWithCheckbox : '',
@@ -630,8 +636,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
630
636
  }
631
637
  });
632
638
  });
633
- (0, _defineProperty2["default"])(_this2, "toCols", function () {
634
- var _context23;
639
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCols", function () {
640
+ var _context25;
635
641
  var _this2$props5 = _this2.props,
636
642
  _this2$props5$colNum = _this2$props5.colNum,
637
643
  colNum = _this2$props5$colNum === void 0 ? defaultColNum : _this2$props5$colNum,
@@ -640,7 +646,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
640
646
  colNum = 1;
641
647
  }
642
648
  var span = 24 / colNum;
643
- return (0, _map["default"])(_context23 = _this2.getControls()).call(_context23, function (control) {
649
+ return (0, _map["default"])(_context25 = _this2.getControls()).call(_context25, function (control) {
644
650
  if (allFullFather) {
645
651
  control.allFullFather = allFullFather;
646
652
  }
@@ -649,8 +655,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
649
655
  });
650
656
  return _this2;
651
657
  }
652
- (0, _inherits2["default"])(SuperForm2, _React$Component2);
653
- return (0, _createClass2["default"])(SuperForm2, [{
658
+ (0, _createClass2["default"])(SuperForm2, [{
654
659
  key: "render",
655
660
  value: function render() {
656
661
  this.initValidState();
@@ -668,6 +673,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
668
673
  }, this.toCols())));
669
674
  }
670
675
  }]);
676
+ return SuperForm2;
671
677
  }(_react["default"].Component);
672
678
  (0, _defineProperty2["default"])(SuperForm2, "propTypes", {
673
679
  controls: _propTypes["default"].arrayOf(_propTypes["default"].shape(ControlType)).isRequired,
@@ -12,14 +12,15 @@ var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
12
12
  var _pagination = _interopRequireDefault(require("antd/lib/pagination"));
13
13
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
14
14
  var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
15
+ var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
16
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
15
17
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
16
18
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
17
- var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
18
19
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
19
20
  var _react = _interopRequireDefault(require("react"));
20
21
  var _propTypes = _interopRequireDefault(require("prop-types"));
21
- function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
22
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
23
+ 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; } }
23
24
  /**
24
25
  * maxRecords: 最大记录数
25
26
  * selRecords: [可选]已选记录条数
@@ -32,6 +33,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
32
33
  * onPageSizeChange: 页大小改变时触发,原型func(pageSize, pageNumber)
33
34
  */
34
35
  var SuperPagination = /*#__PURE__*/function (_React$Component) {
36
+ (0, _inherits2["default"])(SuperPagination, _React$Component);
37
+ var _super = _createSuper(SuperPagination);
35
38
  function SuperPagination() {
36
39
  var _context;
37
40
  var _this;
@@ -39,14 +42,14 @@ var SuperPagination = /*#__PURE__*/function (_React$Component) {
39
42
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
40
43
  args[_key] = arguments[_key];
41
44
  }
42
- _this = _callSuper(this, SuperPagination, (0, _concat["default"])(_context = []).call(_context, args));
43
- (0, _defineProperty2["default"])(_this, "onChange", function (page) {
45
+ _this = _super.call.apply(_super, (0, _concat["default"])(_context = [this]).call(_context, args));
46
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (page) {
44
47
  var _this$props$callback = _this.props.callback,
45
48
  callback = _this$props$callback === void 0 ? {} : _this$props$callback;
46
49
  var onPageNumberChange = _this.props.onPageNumberChange || callback.onPageNumberChange;
47
50
  onPageNumberChange && onPageNumberChange(page);
48
51
  });
49
- (0, _defineProperty2["default"])(_this, "onShowSizeChange", function (current, size) {
52
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onShowSizeChange", function (current, size) {
50
53
  var _this$props$callback2 = _this.props.callback,
51
54
  callback = _this$props$callback2 === void 0 ? {} : _this$props$callback2;
52
55
  var onPageSizeChange = _this.props.onPageSizeChange || callback.onPageSizeChange;
@@ -54,8 +57,7 @@ var SuperPagination = /*#__PURE__*/function (_React$Component) {
54
57
  });
55
58
  return _this;
56
59
  }
57
- (0, _inherits2["default"])(SuperPagination, _React$Component);
58
- return (0, _createClass2["default"])(SuperPagination, [{
60
+ (0, _createClass2["default"])(SuperPagination, [{
59
61
  key: "render",
60
62
  value: function render() {
61
63
  var _this$props = this.props,
@@ -98,6 +100,7 @@ var SuperPagination = /*#__PURE__*/function (_React$Component) {
98
100
  }, /*#__PURE__*/_react["default"].createElement(_pagination["default"], props));
99
101
  }
100
102
  }]);
103
+ return SuperPagination;
101
104
  }(_react["default"].Component);
102
105
  (0, _defineProperty2["default"])(SuperPagination, "propTypes", {
103
106
  maxRecords: _propTypes["default"].number,