cloud-b2b 1.1.78 → 1.1.79

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 +13 -10
  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 +23 -20
  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/Search2/Search.js +86 -83
  19. package/es/Search2/Search.less +64 -64
  20. package/es/Search2/package.json +6 -6
  21. package/es/Sidebar/Sidebar.js +14 -11
  22. package/es/Sidebar2/Sidebar.js +16 -13
  23. package/es/SuperForm/SuperForm.js +79 -74
  24. package/es/SuperForm2/SuperForm.js +114 -108
  25. package/es/SuperPagination/SuperPagination.js +11 -8
  26. package/es/SuperTab/SuperTab.js +15 -12
  27. package/es/SuperTab2/SuperTab2.js +16 -13
  28. package/es/SuperTable/DragSortRow.js +15 -12
  29. package/es/SuperTable/FilterDropDown.js +14 -11
  30. package/es/SuperTable/SuperTable.js +73 -70
  31. package/es/SuperTable2/SuperTable2.js +92 -89
  32. package/es/SuperTable2/SuperTableCell.js +30 -27
  33. package/es/SuperTable3/FilterDropDown.js +14 -11
  34. package/es/SuperTable3/SuperTable.js +61 -58
  35. package/es/SuperToolbar/SuperToolbar.js +15 -12
  36. package/es/SuperUpload/SuperUpload.js +38 -38
  37. package/es/Viewer/ImageViews.js +19 -16
  38. package/es/Viewer/Viewer.js +14 -11
  39. package/es/helper.js +17 -18
  40. package/lib/Area/Area.js +13 -10
  41. package/lib/CodeInput/CodeInput.js +19 -16
  42. package/lib/Enhance/Dialogs.js +14 -11
  43. package/lib/Enhance/Loading.js +18 -15
  44. package/lib/Header/Header.js +20 -17
  45. package/lib/Header/Vertical.js +14 -11
  46. package/lib/ImageView/ImageView.js +13 -10
  47. package/lib/InpurCascader/InputCascader.js +14 -11
  48. package/lib/InputEditor/InputEditor.js +18 -16
  49. package/lib/InputSearch/InputSearch.js +23 -20
  50. package/lib/InputSelect/InputSelect.js +17 -14
  51. package/lib/InputTreeSelect/InputTreeSelect.js +13 -10
  52. package/lib/InputWriting/InputWriting.js +15 -12
  53. package/lib/Layout/Layout.js +17 -14
  54. package/lib/LayoutLink/LayoutLink.js +2 -1
  55. package/lib/Link/Link.js +10 -7
  56. package/lib/NumberInput/NumberInput.js +16 -13
  57. package/lib/Search/Search.js +57 -53
  58. package/lib/Search2/Search.js +88 -84
  59. package/lib/Search2/Search.less +64 -64
  60. package/lib/Search2/package.json +6 -6
  61. package/lib/Sidebar/Sidebar.js +14 -11
  62. package/lib/Sidebar2/Sidebar.js +16 -13
  63. package/lib/SuperForm/SuperForm.js +81 -75
  64. package/lib/SuperForm2/SuperForm.js +116 -109
  65. package/lib/SuperPagination/SuperPagination.js +11 -8
  66. package/lib/SuperTab/SuperTab.js +15 -12
  67. package/lib/SuperTab2/SuperTab2.js +16 -13
  68. package/lib/SuperTable/DragSortRow.js +15 -12
  69. package/lib/SuperTable/FilterDropDown.js +14 -11
  70. package/lib/SuperTable/SuperTable.js +73 -70
  71. package/lib/SuperTable2/SuperTable2.js +94 -90
  72. package/lib/SuperTable2/SuperTableCell.js +30 -27
  73. package/lib/SuperTable3/FilterDropDown.js +14 -11
  74. package/lib/SuperTable3/SuperTable.js +61 -58
  75. package/lib/SuperToolbar/SuperToolbar.js +15 -12
  76. package/lib/SuperUpload/SuperUpload.js +40 -39
  77. package/lib/Viewer/ImageViews.js +19 -16
  78. package/lib/Viewer/Viewer.js +14 -11
  79. package/lib/helper.js +17 -18
  80. 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 _context27, _context28; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context27 = ownKeys(Object(t), !0)).call(_context27, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context28 = ownKeys(Object(t))).call(_context28, 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 _context29, _context30; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context29 = ownKeys(Object(t), !0)).call(_context29, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context30 = ownKeys(Object(t))).call(_context30, 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 = 'default';
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) {
@@ -112,6 +115,7 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
112
115
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
113
116
  }
