cloud-b2b 1.1.27 → 1.1.29

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 (105) hide show
  1. package/es/Area/Area.js +16 -45
  2. package/es/Card/Card.js +3 -4
  3. package/es/CodeInput/CodeInput.js +30 -59
  4. package/es/Control/Control.js +47 -94
  5. package/es/Control/event.js +0 -14
  6. package/es/Enhance/Dialogs.js +0 -15
  7. package/es/Enhance/Loading.js +16 -36
  8. package/es/Enhance/index.js +0 -2
  9. package/es/Header/Header.js +3 -35
  10. package/es/Header/Vertical.js +1 -24
  11. package/es/ImageView/ImageView.js +5 -22
  12. package/es/Indent/Indent.js +3 -7
  13. package/es/InpurCascader/InputCascader.js +10 -36
  14. package/es/InputEditor/InputEditor.js +55 -55
  15. package/es/InputSearch/InputSearch.js +26 -71
  16. package/es/InputSelect/InputSelect.js +17 -48
  17. package/es/InputWriting/InputWriting.js +6 -28
  18. package/es/Layout/Layout.js +28 -59
  19. package/es/LayoutLink/LayoutLink.js +11 -20
  20. package/es/Link/Link.js +4 -27
  21. package/es/Loading/Loading.js +1 -3
  22. package/es/Loading2/Loading2.js +0 -2
  23. package/es/ModalWithDrag/ModalWithDrag.js +3 -8
  24. package/es/ModalWithDrag/drag.js +12 -29
  25. package/es/NumberInput/NumberInput.js +24 -63
  26. package/es/Search/Search.js +53 -149
  27. package/es/Sidebar/Sidebar.js +13 -34
  28. package/es/Sidebar2/Sidebar.js +3 -30
  29. package/es/SuperForm/SuperForm.js +27 -150
  30. package/es/SuperForm2/SuperForm.js +31 -165
  31. package/es/SuperIcon/SuperIcon.js +3 -6
  32. package/es/SuperPagination/SuperPagination.js +15 -32
  33. package/es/SuperTab/SuperTab.js +4 -27
  34. package/es/SuperTab2/SuperTab2.js +11 -33
  35. package/es/SuperTable/DragSortRow.js +6 -34
  36. package/es/SuperTable/FilterDropDown.js +10 -34
  37. package/es/SuperTable/SuperTable.js +91 -216
  38. package/es/SuperTable/fixed.js +1 -9
  39. package/es/SuperTable2/SuperTable2.js +96 -206
  40. package/es/SuperTable2/SuperTableCell.js +16 -55
  41. package/es/SuperTable3/FilterDropDown.js +10 -34
  42. package/es/SuperTable3/SuperTable.js +57 -175
  43. package/es/SuperTable3/fixed.js +1 -9
  44. package/es/SuperToolbar/SuperToolbar.js +21 -49
  45. package/es/SuperUpload/SuperUpload.js +73 -110
  46. package/es/Title/Title.js +12 -15
  47. package/es/Viewer/ImageViews.js +7 -60
  48. package/es/Viewer/Viewer.js +7 -34
  49. package/es/WingBlank/WingBlank.js +2 -6
  50. package/es/helper.js +7 -27
  51. package/es/history.js +3 -2
  52. package/lib/Area/Area.js +16 -64
  53. package/lib/Card/Card.js +3 -13
  54. package/lib/CodeInput/CodeInput.js +30 -77
  55. package/lib/Control/Control.js +47 -135
  56. package/lib/Control/event.js +0 -16
  57. package/lib/Enhance/Dialogs.js +0 -26
  58. package/lib/Enhance/Loading.js +16 -52
  59. package/lib/Enhance/index.js +0 -9
  60. package/lib/Header/Header.js +3 -48
  61. package/lib/Header/Vertical.js +1 -36
  62. package/lib/ImageView/ImageView.js +5 -30
  63. package/lib/Indent/Indent.js +3 -13
  64. package/lib/InpurCascader/InputCascader.js +11 -50
  65. package/lib/InputEditor/InputEditor.js +55 -64
  66. package/lib/InputSearch/InputSearch.js +26 -78
  67. package/lib/InputSelect/InputSelect.js +17 -62
  68. package/lib/InputWriting/InputWriting.js +6 -35
  69. package/lib/Layout/Layout.js +28 -76
  70. package/lib/LayoutLink/LayoutLink.js +11 -38
  71. package/lib/Link/Link.js +4 -40
  72. package/lib/Loading/Loading.js +1 -9
  73. package/lib/Loading2/Loading2.js +0 -8
  74. package/lib/ModalWithDrag/ModalWithDrag.js +3 -18
  75. package/lib/ModalWithDrag/drag.js +12 -34
  76. package/lib/NumberInput/NumberInput.js +24 -76
  77. package/lib/Search/Search.js +53 -157
  78. package/lib/Sidebar/Sidebar.js +13 -46
  79. package/lib/Sidebar2/Sidebar.js +3 -42
  80. package/lib/SuperForm/SuperForm.js +27 -149
  81. package/lib/SuperForm2/SuperForm.js +31 -160
  82. package/lib/SuperIcon/SuperIcon.js +3 -14
  83. package/lib/SuperPagination/SuperPagination.js +15 -42
  84. package/lib/SuperTab/SuperTab.js +4 -34
  85. package/lib/SuperTab2/SuperTab2.js +11 -48
  86. package/lib/SuperTable/DragSortRow.js +6 -42
  87. package/lib/SuperTable/FilterDropDown.js +10 -42
  88. package/lib/SuperTable/SuperTable.js +90 -210
  89. package/lib/SuperTable/fixed.js +1 -13
  90. package/lib/SuperTable2/SuperTable2.js +96 -222
  91. package/lib/SuperTable2/SuperTableCell.js +13 -62
  92. package/lib/SuperTable3/FilterDropDown.js +10 -42
  93. package/lib/SuperTable3/SuperTable.js +56 -169
  94. package/lib/SuperTable3/fixed.js +1 -13
  95. package/lib/SuperToolbar/SuperToolbar.js +20 -64
  96. package/lib/SuperUpload/SuperUpload.js +73 -140
  97. package/lib/Title/Title.js +12 -24
  98. package/lib/Viewer/ImageViews.js +7 -63
  99. package/lib/Viewer/Viewer.js +7 -43
  100. package/lib/WingBlank/WingBlank.js +2 -14
  101. package/lib/helper.js +6 -44
  102. package/lib/history.js +0 -5
  103. package/lib/index.js +0 -76
  104. package/lib/variables.js +0 -4
  105. package/package.json +1 -1