114
117
  }]);
118
+ return Controlled;
115
119
  }(_react["default"].Component);
116
120
  /**
117
121
  * colNum:[可选],表单的列数,默认为4
@@ -127,6 +131,8 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
127
131
  * onFileChange:上传组件触发,原型为func(key,{fileList, fileDeleteList})
128
132
  */
129
133
  var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
134
+ (0, _inherits2["default"])(SuperForm2, _React$Component2);
135
+ var _super2 = _createSuper(SuperForm2);
130
136
  function SuperForm2() {
131
137
  var _context;
132
138
  var _this2;
@@ -134,35 +140,35 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
134
140
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
135
141
  args[_key] = arguments[_key];
136
142
  }
137
- _this2 = _callSuper(this, SuperForm2, (0, _concat["default"])(_context = []).call(_context, args));
138
- (0, _defineProperty2["default"])(_this2, "onAdd", function (key, title) {
143
+ _this2 = _super2.call.apply(_super2, (0, _concat["default"])(_context = [this]).call(_context, args));
144
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onAdd", function (key, title) {
139
145
  var onAdd = _this2.props.onAdd;
140
146
  onAdd && onAdd(key, title);
141
147
  });
142
- (0, _defineProperty2["default"])(_this2, "onFileChange", function (_ref, file) {
148
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onFileChange", function (_ref, file) {
143
149
  var key = _ref.key;
144
150
  var onFileChange = _this2.props.onFileChange;
145
151
  onFileChange && onFileChange(key, file);
146
152
  });
147
- (0, _defineProperty2["default"])(_this2, "onChange", function (key, value) {
153
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onChange", function (key, value) {
148
154
  var onChange = _this2.props.onChange;
149
155
  if (onChange) {
150
156
  _this2.onExitValid(key);
151
157
  onChange(key, value);
152
158
  }
153
159
  });
154
- (0, _defineProperty2["default"])(_this2, "onGetCode", function (key, value) {
160
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onGetCode", function (key, value) {
155
161
  var onGetCode = _this2.props.onGetCode;
156
162
  onGetCode && onGetCode();
157
163
  });
158
- (0, _defineProperty2["default"])(_this2, "onBlur", function (key, value) {
164
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onBlur", function (key, value) {
159
165
  var onChange = _this2.props.onChange;
160
166
  if (onChange) {
161
167
  _this2.onExitValid(key);
162
168
  onChange(key, value);
163
169
  }
164
170
  });
165
- (0, _defineProperty2["default"])(_this2, "onExitValid", function (key, value) {
171
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "onExitValid", function (key, value) {
166
172
  if (key === _this2.validKey) {
167
173
  _this2.validKey = '';
168
174
  _this2.props.onExitValid();
@@ -170,7 +176,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
170
176
  _this2.props.onChangeOperate && _this2.props.onChangeOperate(key, value);
171
177
  });
172
178
  // 动态生成getValidState方法
173
- (0, _defineProperty2["default"])(_this2, "initValidState", function () {
179
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "initValidState", function () {
174
180
  var _this2$props = _this2.props,
175
181
  value = _this2$props.value,
176
182
  valid = _this2$props.valid;
@@ -191,7 +197,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
191
197
  };
192
198
  _this2.getValidState = valid ? _valid : invalid;
193
199
  });
194
- (0, _defineProperty2["default"])(_this2, "validDate", function (_ref3) {
200
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "validDate", function (_ref3) {
195
201
  var key = _ref3.key,
196
202
  type = _ref3.type;
197
203
  return function (date) {
@@ -210,25 +216,25 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
210
216
  }
211
217
  };
212
218
  });
213
- (0, _defineProperty2["default"])(_this2, "getPopupContainer", function () {
219
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getPopupContainer", function () {
214
220
  var container = _this2.props.container;
215
221
  if (typeof container === 'undefined') {
216
- return _reactDom["default"].findDOMNode(_this2);
222
+ return _reactDom["default"].findDOMNode((0, _assertThisInitialized2["default"])(_this2));
217
223
  } else if (typeof container === 'boolean') {
218
224
  return document.body;
219
225
  } else {
220
226
  return _reactDom["default"].findDOMNode(container);
221
227
  }
222
228
  });
223
- (0, _defineProperty2["default"])(_this2, "getMaxWidth", function () {
229
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getMaxWidth", function () {
224
230
  var _this2$props$colNum = _this2.props.colNum,
225
231
  colNum = _this2$props$colNum === void 0 ? defaultColNum : _this2$props$colNum;
226
232
  return colNum * 1200;
227
233
  });
228
- (0, _defineProperty2["default"])(_this2, "getContainer", function () {
234
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getContainer", function () {
229
235
  return _this2.props.getContainer;
230
236
  });
231
- (0, _defineProperty2["default"])(_this2, "getControls", function () {
237
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getControls", function () {
232
238
  var _this2$props2 = _this2.props,
233
239
  hideControls = _this2$props2.hideControls,
234
240
  controls = _this2$props2.controls;
@@ -242,12 +248,12 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
242
248
  });
243
249
  }
244
250
  });
245
- (0, _defineProperty2["default"])(_this2, "getType", function (_ref4) {
251
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getType", function (_ref4) {
246
252
  var _context2;
247
253
  var key = _ref4.key,
248
254
  type = _ref4.type;
249
255
  var readonly = _this2.props.readonly;
250
- if ((0, _includes["default"])(_context2 = ['area', 'uploadImg']).call(_context2, type)) {
256
+ if ((0, _includes["default"])(_context2 = ['area', 'uploadImg', 'checkbox']).call(_context2, type)) {
251
257
  return type;
252
258
  } else if (!readonly) {
253
259
  return type;
@@ -261,7 +267,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
261
267
  return type;
262
268
  }
263
269
  });
264
- (0, _defineProperty2["default"])(_this2, "specialProps", function (type, _ref5) {
270
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "specialProps", function (type, _ref5) {
265
271
  var key = _ref5.key,
266
272
  _ref5$props = _ref5.props,
267
273
  props = _ref5$props === void 0 ? {} : _ref5$props,
@@ -272,70 +278,70 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
272
278
  return {
273
279
  type: 'textArea',
274
280
  readonly: true,
275
- onBlur: (0, _bind["default"])(_context3 = _this2.onExitValid).call(_context3, _this2, key)
281
+ onBlur: (0, _bind["default"])(_context3 = _this2.onExitValid).call(_context3, (0, _assertThisInitialized2["default"])(_this2), key)
276
282
  };
277
283
  } else if (originType === 'uploadImg') {
278
284
  var _context4;
279
285
  var commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
280
286
  return _objectSpread(_objectSpread(_objectSpread({}, props), commonProps), {}, {
281
287
  readonly: true,
282
- onBlur: (0, _bind["default"])(_context4 = _this2.onExitValid).call(_context4, _this2, key)
288
+ onBlur: (0, _bind["default"])(_context4 = _this2.onExitValid).call(_context4, (0, _assertThisInitialized2["default"])(_this2), key)
283
289
  });
284
290
  } else {
285
291
  var _context5;
286
292
  return {
287
- onBlur: (0, _bind["default"])(_context5 = _this2.onExitValid).call(_context5, _this2, key)
293
+ onBlur: (0, _bind["default"])(_context5 = _this2.onExitValid).call(_context5, (0, _assertThisInitialized2["default"])(_this2), key)
288
294
  };
289
295
  }
290
296
  } else if (type === 'text' || type === 'textArea') {
291
297
  var _context6, _context7;
292
298
  return _objectSpread(_objectSpread({}, props), {}, {
293
- onChange: (0, _bind["default"])(_context6 = _this2.onExitValid).call(_context6, _this2, key),
294
- onBlur: (0, _bind["default"])(_context7 = _this2.onChange).call(_context7, _this2, key)
299
+ onChange: (0, _bind["default"])(_context6 = _this2.onExitValid).call(_context6, (0, _assertThisInitialized2["default"])(_this2), key),
300
+ onBlur: (0, _bind["default"])(_context7 = _this2.onChange).call(_context7, (0, _assertThisInitialized2["default"])(_this2), key)
295
301
  });
296
302
  } else if (type === 'date') {
297
303
  var _context8, _context9;
298
304
  var propsObj = _objectSpread(_objectSpread({}, props), {}, {
299
- onChange: (0, _bind["default"])(_context8 = _this2.onBlur).call(_context8, _this2, key),
300
- onBlur: (0, _bind["default"])(_context9 = _this2.onExitValid).call(_context9, _this2, key)
305
+ onChange: (0, _bind["default"])(_context8 = _this2.onBlur).call(_context8, (0, _assertThisInitialized2["default"])(_this2), key),
306
+ onBlur: (0, _bind["default"])(_context9 = _this2.onExitValid).call(_context9, (0, _assertThisInitialized2["default"])(_this2), key)
301
307
  });
302
308
  if (_this2.props.onOpenChange && typeof _this2.props.onOpenChange === 'function') {
303
- var _context0;
304
- propsObj.onOpenChange = (0, _bind["default"])(_context0 = _this2.props.onOpenChange).call(_context0, _this2, key);
309
+ var _context10;
310
+ propsObj.onOpenChange = (0, _bind["default"])(_context10 = _this2.props.onOpenChange).call(_context10, (0, _assertThisInitialized2["default"])(_this2), key);
305
311
  }
306
312
  return propsObj;
307
313
  } else if (type === 'captcha') {
308
- var _context1, _context10, _context11;
314
+ var _context11, _context12, _context13;
309
315
  return _objectSpread(_objectSpread({}, props), {}, {
310
- onChange: (0, _bind["default"])(_context1 = _this2.onBlur).call(_context1, _this2, key),
311
- onBlur: (0, _bind["default"])(_context10 = _this2.onExitValid).call(_context10, _this2, key),
312
- onGetCode: (0, _bind["default"])(_context11 = _this2.onGetCode).call(_context11, _this2, key)
316
+ onChange: (0, _bind["default"])(_context11 = _this2.onBlur).call(_context11, (0, _assertThisInitialized2["default"])(_this2), key),
317
+ onBlur: (0, _bind["default"])(_context12 = _this2.onExitValid).call(_context12, (0, _assertThisInitialized2["default"])(_this2), key),
318
+ onGetCode: (0, _bind["default"])(_context13 = _this2.onGetCode).call(_context13, (0, _assertThisInitialized2["default"])(_this2), key)
313
319
  });
314
320
  } else if (type === 'area') {
315
- var _context12, _context13;
321
+ var _context14, _context15;
316
322
  return _objectSpread(_objectSpread({}, props), {}, {
317
- onChange: (0, _bind["default"])(_context12 = _this2.onBlur).call(_context12, _this2, key),
318
- onBlur: (0, _bind["default"])(_context13 = _this2.onExitValid).call(_context13, _this2, key),
323
+ onChange: (0, _bind["default"])(_context14 = _this2.onBlur).call(_context14, (0, _assertThisInitialized2["default"])(_this2), key),
324
+ onBlur: (0, _bind["default"])(_context15 = _this2.onExitValid).call(_context15, (0, _assertThisInitialized2["default"])(_this2), key),
319
325
  onAreaSearch: _this2.props.onAreaSearch
320
326
  });
321
327
  } else if (type === 'uploadImg') {
322
- var _context14, _context15;
328
+ var _context16, _context17;
323
329
  var _commonProps = _this2.props.buildSuperUploadProps ? _this2.props.buildSuperUploadProps() : {};
324
330
  return _objectSpread(_objectSpread(_objectSpread({}, props), _commonProps), {}, {
325
- onChange: (0, _bind["default"])(_context14 = _this2.onBlur).call(_context14, _this2, key),
326
- onBlur: (0, _bind["default"])(_context15 = _this2.onExitValid).call(_context15, _this2, key)
331
+ onChange: (0, _bind["default"])(_context16 = _this2.onBlur).call(_context16, (0, _assertThisInitialized2["default"])(_this2), key),
332
+ onBlur: (0, _bind["default"])(_context17 = _this2.onExitValid).call(_context17, (0, _assertThisInitialized2["default"])(_this2), key)
327
333
  });
328
334
  } else if (type === 'double') {
329
335
  return props;
330
336
  } else {
331
- var _context16, _context17;
337
+ var _context18, _context19;
332
338
  return _objectSpread(_objectSpread({}, props), {}, {
333
- onChange: (0, _bind["default"])(_context16 = _this2.onBlur).call(_context16, _this2, key),
334
- onBlur: (0, _bind["default"])(_context17 = _this2.onExitValid).call(_context17, _this2, key)
339
+ onChange: (0, _bind["default"])(_context18 = _this2.onBlur).call(_context18, (0, _assertThisInitialized2["default"])(_this2), key),
340
+ onBlur: (0, _bind["default"])(_context19 = _this2.onExitValid).call(_context19, (0, _assertThisInitialized2["default"])(_this2), key)
335
341
  });
336
342
  }
337
343
  });