@@ -1,137 +1,82 @@
1
1
  "use strict";
2
2
 
3
3
  var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
4
-
5
4
  var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
6
-
7
5
  var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
8
-
9
6
  var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
10
-
11
7
  var _filterInstanceProperty2 = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
12
-
13
8
  var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
14
-
15
9
  var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
16
-
17
10
  var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
18
-
19
11
  var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
20
-
21
12
  var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
22
-
23
13
  var _sliceInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/slice");
24
-
25
14
  var _Array$from = require("@babel/runtime-corejs3/core-js-stable/array/from");
26
-
27
15
  var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");
28
-
29
16
  var _getIteratorMethod = require("@babel/runtime-corejs3/core-js/get-iterator-method");
30
-
31
17
  var _Array$isArray2 = require("@babel/runtime-corejs3/core-js-stable/array/is-array");
32
-
33
18
  var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
34
-
35
19
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
36
-
37
20
  _Object$defineProperty(exports, "__esModule", {
38
21
  value: true
39
22
  });
40
-
41
23
  exports["default"] = void 0;
42
-
43
24
  var _table = _interopRequireDefault(require("antd/lib/table"));
44
-
45
25
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
46
-
47
26
  var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
48
-
49
27
  var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
50
-
51
28
  var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
52
-
53
29
  var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
54
-
55
30
  var _bind = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/bind"));
56
-
57
31
  var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
58
-
59
32
  var _reduce = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/reduce"));
60
-
61
33
  var _some = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/some"));
62
-
63
34
  var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
64
-
35
+ var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectDestructuringEmpty"));
65
36
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
66
-
67
37
  var _switch = _interopRequireDefault(require("antd/lib/switch"));
68
-
69
38
  var _button = _interopRequireDefault(require("antd/lib/button"));
70
-
71
39
  var _checkbox = _interopRequireDefault(require("antd/lib/checkbox"));
72
-
73
40
  var _icon = _interopRequireDefault(require("antd/lib/icon"));
74
-
75
41
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
76
-
77
42
  var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
78
-
79
43
  var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
80
-
81
44
  var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
82
-
83
45
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
84
-
85
46
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
86
-
87
47
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
88
-
89
48
  var _react = _interopRequireDefault(require("react"));
90
-
91
49
  var _propTypes = _interopRequireDefault(require("prop-types"));
92
-
93
50
  var _reactDom = _interopRequireDefault(require("react-dom"));
94
-
95
51
  var _Control = _interopRequireWildcard(require("../Control"));
96
-
97
52
  var _SuperTableCell = _interopRequireDefault(require("./SuperTableCell"));
98
-
99
53
  var _fixed = _interopRequireDefault(require("../SuperTable/fixed"));
100
-
101
54
  var _SuperToolbar = _interopRequireDefault(require("../SuperToolbar"));
102
-
103
55
  var _variables = _interopRequireDefault(require("../variables"));
104
-
105
56
  var _helper = _interopRequireWildcard(require("../helper"));
106
-
107
57
  var _DragSortRow = _interopRequireDefault(require("../SuperTable/DragSortRow"));
108
-
109
58
  var _excluded = ["onRowClick"];
110
-
111
59
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
112
-
113
60
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
114
-
115
61
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (_Array$isArray2(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
116
-
117
62
  function _unsupportedIterableToArray(o, minLen) { var _context20; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context20 = Object.prototype.toString.call(o)).call(_context20, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
118
-
119
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
120
-
63
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
121
64
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty2(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
122
-
123
65
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context18, _context19; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context18 = ownKeys(Object(source), !0)).call(_context18, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context19 = ownKeys(Object(source))).call(_context19, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
124
-
125
66
  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); }; }
126
-
127
67
  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; } }