338
- (0, _defineProperty2["default"])(_this2, "getControlProps", function (control, status) {
344
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getControlProps", function (control, status) {
339
345
  var _this2$props3 = _this2.props,
340
346
  _this2$props3$value = _this2$props3.value,
341
347
  value = _this2$props3$value === void 0 ? {} : _this2$props3$value,
@@ -356,25 +362,25 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
356
362
  requiredColor: requiredColor
357
363
  });
358
364
  });
359
- (0, _defineProperty2["default"])(_this2, "getOptions", function (key, options) {
365
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getOptions", function (key, options) {
360
366
  var higher = _this2.props.options || {};
361
367
  return higher[key] || options;
362
368
  });
363
- (0, _defineProperty2["default"])(_this2, "toEmpty", function (props) {});
364
- (0, _defineProperty2["default"])(_this2, "toText", function (props) {
369
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toEmpty", function (props) {});
370
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toText", function (props) {
365
371
  return /*#__PURE__*/_react["default"].createElement(Controlled, props);
366
372
  });
367
- (0, _defineProperty2["default"])(_this2, "toPassword", function (props) {
373
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toPassword", function (props) {
368
374
  return /*#__PURE__*/_react["default"].createElement(Controlled, props);
369
375
  });
370
- (0, _defineProperty2["default"])(_this2, "toEditor", function (props, control) {
376
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toEditor", function (props, control) {
371
377
  props.inputKey = control.key;
372
378
  return /*#__PURE__*/_react["default"].createElement(Controlled, props);
373
379
  });
374
- (0, _defineProperty2["default"])(_this2, "toSelectWriting", function (props, control) {
380
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toSelectWriting", function (props, control) {
375
381
  return /*#__PURE__*/_react["default"].createElement(Controlled, props);
376
382
  });
377
- (0, _defineProperty2["default"])(_this2, "toTextArea", function (props, control) {
383
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toTextArea", function (props, control) {
378
384
  if (control.allFullFather) {
379
385
  props.rows = control.rows;
380
386
  props.maxLength = control.maxLength;
@@ -389,22 +395,22 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
389
395
  }
390
396
  return /*#__PURE__*/_react["default"].createElement(Controlled, props);
391
397
  });
392
- (0, _defineProperty2["default"])(_this2, "toNumber", function (props) {
398
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toNumber", function (props) {
393
399
  props.defaultValue = props.value;
394
400
  delete props.value;
395
401
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
396
402
  });
397
- (0, _defineProperty2["default"])(_this2, "toDoubleInput", function (props, control, cc) {
398
- var _context18, _context19;
403
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toDoubleInput", function (props, control, cc) {
404
+ var _context20, _context21;
399
405
  props.defaultValue = props.value;
400
406
  props.doubleKey = props.key;
401
407
  props.doubleValue = _helper["default"].getObject(cc, props.key);
402
- props.onChangeKey1 = (0, _bind["default"])(_context18 = _this2.onChange).call(_context18, _this2, props.key[0]);
403
- props.onChangeKey2 = (0, _bind["default"])(_context19 = _this2.onChange).call(_context19, _this2, props.key[1]);
408
+ props.onChangeKey1 = (0, _bind["default"])(_context20 = _this2.onChange).call(_context20, (0, _assertThisInitialized2["default"])(_this2), props.key[0]);
409
+ props.onChangeKey2 = (0, _bind["default"])(_context21 = _this2.onChange).call(_context21, (0, _assertThisInitialized2["default"])(_this2), props.key[1]);
404
410
  delete props.value;
405
411
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
406
412
  });
407
- (0, _defineProperty2["default"])(_this2, "toSelect", function (props, _ref6) {
413
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toSelect", function (props, _ref6) {
408
414
  var options = _ref6.options,
409
415
  key = _ref6.key;
410
416
  props.getPopupContainer = _this2.getPopupContainer;
@@ -412,14 +418,14 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
412
418
  props.dropdownMatchSelectWidth = false;
413
419
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
414
420
  });