128
-
129
- var TypeEnum = ['readonly', 'index', 'checkbox', 'text', 'number', 'select', //存储value
130
- 'selectText', //存储title
131
- 'search', 'searchText', 'selectSearch', //多选下拉搜索
132
- 'date', 'button', 'custom', 'switch', 'textArea', 'link', 'toolbar', //按钮组
133
- 'img', //图片标题组 value为{src,title}时显示图片标题 为字符串时 只显示图片
68
+ var TypeEnum = ['readonly', 'index', 'checkbox', 'text', 'number', 'select',
69
+ //存储value
70
+ 'selectText',
71
+ //存储title
72
+ 'search', 'searchText', 'selectSearch',
73
+ //多选下拉搜索
74
+ 'date', 'button', 'custom', 'switch', 'textArea', 'link', 'toolbar',
75
+ //按钮组
76
+ 'img',
77
+ //图片标题组 value为{src,title}时显示图片标题 为字符串时 只显示图片
134
78
  'uploadImg'];
79
+
135
80
  /**
136
81
  * key:标识所在列,在一个表格中必须唯一
137
82
  * title:列的标题,type为checkbox时,title为空字符串时,表头才会显示为复选框
@@ -144,7 +89,6 @@ var TypeEnum = ['readonly', 'index', 'checkbox', 'text', 'number', 'select', //
144
89
  * showAdd: 表头是否显示+号,默认为false,加号会触发onAdd事件
145
90
  * hide: 为true时隐藏该列
146
91
  */
147
-
148
92
  var ColType = {
149
93
  key: _propTypes["default"].string.isRequired,
150
94
  title: _propTypes["default"].string.isRequired,
@@ -157,6 +101,7 @@ var ColType = {
157
101
  hide: _propTypes["default"].bool,
158
102
  props: _propTypes["default"].any
159
103
  };
104
+
160
105
  /**
161
106
  * onCheck:点击复选框时触发,原型func(rowIndex, keyName, checked)
162
107
  * onContentChange: 输入框内容改变时触发,原型为function(rowIndex, keyName, value)
@@ -168,7 +113,6 @@ var ColType = {
168
113
  * onToolbar:点击表格列按钮组时触发,原型为function(按钮组列的key,rowIndex,该行数据的值,按钮key);
169
114
  * onDoubleClick: 双击单元格触发(只针对于type类型为空的情况下)
170
115
  */
171
-
172
116
  var CallbackType = {
173
117
  onExitValid: _propTypes["default"].func,
174
118
  onCheck: _propTypes["default"].func,
@@ -187,121 +131,102 @@ var CallbackType = {
187
131
  //点击img类型标题触发事件
188
132
  onMoveRow: _propTypes["default"].func
189
133
  };
134
+
190
135
  /**
191
136
  * base[可选]:序号的开始数字,所有回调函数中的序号值都会加上这个值,默认值为0
192
137
  * isEmphasized: [可选],是否强调,行字体加粗显示, 除了isEmphasized设置为true之外,加粗行数据里要设置__isEmphasized为true
193
138
  */
194
-
195
139
  var SuperTable2 = /*#__PURE__*/function (_React$Component) {
196
140
  (0, _inherits2["default"])(SuperTable2, _React$Component);
197
-
198
141
  var _super = _createSuper(SuperTable2);
199
-
200
142
  function SuperTable2() {
201
143
  var _context;
202
-
203
144
  var _this;
204
-
205
145
  (0, _classCallCheck2["default"])(this, SuperTable2);
206
-
207
146
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
208
147
  args[_key] = arguments[_key];
209
148
  }
210
-
211
149
  _this = _super.call.apply(_super, (0, _concat["default"])(_context = [this]).call(_context, args));
212
150
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onSwitch", function (key, rowIndex) {
213
151
  return function (value) {
214
152
  var _ref = _this.props.callback || {},
215
- onContentChange = _ref.onContentChange;
216
-
153
+ onContentChange = _ref.onContentChange;
217
154
  onContentChange && onContentChange(_this.getIndex(rowIndex), key, value);
218
155
  };
219
156
  });
220
157
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onCheck", function (key, rowIndex) {
221
158
  return function (e) {
222
159
  var _ref2 = _this.props.callback || {},
223
- onCheck = _ref2.onCheck;
224
-
160
+ onCheck = _ref2.onCheck;
225
161
  onCheck && onCheck(_this.getIndex(rowIndex), key, e.target.checked);
226
162
  };
227
163
  });
228
164
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (key, rowIndex) {
229
165
  return function (value) {
230
166
  var _ref3 = _this.props.callback || {},
231
- onContentChange = _ref3.onContentChange;
232
-
167
+ onContentChange = _ref3.onContentChange;
233
168
  _this.closeValid();
234
-
235
169
  onContentChange && onContentChange(_this.getIndex(rowIndex), key, value);
236
170
  };
237
171
  });
238
172
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onSearch", function (key, rowIndex, config) {
239
173
  return function (value) {
240
174
  var _ref4 = _this.props.callback || {},
241
- onSearch = _ref4.onSearch;
242
-
175
+ onSearch = _ref4.onSearch;
243
176
  onSearch && onSearch(_this.getIndex(rowIndex), key, value, config);
244
177
  };
245
178
  });
246
179
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onAdd", function (key) {
247
180
  return function () {
248
181
  var _ref5 = _this.props.callback || {},
249
- onAdd = _ref5.onAdd;
250
-
182
+ onAdd = _ref5.onAdd;
251
183
  onAdd && onAdd(key);
252
184
  };
253
185
  });
254
186
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onRowAdd", function (key, index) {
255
187
  return function () {
256
188
  var _ref6 = _this.props.callback || {},
257
- onLink = _ref6.onLink;
258
-
189
+ onLink = _ref6.onLink;
259
190
  onLink && onLink(key, index, _this.props.items[index]);
260
191
  };
261
192
  });
262
193
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onBlur", function (key, rowIndex) {
263
194
  return function (value) {
264
195
  var _ref7 = _this.props.callback || {},
265
- onBlur = _ref7.onBlur;
266
-
196
+ onBlur = _ref7.onBlur;
267
197
  _this.closeValid();
268
-
269
198
  onBlur && onBlur(_this.getIndex(rowIndex), key, value);
270
199
  };
271
200
  });
272
201
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onDoubleClick", function (key, value) {
273
202
  return function () {
274
203
  var _ref8 = _this.props.callback || {},
275
- onDoubleClick = _ref8.onDoubleClick;
276
-
204
+ onDoubleClick = _ref8.onDoubleClick;
277
205
  onDoubleClick && onDoubleClick(key, value);
278
206
  };
279
207
  });
280
208
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onImgTileClick", function (col, value, rowIndex) {
281
209
  return function () {
282
210
  var _ref9 = _this.props.callback || {},
283
- onImgTileClick = _ref9.onImgTileClick;
284
-
211
+ onImgTileClick = _ref9.onImgTileClick;
285
212
  onImgTileClick && onImgTileClick(col, value, rowIndex);
286
213
  };
287
214
  });
288
215
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onMoveRow", function (dragIndex, targetIndex) {
289
216
  var _ref10 = _this.props.callback || {},
290
- onMoveRow = _ref10.onMoveRow;
291
-
217
+ onMoveRow = _ref10.onMoveRow;
292
218
  onMoveRow && onMoveRow(dragIndex, targetIndex);
293
219
  });
294
220
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "closeValid", function () {
295
221
  var _this$props = _this.props,
296
- valid = _this$props.valid,
297
- _this$props$callback = _this$props.callback,
298
- callback = _this$props$callback === void 0 ? {} : _this$props$callback;
222
+ valid = _this$props.valid,
223
+ _this$props$callback = _this$props.callback,
224
+ callback = _this$props$callback === void 0 ? {} : _this$props$callback;
299
225
  valid && callback.onExitValid();
300
226
  });
301
227
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getOptions", function (key, colOptions, index) {
302
228
  var options = _this.props.items[index].options;
303
229
  var options2 = _this.props.options;
304
-
305
230
  if (options && (0, _isArray["default"])(options[key])) {
306
231
  return options[key];
307
232
  } else if (options2 && (0, _isArray["default"])(options2[key])) {
@@ -322,22 +247,20 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
322
247
  });
323
248
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderEditableCell", function (config, value, index) {
324
249
  var key = config.key,
325
- type = config.type,
326
- options = config.options,
327
- props = config.props,
328
- required = config.required,
329
- width = config.width,
330
- showRowAdd = config.showRowAdd;
331
-
250
+ type = config.type,
251
+ options = config.options,
252
+ props = config.props,
253
+ required = config.required,
254
+ width = config.width,
255
+ showRowAdd = config.showRowAdd;
332
256
  var _this$props$items$ind = _this.props.items[index],
333
- readonly = _this$props$items$ind.readonly,
334
- _this$props$items$ind2 = _this$props$items$ind.isReadonly,
335
- isReadonly = _this$props$items$ind2 === void 0 ? [] : _this$props$items$ind2,
336
- _this$props$items$ind3 = _this$props$items$ind.isRequired,
337
- isRequired = _this$props$items$ind3 === void 0 ? [] : _this$props$items$ind3,
338
- _this$props$items$ind4 = _this$props$items$ind._extraProps,
339
- _extraProps = _this$props$items$ind4 === void 0 ? {} : _this$props$items$ind4;
340
-
257
+ readonly = _this$props$items$ind.readonly,
258
+ _this$props$items$ind2 = _this$props$items$ind.isReadonly,
259
+ isReadonly = _this$props$items$ind2 === void 0 ? [] : _this$props$items$ind2,
260
+ _this$props$items$ind3 = _this$props$items$ind.isRequired,
261
+ isRequired = _this$props$items$ind3 === void 0 ? [] : _this$props$items$ind3,
262
+ _this$props$items$ind4 = _this$props$items$ind._extraProps,
263
+ _extraProps = _this$props$items$ind4 === void 0 ? {} : _this$props$items$ind4;
341
264
  var cellProps = {
342
265
  value: value,
343
266
  width: width,
@@ -349,7 +272,6 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
349
272
  onSearch: _this.onSearch(key, index, config),
350
273
  onBlur: _this.onBlur(key, index)
351
274
  };
352
-
353
275
  if (showRowAdd && (0, _isArray["default"])(isRequired) && (0, _includes["default"])(isRequired).call(isRequired, key)) {
354
276
  cellProps.error = _this.validField(true, value);
355
277
  cellProps.props = _objectSpread(_objectSpread({}, cellProps.props), _extraProps);
@@ -375,7 +297,6 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
375
297
  onClick: _this.onRowAdd(key, index)
376
298
  })));
377
299
  }
378
-
379
300
  if ((0, _isArray["default"])(isRequired) && (0, _includes["default"])(isRequired).call(isRequired, key)) {
380
301
  cellProps.error = _this.validField(true, value);
381
302
  cellProps.props = _objectSpread(_objectSpread({}, cellProps.props), _extraProps);
@@ -392,7 +313,6 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
392
313
  }