415
- (0, _defineProperty2["default"])(_this2, "toTreeSelect", function (props, filter) {
421
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toTreeSelect", function (props, filter) {
416
422
  var container = _this2.getContainer();
417
423
  container && (props.getPopupContainer = container);
418
424
  props.options = _this2.getOptions(filter);
419
425
  props.onSearch = _this2.createSearchEvent(filter);
420
426
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
421
427
  });
422
- (0, _defineProperty2["default"])(_this2, "createSearchEvent", function (control) {
428
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "createSearchEvent", function (control) {
423
429
  if (_this2.props.onSearch) {
424
430
  return function (value) {
425
431
  return _this2.props.onSearch(control.key, value, control);
@@ -428,7 +434,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
428
434
  return null;
429
435
  }
430
436
  });
431
- (0, _defineProperty2["default"])(_this2, "createGetCodeEvent", function (control) {
437
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "createGetCodeEvent", function (control) {
432
438
  if (_this2.props.onGetCode) {
433
439
  return function (value) {
434
440
  return _this2.props.onGetCode(control.key, value, control);
@@ -437,14 +443,14 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
437
443
  return null;
438
444
  }
439
445
  });
440
- (0, _defineProperty2["default"])(_this2, "toSearch", function (props, control) {
446
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toSearch", function (props, control) {
441
447
  props.getPopupContainer = _this2.getPopupContainer;
442
448
  props.options = _this2.getOptions(control.key, control.options);
443
449
  props.onSearch = _this2.createSearchEvent(control);
444
450
  props.dropdownMatchSelectWidth = false;
445
451
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
446
452
  });
447
- (0, _defineProperty2["default"])(_this2, "toDate", function (props, _ref7) {
453
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toDate", function (props, _ref7) {
448
454
  var rule = _ref7.rule;
449
455
  props.getCalendarContainer = _this2.getPopupContainer;
450
456
  props.style = {
@@ -453,7 +459,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
453
459
  rule && (props.disabledDate = _this2.validDate(rule));
454
460
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
455
461
  });
456
- (0, _defineProperty2["default"])(_this2, "toRangePicker", function (props, _ref8) {
462
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toRangePicker", function (props, _ref8) {
457
463
  var rule = _ref8.rule;
458
464
  props.getCalendarContainer = _this2.getPopupContainer;
459
465
  props.style = {
@@ -462,32 +468,32 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
462
468
  // rule && (props.disabledDate = this.validDate(rule));
463
469
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
464
470
  });
465
- (0, _defineProperty2["default"])(_this2, "toRadioGroup", function (props, _ref9) {
471
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toRadioGroup", function (props, _ref9) {
466
472
  var key = _ref9.key,
467
473
  options = _ref9.options;
468
474
  props.options = _this2.getOptions(key, options);
469
475
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
470
476
  });
471
- (0, _defineProperty2["default"])(_this2, "captcha", function (props, control) {
477
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "captcha", function (props, control) {
472
478
  props.onGetCode = _this2.props.onGetCode;
473
479
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
474
480
  });
475
- (0, _defineProperty2["default"])(_this2, "toReadonly", function (props, _ref0) {
476
- var options = _ref0.options,
477
- key = _ref0.key;
481
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toReadonly", function (props, _ref10) {
482
+ var options = _ref10.options,
483
+ key = _ref10.key;
478
484
  props.value = (0, _Control.getTitle)(props.value, _this2.getOptions(key, options));
479
485
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
480
486
  });
481
- (0, _defineProperty2["default"])(_this2, "selectSearch", function (props, control) {
487
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "selectSearch", function (props, control) {
482
488
  props.getPopupContainer = _this2.getPopupContainer;
483
489
  props.options = _this2.getOptions(control.key, control.options);
484
490
  props.onSearch = _this2.createSearchEvent(control);
485
491
  props.dropdownMatchSelectWidth = false;
486
492
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
487
493
  });
488
- (0, _defineProperty2["default"])(_this2, "area", function (props, _ref1) {
489
- var key = _ref1.key,
490
- options = _ref1.options;
494
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "area", function (props, _ref11) {
495
+ var key = _ref11.key,
496
+ options = _ref11.options;
491
497
  var readonly = _this2.props.readonly;
492
498
  props.parentKey = key;
493
499
  props.options = _this2.getOptions(key, options);
@@ -497,17 +503,17 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
497
503
  }) ? true : false;
498
504
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
499
505
  });
500
- (0, _defineProperty2["default"])(_this2, "uploadImg", function (props, control) {
501
- var _context20;
506
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "uploadImg", function (props, control) {
507
+ var _context22;
502
508
  var readonly = _this2.props.readonly;
503
509
  props.required = control.required || false;
504
- props.onFileChange = (0, _bind["default"])(_context20 = _this2.onFileChange).call(_context20, _this2, control);
510
+ props.onFileChange = (0, _bind["default"])(_context22 = _this2.onFileChange).call(_context22, (0, _assertThisInitialized2["default"])(_this2), control);
505
511
  props.readonly = readonly === true || (0, _isArray["default"])(readonly) && (0, _some["default"])(readonly).call(readonly, function (readonlyKey) {
506
512
  return readonlyKey === control.key;
507
513
  }) ? true : false;
508
514
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
509
515
  });
510
- (0, _defineProperty2["default"])(_this2, "toCascader", function (props, control) {
516
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCascader", function (props, control) {
511
517
  var container = _this2.getContainer();
512
518
  container && (props.getPopupContainer = container);
513
519
  props.options = control.options || [];
@@ -516,16 +522,17 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
516
522
  props.loadData = _this2.createSearchEvent(control);
517
523
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
518
524
  });
519
- (0, _defineProperty2["default"])(_this2, "toCheckbox", function (props, control) {
520
- var _context21;
525
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCheckbox", function (props, control) {
526
+ var _context23;
521
527
  var options = control.options || [];
522
528
  return /*#__PURE__*/_react["default"].createElement(_checkbox["default"].Group, {
523
529
  options: options,
524
- onChange: (0, _bind["default"])(_context21 = _this2.onBlur).call(_context21, _this2, control.key),
530
+ disabled: _this2.props.readonly === true,
531
+ onChange: (0, _bind["default"])(_context23 = _this2.onBlur).call(_context23, (0, _assertThisInitialized2["default"])(_this2), control.key),
525
532
  value: _this2.props.value[control.key]
526
533
  });
527
534
  });
528
- (0, _defineProperty2["default"])(_this2, "toControl", function (props, control) {
535
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toControl", function (props, control) {
529
536
  switch (props.type) {
530
537
  case 'readonly':
531
538
  return _this2.toReadonly(props, control);
@@ -575,34 +582,34 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
575
582
  return 'type error';
576
583
  }
577
584
  });
578
- (0, _defineProperty2["default"])(_this2, "toLabel", function (_ref10, type) {
579
- var title = _ref10.title,
580
- showAdd = _ref10.showAdd,
581
- showQuery = _ref10.showQuery,
582
- key = _ref10.key,
583
- showInfo = _ref10.showInfo,
584
- showInfoTitle = _ref10.showInfoTitle,
585
- showIcon = _ref10.showIcon,
586
- iconType = _ref10.iconType;
585
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toLabel", function (_ref12, type) {
586
+ var title = _ref12.title,
587
+ showAdd = _ref12.showAdd,
588
+ showQuery = _ref12.showQuery,
589
+ key = _ref12.key,
590
+ showInfo = _ref12.showInfo,
591
+ showInfoTitle = _ref12.showInfoTitle,
592
+ showIcon = _ref12.showIcon,
593
+ iconType = _ref12.iconType;
587
594
  if (showAdd && type !== 'readonly') {
588
- var _context22;
589
- var onClick = (0, _bind["default"])(_context22 = _this2.onAdd).call(_context22, _this2, key, title);
595
+ var _context24;
596
+ var onClick = (0, _bind["default"])(_context24 = _this2.onAdd).call(_context24, (0, _assertThisInitialized2["default"])(_this2), key, title);
590
597
  return /*#__PURE__*/_react["default"].createElement("span", null, title, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
591
598
  role: "add",
592
599
  type: "plus-circle-o",
593
600
  onClick: onClick
594
601
  }));
595
602
  } else if (showQuery && type !== 'readonly') {
596
- var _context23;
597
- var _onClick = (0, _bind["default"])(_context23 = _this2.onAdd).call(_context23, _this2, key, title);
603
+ var _context25;
604
+ var _onClick = (0, _bind["default"])(_context25 = _this2.onAdd).call(_context25, (0, _assertThisInitialized2["default"])(_this2), key, title);
598
605
  return /*#__PURE__*/_react["default"].createElement("span", null, title, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
599
606
  role: "add",
600
607
  type: "search",
601
608
  onClick: _onClick
602
609
  }));
603
610
  } else if (showIcon && iconType && type !== 'readonly' && showInfoTitle) {
604
- var _context24;
605
- var _onClick2 = (0, _bind["default"])(_context24 = _this2.onAdd).call(_context24, _this2, key, title);
611
+ var _context26;
612
+ var _onClick2 = (0, _bind["default"])(_context26 = _this2.onAdd).call(_context26, (0, _assertThisInitialized2["default"])(_this2), key, title);
606
613
  return /*#__PURE__*/_react["default"].createElement("span", null, title, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
607
614
  title: showInfoTitle
608
615
  }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
@@ -611,8 +618,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
611
618
  onClick: _onClick2
612
619
  })));
613
620
  } else if (showIcon && iconType && type !== 'readonly') {
614
- var _context25;
615
- var _onClick3 = (0, _bind["default"])(_context25 = _this2.onAdd).call(_context25, _this2, key, title);
621
+ var _context27;
622
+ var _onClick3 = (0, _bind["default"])(_context27 = _this2.onAdd).call(_context27, (0, _assertThisInitialized2["default"])(_this2), key, title);
616
623
  return /*#__PURE__*/_react["default"].createElement("span", null, title, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
617
624
  role: "add",
618
625
  type: iconType,
@@ -628,7 +635,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
628
635
  return title;
629
636
  }
630
637
  });
631
- (0, _defineProperty2["default"])(_this2, "toCol", function (span, control) {
638
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCol", function (span, control) {
632
639
  var factor = control.span || 1;
633
640
  var status = _this2.getValidState(control);
634
641
  var controlProps = _this2.getControlProps(control, status);
@@ -649,7 +656,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
649
656
  key: control.key
650
657
  }, checkable && /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
651
658
  className: (0, _variables["default"])('SuperForm2').checkbox,
652
- onChange: (0, _bind["default"])(onCheckItem).call(onCheckItem, _this2, control),
659
+ onChange: (0, _bind["default"])(onCheckItem).call(onCheckItem, (0, _assertThisInitialized2["default"])(_this2), control),
653
660
  checked: control.checked
654
661
  }), /*#__PURE__*/_react["default"].createElement(FormItem, (0, _extends2["default"])({}, itemProps, {
655
662
  className: checkable ? (0, _variables["default"])('SuperForm2').formItemWithCheckbox : '',
@@ -677,8 +684,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
677
684
  }
678
685
  });