393
314
  }, /*#__PURE__*/_react["default"].createElement(_SuperTableCell["default"], cellProps)));
394
315
  }
395
-
396
316
  if (showRowAdd) {
397
317
  return /*#__PURE__*/_react["default"].createElement("div", {
398
318
  style: {
@@ -414,24 +334,23 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
414
334
  onClick: _this.onRowAdd(key, index)
415
335
  })));
416
336
  }
417
-
418
337
  return /*#__PURE__*/_react["default"].createElement(_SuperTableCell["default"], cellProps);
419
338
  });
420
339
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderLinkCell", function (col, value, record, index) {
421
340
  if (col.link === 'list') {
422
341
  var list = value && (0, _isArray["default"])(value) ? value : [];
423
- return /*#__PURE__*/_react["default"].createElement("div", null, (0, _map["default"])(list).call(list, function (item2, index2) {
342
+ return /*#__PURE__*/_react["default"].createElement("div", {
343
+ style: {
344
+ whiteSpace: 'pre-wrap'
345
+ }
346
+ }, (0, _map["default"])(list).call(list, function (item2, index2) {
424
347
  var _context2;
425
-
426
348
  var split = index2 === list.length - 1 ? '' : ',';
427
-
428
349
  var onClick = function onClick() {
429
350
  var _ref11 = _this.props.callback || {},
430
- onLink = _ref11.onLink;
431
-
351
+ onLink = _ref11.onLink;
432
352
  onLink && onLink(col.key, index, item2);
433
353
  };
434
-
435
354
  return /*#__PURE__*/_react["default"].createElement("a", {
436
355
  key: index2,
437
356
  onClick: onClick
@@ -439,15 +358,16 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
439
358
  }));
440
359
  } else {
441
360
  var title = typeof col.link === 'string' ? col.link : value;
442
-
443
361
  var onClick = function onClick() {
444
362
  var _ref12 = _this.props.callback || {},
445
- onLink = _ref12.onLink;
446
-
363
+ onLink = _ref12.onLink;
447
364
  onLink && onLink(col.key, index, record);
448
365
  };
449
-
450
366
  return /*#__PURE__*/_react["default"].createElement("a", {
367
+ style: {
368
+ whiteSpace: 'normal',
369
+ wordBreak: "break-all"
370
+ },
451
371
  onClick: onClick
452
372
  }, title);
453
373
  }
@@ -458,9 +378,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
458
378
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getCellRender", function (col) {
459
379
  return function (value, record, index) {
460
380
  var _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10;
461
-
462
381
  var realType = record._isEdit === true && _this.canReadonly(col.type) ? col.editType : col.type;
463
-
464
382
  if (!realType) {
465
383
  return /*#__PURE__*/_react["default"].createElement("div", {
466
384
  onDoubleClick: _this.onDoubleClick(col.key, record.key),
@@ -479,23 +397,18 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
479
397
  title: value
480
398
  }, value);
481
399
  }
482
-
483
400
  switch (realType) {
484
401
  case 'checkbox':
485
402
  return /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
486
403
  onChange: _this.onCheck(col.key, record.key),
487
404
  checked: value || false
488
405
  });
489
-
490
406
  case 'index':
491
407
  return _this.getIndex(index) + 1;
492
-
493
408
  case 'link':
494
409
  return _this.renderLinkCell(col, value, record, record.key);
495
-
496
410
  case 'button':
497
411
  var onClick = _this.props.callback.onLink ? (0, _bind["default"])(_context3 = _this.props.callback.onLink).call(_context3, null, col.key, record.key, record) : undefined;
498
-
499
412
  if (col.icon === 'add') {
500
413
  return /*#__PURE__*/_react["default"].createElement(_button["default"], {
501
414
  onClick: onClick,
@@ -513,7 +426,6 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
513
426
  type: col.bsStyle
514
427
  }, record[col.key] || col.typeRelated);
515
428
  }
516
-
517
429
  case 'switch':
518
430
  return typeof value === 'string' ? /*#__PURE__*/_react["default"].createElement("div", null, value) : /*#__PURE__*/_react["default"].createElement(_switch["default"], {
519
431
  checkedChildren: col.props.checkedChildren || '',
@@ -523,10 +435,8 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
523
435
  checked: typeof value === 'number' ? Boolean(value) : value || false,
524
436
  disabled: !(record._isEdit === true)
525
437
  });
526
-
527
438
  case 'custom':
528
439
  return _this.props.callback.onRenderCustom(record.key, col.key, value, col.props, col);
529
-
530
440
  case 'toolbar':
531
441
  //showByKey为true时,每条数据中与按钮key相同的属性值决定按钮是否显示,建议key用下划线开始命名,避免与后台数据冲突
532
442
  var props = {
@@ -538,7 +448,6 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
538
448
  })
539
449
  };
540
450
  return /*#__PURE__*/_react["default"].createElement(_SuperToolbar["default"], props);
541
-
542
451
  case 'img':
543
452
  return value ? typeof value === 'string' ? /*#__PURE__*/_react["default"].createElement("img", {
544
453
  src: (0, _includes["default"])(value).call(value, 'http') ? value : (0, _concat["default"])(_context7 = "".concat(window.location.origin, "/api/proxy/file-center-service/")).call(_context7, value),
@@ -578,19 +487,15 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
578
487
  color: '#333'
579
488
  }
580
489
  }, value.remark))) : /*#__PURE__*/_react["default"].createElement("div", null);
581
-
582
490
  case 'uploadImg':
583
491
  var commonProps = _this.props.callback.buildSuperUploadProps ? _this.props.callback.buildSuperUploadProps() : {};
584
-
585
492
  var uploadProps = _objectSpread(_objectSpread(_objectSpread(_objectSpread({
586
493
  onFileChange: _this.props.callback.onTableFileChange ? (0, _bind["default"])(_context10 = _this.props.callback.onTableFileChange).call(_context10, null, col.key, index) : undefined,
587
494
  type: col.type
588
495
  }, col.props), _this.props), commonProps), {}, {
589
496
  value: _this.props.items[index][col.key]
590
497
  });
591
-
592
498
  return /*#__PURE__*/_react["default"].createElement(_Control["default"], uploadProps);
593
-
594
499
  default:
595
500
  return _this.renderEditableCell(_objectSpread(_objectSpread({}, col), {}, {
596
501
  type: realType
@@ -600,12 +505,10 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
600
505
  });
601
506
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getCheckedStatus", function (key) {
602
507
  var has = false,
603
- not = false;
508
+ not = false;
604
509
  var items = _this.props.items;
605
-
606
510
  var _iterator = _createForOfIteratorHelper(items),
607
- _step;
608
-
511
+ _step;
609
512
  try {
610
513
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
611
514
  var item = _step.value;
@@ -616,7 +519,6 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
616
519
  } finally {
617
520
  _iterator.f();
618
521
  }
619
-
620
522
  return {
621
523
  checked: has && !not,
622
524
  indeterminate: has && not
@@ -625,7 +527,6 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
625
527
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toAdd", function (key, showAdd) {
626
528
  if (showAdd) {
627
529
  var onClick = _this.onAdd(key);
628
-
629
530
  return /*#__PURE__*/_react["default"].createElement(_icon["default"], {
630
531
  type: "plus-circle-o",
631
532
  role: "add",
@@ -637,14 +538,12 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
637
538
  });
638
539
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getColumnTitle", function (_ref13) {
639
540
  var required = _ref13.required,
640
- title = _ref13.title,
641
- type = _ref13.type,
642
- key = _ref13.key,
643
- showAdd = _ref13.showAdd;
644
-
541
+ title = _ref13.title,
542
+ type = _ref13.type,
543
+ key = _ref13.key,
544
+ showAdd = _ref13.showAdd;
645
545
  if (type === 'checkbox') {
646
546
  var status = _this.getCheckedStatus(key);
647
-
648
547
  return /*#__PURE__*/_react["default"].createElement(_checkbox["default"], (0, _extends2["default"])({
649
548
  onChange: _this.onCheck(key, -1)
650
549
  }, status));
@@ -657,8 +556,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
657
556
  });
658
557
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getColumnClassName", function (_ref14) {
659
558
  var type = _ref14.type,
660
- align = _ref14.align;
661
-
559
+ align = _ref14.align;
662
560
  if (type === 'index' || type === 'checkbox') {
663
561
  return 'ant-table-selection-column';
664
562
  } else {
@@ -667,33 +565,29 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
667
565
  });
668
566
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "canReadonly", function (type) {
669
567
  var _context11;
670
-
671
568
  return !(0, _includes["default"])(_context11 = ['index', 'checkbox', 'link', 'button', 'switch', 'custom', 'img', 'toolbar', 'uploadImg']).call(_context11, type);
672
569
  });
673
570
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getColumns", function (cols) {
674
571
  var _context12;
675
-
676
572
  var readonly = _this.props.readonly;
677
573
  return (0, _map["default"])(_context12 = (0, _filter["default"])(cols).call(cols, function (col) {
678
574
  return !col.hide;
679
575
  })).call(_context12, function (_ref15, index) {
680
576
  var _context13;
681
-
682
- var col = (0, _extends2["default"])({}, _ref15);
577
+ var col = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(_ref15), _ref15));
683
578
  col.className = _this.getColumnClassName(col);
684
579
  col.title = _this.getColumnTitle(col);
685
580
  col.dataIndex = col.key;
686
- col.width = col.width ? col.width : (0, _includes["default"])(_context13 = ['index', 'checked']).call(_context13, col.key) ? 70 : col.type === 'img' ? 200 : 120; // const {props = {}} = col;
581
+ col.width = col.width ? col.width : (0, _includes["default"])(_context13 = ['index', 'checked']).call(_context13, col.key) ? 70 : col.type === 'img' ? 200 : 120;
582
+ // const {props = {}} = col;
687
583
  // const {edit = false} = props
688
584
  // if (!(readonly || col.type === 'readonly') || !this.canReadonly(col.type)) {
689
585
  // if ( !edit && ['text', 'number', 'select', 'date', 'search', 'readonly', 'textArea', 'selectSearch'].includes(col.type)){
690
586
  // return col
691
587
  // }
692
588
  // }
693
-
694
589
  col.readonly = readonly;
695
590
  col.render = _this.getCellRender(col);
696
-
697
591
  if (col.link) {
698
592
  col.type = 'link';
699
593
  col.render = _this.getCellRender(col);
@@ -707,7 +601,6 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
707
601
  }
708
602
  };
709
603
  }
710
-
711
604
  return col;
712
605
  });
713
606
  });