679
686
  });
680
- (0, _defineProperty2["default"])(_this2, "toCols", function () {
681
- var _context26;
687
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCols", function () {
688
+ var _context28;
682
689
  var _this2$props5 = _this2.props,
683
690
  _this2$props5$colNum = _this2$props5.colNum,
684
691
  colNum = _this2$props5$colNum === void 0 ? defaultColNum : _this2$props5$colNum,
@@ -687,7 +694,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
687
694
  colNum = 1;
688
695
  }
689
696
  var span = 24 / colNum;
690
- return (0, _map["default"])(_context26 = _this2.getControls()).call(_context26, function (control) {
697
+ return (0, _map["default"])(_context28 = _this2.getControls()).call(_context28, function (control) {
691
698
  if (allFullFather) {
692
699
  control.allFullFather = allFullFather;
693
700
  }
@@ -696,8 +703,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
696
703
  });
697
704
  return _this2;
698
705
  }
699
- (0, _inherits2["default"])(SuperForm2, _React$Component2);
700
- return (0, _createClass2["default"])(SuperForm2, [{
706
+ (0, _createClass2["default"])(SuperForm2, [{
701
707
  key: "render",
702
708
  value: function render() {
703
709
  this.initValidState();
@@ -715,6 +721,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
715
721
  }, this.toCols())));
716
722
  }
717
723
  }]);
724
+ return SuperForm2;
718
725
  }(_react["default"].Component);
719
726
  (0, _defineProperty2["default"])(SuperForm2, "propTypes", {
720
727
  controls: _propTypes["default"].arrayOf(_propTypes["default"].shape(ControlType)).isRequired,