@@ -715,17 +608,14 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
715
608
  return (0, _map["default"])(items).call(items, function (item, index) {
716
609
  return (0, _reduce["default"])(cols).call(cols, function (result, _ref16) {
717
610
  var _context14, _context15;
718
-
719
611
  var key = _ref16.key,
720
- type = _ref16.type,
721
- options = _ref16.options;
722
-
612
+ type = _ref16.type,
613
+ options = _ref16.options;
723
614
  if (!_this.props.readonly && type && type !== 'readonly' && (!item.isReadonly || (0, _isArray["default"])(item.isReadonly) && !(0, _includes["default"])(_context14 = item.isReadonly).call(_context14, key)) || (0, _includes["default"])(_context15 = ['img', 'switch', 'custom', 'img', 'toolbar', 'uploadImg']).call(_context15, type)) {
724
615
  result[key] = item[key];
725
616
  } else {
726
617
  result[key] = (0, _Control.getTitle)(item[key], options);
727
618
  }
728
-
729
619
  return result;
730
620
  }, _objectSpread(_objectSpread({}, item), {}, {
731
621
  key: index,
@@ -735,18 +625,15 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
735
625
  });
736
626
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getPropsByCheckbox", function () {
737
627
  var _this$props2 = _this.props,
738
- items = _this$props2.items,
739
- _this$props2$isEmphas = _this$props2.isEmphasized,
740
- isEmphasized = _this$props2$isEmphas === void 0 ? false : _this$props2$isEmphas;
741
-
628
+ items = _this$props2.items,
629
+ _this$props2$isEmphas = _this$props2.isEmphasized,
630
+ isEmphasized = _this$props2$isEmphas === void 0 ? false : _this$props2$isEmphas;
742
631
  var rowClassName = function rowClassName(record) {
743
632
  if (isEmphasized && items[record.key].__isEmphasized) {
744
633
  return items[record.key].checked ? (0, _variables["default"])('SuperTable2').emphasizedSelectRow : (0, _variables["default"])('SuperTable2').emphasizedUnselectRow;
745
634
  }
746
-
747
635
  return items[record.key].checked ? (0, _variables["default"])('SuperTable2').select : '';
748
636
  };
749
-
750
637
  return {
751
638
  rowClassName: rowClassName
752
639
  };
@@ -759,39 +646,33 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
759
646
  });
760
647
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getPropsByCheckbox2", function (items) {
761
648
  var _this$props3 = _this.props,
762
- _this$props3$checkbox = _this$props3.checkbox,
763
- checkbox = _this$props3$checkbox === void 0 ? true : _this$props3$checkbox,
764
- _this$props3$radio = _this$props3.radio,
765
- radio = _this$props3$radio === void 0 ? false : _this$props3$radio,
766
- isolation = _this$props3.isolation,
767
- _this$props3$checkedR = _this$props3.checkedRows,
768
- checkedRows = _this$props3$checkedR === void 0 ? [] : _this$props3$checkedR,
769
- _this$props3$isEmphas = _this$props3.isEmphasized,
770
- isEmphasized = _this$props3$isEmphas === void 0 ? false : _this$props3$isEmphas,
771
- _this$props3$isWeaken = _this$props3.isWeaken,
772
- isWeaken = _this$props3$isWeaken === void 0 ? true : _this$props3$isWeaken;
773
-
649
+ _this$props3$checkbox = _this$props3.checkbox,
650
+ checkbox = _this$props3$checkbox === void 0 ? true : _this$props3$checkbox,
651
+ _this$props3$radio = _this$props3.radio,
652
+ radio = _this$props3$radio === void 0 ? false : _this$props3$radio,
653
+ isolation = _this$props3.isolation,
654
+ _this$props3$checkedR = _this$props3.checkedRows,
655
+ checkedRows = _this$props3$checkedR === void 0 ? [] : _this$props3$checkedR,
656
+ _this$props3$isEmphas = _this$props3.isEmphasized,
657
+ isEmphasized = _this$props3$isEmphas === void 0 ? false : _this$props3$isEmphas,
658
+ _this$props3$isWeaken = _this$props3.isWeaken,
659
+ isWeaken = _this$props3$isWeaken === void 0 ? true : _this$props3$isWeaken;
774
660
  var rowClassName1 = function rowClassName1(record) {
775
661
  if (items[record.key].__total) return (0, _variables["default"])('SuperTable').totalRow;
776
662
  if (items[record.key].__warningRow) return (0, _variables["default"])('SuperTable').warningRow;
777
663
  return (0, _includes["default"])(checkedRows).call(checkedRows, record.key) ? (0, _variables["default"])('SuperTable').select : '';
778
664
  };
779
-
780
665
  var rowClassName2 = function rowClassName2(record) {
781
666
  if (items[record.key].__total) return (0, _variables["default"])('SuperTable').totalRow;
782
667
  if (items[record.key].__warningRow) return (0, _variables["default"])('SuperTable').warningRow;
783
-
784
668
  if (isEmphasized && items[record.key].__isEmphasized) {
785
669
  return items[record.key].checked ? (0, _variables["default"])('SuperTable').emphasizedSelectRow : (0, _variables["default"])('SuperTable').emphasizedUnselectRow;
786
670
  }
787
-
788
671
  if (isWeaken && items[record.key].__isWeaken) {
789
672
  return items[record.key].checked ? (0, _variables["default"])('SuperTable').weakenedSelectRow : (0, _variables["default"])('SuperTable').weakenedUnselectRow;
790
673
  }
791
-
792
674
  return items[record.key].checked ? (0, _variables["default"])('SuperTable').select : '';
793
675
  };
794
-
795
676
  if (checkbox) {
796
677
  if (radio) {
797
678
  return {
@@ -870,29 +751,27 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
870
751
  });
871
752
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getProps", function () {
872
753
  var _context16;
873
-
874
754
  var _this$props4 = _this.props,
875
- cols = _this$props4.cols,
876
- items = _this$props4.items,
877
- _this$props4$style = _this$props4.style,
878
- style = _this$props4$style === void 0 ? {} : _this$props4$style,
879
- _this$props4$footer = _this$props4.footer,
880
- footer = _this$props4$footer === void 0 ? null : _this$props4$footer,
881
- _this$props4$paginati = _this$props4.pagination,
882
- pagination = _this$props4$paginati === void 0 ? false : _this$props4$paginati,
883
- dragSort = _this$props4.dragSort,
884
- _this$props4$isEmphas = _this$props4.isEmphasized,
885
- isEmphasized = _this$props4$isEmphas === void 0 ? false : _this$props4$isEmphas,
886
- maxHeight = _this$props4.maxHeight,
887
- _this$props4$expanded = _this$props4.expandedRowRender,
888
- expandedRowRender = _this$props4$expanded === void 0 ? undefined : _this$props4$expanded,
889
- _this$props4$onExpand = _this$props4.onExpand,
890
- onExpand = _this$props4$onExpand === void 0 ? undefined : _this$props4$onExpand;
755
+ cols = _this$props4.cols,
756
+ items = _this$props4.items,
757
+ _this$props4$style = _this$props4.style,
758
+ style = _this$props4$style === void 0 ? {} : _this$props4$style,
759
+ _this$props4$footer = _this$props4.footer,
760
+ footer = _this$props4$footer === void 0 ? null : _this$props4$footer,
761
+ _this$props4$paginati = _this$props4.pagination,
762
+ pagination = _this$props4$paginati === void 0 ? false : _this$props4$paginati,
763
+ dragSort = _this$props4.dragSort,
764
+ _this$props4$isEmphas = _this$props4.isEmphasized,
765
+ isEmphasized = _this$props4$isEmphas === void 0 ? false : _this$props4$isEmphas,
766
+ maxHeight = _this$props4.maxHeight,
767
+ _this$props4$expanded = _this$props4.expandedRowRender,
768
+ expandedRowRender = _this$props4$expanded === void 0 ? undefined : _this$props4$expanded,
769
+ _this$props4$onExpand = _this$props4.onExpand,
770
+ onExpand = _this$props4$onExpand === void 0 ? undefined : _this$props4$onExpand;
891
771
  var widthX = (0, _reduce["default"])(_context16 = (0, _filter["default"])(cols).call(cols, function (col) {
892
772
  return !col.hide;
893
773
  })).call(_context16, function (width, item) {
894
774
  var _context17;
895
-
896
775
  return width += item.width ? item.width : (0, _includes["default"])(_context17 = ['index', 'checked']).call(_context17, item.key) ? 70 : item.type === 'img' ? 200 : 120;
897
776
  }, 0);
898
777
  var scrollProps = !_helper["default"].isEmpty2(expandedRowRender) ? {
@@ -905,11 +784,9 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
905
784
  y: maxHeight
906
785
  }
907
786
  };
908
-
909
787
  var _this$getPropsByCheck = _this.getPropsByCheckbox2(items),
910
- onRowClick = _this$getPropsByCheck.onRowClick,
911
- extraProps = (0, _objectWithoutProperties2["default"])(_this$getPropsByCheck, _excluded);
912
-
788
+ onRowClick = _this$getPropsByCheck.onRowClick,
789
+ extraProps = (0, _objectWithoutProperties2["default"])(_this$getPropsByCheck, _excluded);
913
790
  return _objectSpread(_objectSpread({
914
791
  className: !isEmphasized ? (0, _variables["default"])('SuperTable2') : (0, _variables["default"])('SuperTable2').noTransition,
915
792
  columns: _this.getColumns(cols),
@@ -936,7 +813,6 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
936
813
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "setScroll", function () {
937
814
  if (_this.props.maxHeight && _this.props.items.length) {
938
815
  var root = _reactDom["default"].findDOMNode((0, _assertThisInitialized2["default"])(_this));
939
-
940
816
  var container = root.getElementsByClassName('ant-table-body')[0];
941
817
  var header = root.getElementsByClassName('ant-table-thead')[0];
942
818
  (0, _fixed["default"])(container, header, _this.props.maxHeight);
@@ -944,7 +820,6 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
944
820
  });
945
821
  return _this;
946
822
  }
947
-
948
823
  (0, _createClass2["default"])(SuperTable2, [{
949
824
  key: "componentDidMount",
950
825
  value: function componentDidMount() {
@@ -966,7 +841,6 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
966
841
  }]);
967
842
  return SuperTable2;
968
843
  }(_react["default"].Component);
969
-
970
844
  (0, _defineProperty2["default"])(SuperTable2, "propTypes", {
971
845
  cols: _propTypes["default"].arrayOf(_propTypes["default"].shape(ColType)).isRequired,
972
846
  items: _propTypes["default"].array.isRequired,