cloud-b2b 1.1.15 → 1.1.17
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.
|
@@ -186,8 +186,10 @@ var InputSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
186
186
|
|
|
187
187
|
_defineProperty(_assertThisInitialized(_this), "isMatchRemark", function (inputValue, option) {
|
|
188
188
|
var _option$props = option.props,
|
|
189
|
-
text = _option$props.text,
|
|
190
|
-
|
|
189
|
+
_option$props$text = _option$props.text,
|
|
190
|
+
text = _option$props$text === void 0 ? '' : _option$props$text,
|
|
191
|
+
_option$props$remark = _option$props.remark,
|
|
192
|
+
remark = _option$props$remark === void 0 ? '' : _option$props$remark;
|
|
191
193
|
return _indexOfInstanceProperty(text).call(text, inputValue) > -1 || _indexOfInstanceProperty(remark).call(remark, inputValue) > -1;
|
|
192
194
|
});
|
|
193
195
|
|
|
@@ -255,7 +257,10 @@ var InputSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
255
257
|
value: _this.getValue(),
|
|
256
258
|
allowClear: true,
|
|
257
259
|
ref: inputRef,
|
|
258
|
-
|
|
260
|
+
onChange: _this.onSearch,
|
|
261
|
+
filterOption: function filterOption(e, option) {
|
|
262
|
+
return option;
|
|
263
|
+
},
|
|
259
264
|
onSelect: _this.onSelect,
|
|
260
265
|
onBlur: _this.onBlur
|
|
261
266
|
});
|
|
@@ -398,8 +398,10 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
398
398
|
});
|
|
399
399
|
|
|
400
400
|
_defineProperty(_assertThisInitialized(_this2), "getControlProps", function (control, status) {
|
|
401
|
-
var _this2$
|
|
402
|
-
|
|
401
|
+
var _this2$props3 = _this2.props,
|
|
402
|
+
_this2$props3$value = _this2$props3.value,
|
|
403
|
+
value = _this2$props3$value === void 0 ? {} : _this2$props3$value,
|
|
404
|
+
readonly = _this2$props3.readonly;
|
|
403
405
|
|
|
404
406
|
var type = _this2.getType(control);
|
|
405
407
|
|
|
@@ -410,7 +412,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
410
412
|
type: type
|
|
411
413
|
}, props), {}, {
|
|
412
414
|
size: defaultSize,
|
|
413
|
-
value: makeString(value[control.key])
|
|
415
|
+
value: makeString(value[control.key]),
|
|
416
|
+
readonly: readonly
|
|
414
417
|
});
|
|
415
418
|
});
|
|
416
419
|
|
|
@@ -686,9 +689,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
686
689
|
required: control.required,
|
|
687
690
|
validateStatus: status
|
|
688
691
|
};
|
|
689
|
-
var _this2$
|
|
690
|
-
checkable = _this2$
|
|
691
|
-
onCheckItem = _this2$
|
|
692
|
+
var _this2$props4 = _this2.props,
|
|
693
|
+
checkable = _this2$props4.checkable,
|
|
694
|
+
onCheckItem = _this2$props4.onCheckItem;
|
|
692
695
|
return control.type !== 'empty' ? /*#__PURE__*/React.createElement(_Col, {
|
|
693
696
|
span: span * factor,
|
|
694
697
|
key: control.key
|
|
@@ -726,10 +729,10 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
726
729
|
_defineProperty(_assertThisInitialized(_this2), "toCols", function () {
|
|
727
730
|
var _context23;
|
|
728
731
|
|
|
729
|
-
var _this2$
|
|
730
|
-
_this2$
|
|
731
|
-
colNum = _this2$
|
|
732
|
-
allFullFather = _this2$
|
|
732
|
+
var _this2$props5 = _this2.props,
|
|
733
|
+
_this2$props5$colNum = _this2$props5.colNum,
|
|
734
|
+
colNum = _this2$props5$colNum === void 0 ? defaultColNum : _this2$props5$colNum,
|
|
735
|
+
allFullFather = _this2$props5.allFullFather;
|
|
733
736
|
|
|
734
737
|
if (allFullFather) {
|
|
735
738
|
colNum = 1;
|
|
@@ -28,13 +28,13 @@ var _excluded = ["onRowClick"];
|
|
|
28
28
|
|
|
29
29
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (_Array$isArray(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; } } }; }
|
|
30
30
|
|
|
31
|
-
function _unsupportedIterableToArray(o, minLen) { var
|
|
31
|
+
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); }
|
|
32
32
|
|
|
33
33
|
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; }
|
|
34
34
|
|
|
35
35
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
36
36
|
|
|
37
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var
|
|
37
|
+
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) { _defineProperty(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; }
|
|
38
38
|
|
|
39
39
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
40
40
|
import _Array$isArray from "@babel/runtime-corejs3/core-js-stable/array/is-array";
|
|
@@ -289,7 +289,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
289
289
|
var cellProps = {
|
|
290
290
|
value: value,
|
|
291
291
|
width: width,
|
|
292
|
-
type: readonly || _Array$isArray(isReadonly) && _includesInstanceProperty(isReadonly).call(isReadonly, key) ? 'readonly' : type,
|
|
292
|
+
type: readonly || _Array$isArray(isReadonly) && _includesInstanceProperty(isReadonly).call(isReadonly, key) || _this.props.readonly ? 'readonly' : type,
|
|
293
293
|
props: readonly ? {} : props,
|
|
294
294
|
error: _this.validField(required, value),
|
|
295
295
|
options: _this.getOptions(key, options, index),
|
|
@@ -645,6 +645,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
645
645
|
// }
|
|
646
646
|
// }
|
|
647
647
|
|
|
648
|
+
col.readonly = readonly;
|
|
648
649
|
col.render = _this.getCellRender(col);
|
|
649
650
|
|
|
650
651
|
if (col.link) {
|
|
@@ -659,13 +660,13 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
659
660
|
_defineProperty(_assertThisInitialized(_this), "getDataSource", function (items, cols) {
|
|
660
661
|
return _mapInstanceProperty(items).call(items, function (item, index) {
|
|
661
662
|
return _reduceInstanceProperty(cols).call(cols, function (result, _ref16) {
|
|
662
|
-
var _context14;
|
|
663
|
+
var _context14, _context15;
|
|
663
664
|
|
|
664
665
|
var key = _ref16.key,
|
|
665
666
|
type = _ref16.type,
|
|
666
667
|
options = _ref16.options;
|
|
667
668
|
|
|
668
|
-
if (!_this.props.readonly && type && type !== 'readonly' && (!item.isReadonly || _Array$isArray(item.isReadonly) && !_includesInstanceProperty(_context14 = item.isReadonly).call(_context14, key))) {
|
|
669
|
+
if (!_this.props.readonly && type && type !== 'readonly' && (!item.isReadonly || _Array$isArray(item.isReadonly) && !_includesInstanceProperty(_context14 = item.isReadonly).call(_context14, key)) || _includesInstanceProperty(_context15 = ['img', 'switch', 'custom', 'img', 'toolbar', 'uploadImg']).call(_context15, type)) {
|
|
669
670
|
result[key] = item[key];
|
|
670
671
|
} else {
|
|
671
672
|
result[key] = getTitle(item[key], options);
|
|
@@ -821,7 +822,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
821
822
|
});
|
|
822
823
|
|
|
823
824
|
_defineProperty(_assertThisInitialized(_this), "getProps", function () {
|
|
824
|
-
var
|
|
825
|
+
var _context16;
|
|
825
826
|
|
|
826
827
|
var _this$props4 = _this.props,
|
|
827
828
|
cols = _this$props4.cols,
|
|
@@ -841,12 +842,12 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
841
842
|
_this$props4$onExpand = _this$props4.onExpand,
|
|
842
843
|
onExpand = _this$props4$onExpand === void 0 ? undefined : _this$props4$onExpand;
|
|
843
844
|
|
|
844
|
-
var widthX = _reduceInstanceProperty(
|
|
845
|
+
var widthX = _reduceInstanceProperty(_context16 = _filterInstanceProperty(cols).call(cols, function (col) {
|
|
845
846
|
return !col.hide;
|
|
846
|
-
})).call(
|
|
847
|
-
var
|
|
847
|
+
})).call(_context16, function (width, item) {
|
|
848
|
+
var _context17;
|
|
848
849
|
|
|
849
|
-
return width += item.width ? item.width : _includesInstanceProperty(
|
|
850
|
+
return width += item.width ? item.width : _includesInstanceProperty(_context17 = ['index', 'checked']).call(_context17, item.key) ? 70 : item.type === 'img' ? 200 : 120;
|
|
850
851
|
}, 0);
|
|
851
852
|
|
|
852
853
|
var scrollProps = !helper.isEmpty2(expandedRowRender) ? {
|
|
@@ -209,8 +209,10 @@ var InputSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
209
209
|
});
|
|
210
210
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "isMatchRemark", function (inputValue, option) {
|
|
211
211
|
var _option$props = option.props,
|
|
212
|
-
text = _option$props.text,
|
|
213
|
-
|
|
212
|
+
_option$props$text = _option$props.text,
|
|
213
|
+
text = _option$props$text === void 0 ? '' : _option$props$text,
|
|
214
|
+
_option$props$remark = _option$props.remark,
|
|
215
|
+
remark = _option$props$remark === void 0 ? '' : _option$props$remark;
|
|
214
216
|
return (0, _indexOf["default"])(text).call(text, inputValue) > -1 || (0, _indexOf["default"])(remark).call(remark, inputValue) > -1;
|
|
215
217
|
});
|
|
216
218
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "isValidValue", function (value) {
|
|
@@ -273,7 +275,10 @@ var InputSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
273
275
|
value: _this.getValue(),
|
|
274
276
|
allowClear: true,
|
|
275
277
|
ref: inputRef,
|
|
276
|
-
|
|
278
|
+
onChange: _this.onSearch,
|
|
279
|
+
filterOption: function filterOption(e, option) {
|
|
280
|
+
return option;
|
|
281
|
+
},
|
|
277
282
|
onSelect: _this.onSelect,
|
|
278
283
|
onBlur: _this.onBlur
|
|
279
284
|
});
|
|
@@ -434,8 +434,10 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
434
434
|
}
|
|
435
435
|
});
|
|
436
436
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getControlProps", function (control, status) {
|
|
437
|
-
var _this2$
|
|
438
|
-
|
|
437
|
+
var _this2$props3 = _this2.props,
|
|
438
|
+
_this2$props3$value = _this2$props3.value,
|
|
439
|
+
value = _this2$props3$value === void 0 ? {} : _this2$props3$value,
|
|
440
|
+
readonly = _this2$props3.readonly;
|
|
439
441
|
|
|
440
442
|
var type = _this2.getType(control);
|
|
441
443
|
|
|
@@ -446,7 +448,8 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
446
448
|
type: type
|
|
447
449
|
}, props), {}, {
|
|
448
450
|
size: defaultSize,
|
|
449
|
-
value: (0, _Control.makeString)(value[control.key])
|
|
451
|
+
value: (0, _Control.makeString)(value[control.key]),
|
|
452
|
+
readonly: readonly
|
|
450
453
|
});
|
|
451
454
|
});
|
|
452
455
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getOptions", function (key, options) {
|
|
@@ -697,9 +700,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
697
700
|
required: control.required,
|
|
698
701
|
validateStatus: status
|
|
699
702
|
};
|
|
700
|
-
var _this2$
|
|
701
|
-
checkable = _this2$
|
|
702
|
-
onCheckItem = _this2$
|
|
703
|
+
var _this2$props4 = _this2.props,
|
|
704
|
+
checkable = _this2$props4.checkable,
|
|
705
|
+
onCheckItem = _this2$props4.onCheckItem;
|
|
703
706
|
return control.type !== 'empty' ? /*#__PURE__*/_react["default"].createElement(_col["default"], {
|
|
704
707
|
span: span * factor,
|
|
705
708
|
key: control.key
|
|
@@ -736,10 +739,10 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
736
739
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "toCols", function () {
|
|
737
740
|
var _context23;
|
|
738
741
|
|
|
739
|
-
var _this2$
|
|
740
|
-
_this2$
|
|
741
|
-
colNum = _this2$
|
|
742
|
-
allFullFather = _this2$
|
|
742
|
+
var _this2$props5 = _this2.props,
|
|
743
|
+
_this2$props5$colNum = _this2$props5.colNum,
|
|
744
|
+
colNum = _this2$props5$colNum === void 0 ? defaultColNum : _this2$props5$colNum,
|
|
745
|
+
allFullFather = _this2$props5.allFullFather;
|
|
743
746
|
|
|
744
747
|
if (allFullFather) {
|
|
745
748
|
colNum = 1;
|
|
@@ -114,13 +114,13 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
114
114
|
|
|
115
115
|
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
116
|
|
|
117
|
-
function _unsupportedIterableToArray(o, minLen) { var
|
|
117
|
+
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
118
|
|
|
119
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
120
|
|
|
121
121
|
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
122
|
|
|
123
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var
|
|
123
|
+
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
124
|
|
|
125
125
|
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
126
|
|
|
@@ -341,7 +341,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
341
341
|
var cellProps = {
|
|
342
342
|
value: value,
|
|
343
343
|
width: width,
|
|
344
|
-
type: readonly || (0, _isArray["default"])(isReadonly) && (0, _includes["default"])(isReadonly).call(isReadonly, key) ? 'readonly' : type,
|
|
344
|
+
type: readonly || (0, _isArray["default"])(isReadonly) && (0, _includes["default"])(isReadonly).call(isReadonly, key) || _this.props.readonly ? 'readonly' : type,
|
|
345
345
|
props: readonly ? {} : props,
|
|
346
346
|
error: _this.validField(required, value),
|
|
347
347
|
options: _this.getOptions(key, options, index),
|
|
@@ -687,6 +687,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
687
687
|
// }
|
|
688
688
|
// }
|
|
689
689
|
|
|
690
|
+
col.readonly = readonly;
|
|
690
691
|
col.render = _this.getCellRender(col);
|
|
691
692
|
|
|
692
693
|
if (col.link) {
|
|
@@ -700,13 +701,13 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
700
701
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getDataSource", function (items, cols) {
|
|
701
702
|
return (0, _map["default"])(items).call(items, function (item, index) {
|
|
702
703
|
return (0, _reduce["default"])(cols).call(cols, function (result, _ref16) {
|
|
703
|
-
var _context14;
|
|
704
|
+
var _context14, _context15;
|
|
704
705
|
|
|
705
706
|
var key = _ref16.key,
|
|
706
707
|
type = _ref16.type,
|
|
707
708
|
options = _ref16.options;
|
|
708
709
|
|
|
709
|
-
if (!_this.props.readonly && type && type !== 'readonly' && (!item.isReadonly || (0, _isArray["default"])(item.isReadonly) && !(0, _includes["default"])(_context14 = item.isReadonly).call(_context14, key))) {
|
|
710
|
+
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)) {
|
|
710
711
|
result[key] = item[key];
|
|
711
712
|
} else {
|
|
712
713
|
result[key] = (0, _Control.getTitle)(item[key], options);
|
|
@@ -855,7 +856,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
855
856
|
};
|
|
856
857
|
});
|
|
857
858
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getProps", function () {
|
|
858
|
-
var
|
|
859
|
+
var _context16;
|
|
859
860
|
|
|
860
861
|
var _this$props4 = _this.props,
|
|
861
862
|
cols = _this$props4.cols,
|
|
@@ -874,12 +875,12 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
874
875
|
expandedRowRender = _this$props4$expanded === void 0 ? undefined : _this$props4$expanded,
|
|
875
876
|
_this$props4$onExpand = _this$props4.onExpand,
|
|
876
877
|
onExpand = _this$props4$onExpand === void 0 ? undefined : _this$props4$onExpand;
|
|
877
|
-
var widthX = (0, _reduce["default"])(
|
|
878
|
+
var widthX = (0, _reduce["default"])(_context16 = (0, _filter["default"])(cols).call(cols, function (col) {
|
|
878
879
|
return !col.hide;
|
|
879
|
-
})).call(
|
|
880
|
-
var
|
|
880
|
+
})).call(_context16, function (width, item) {
|
|
881
|
+
var _context17;
|
|
881
882
|
|
|
882
|
-
return width += item.width ? item.width : (0, _includes["default"])(
|
|
883
|
+
return width += item.width ? item.width : (0, _includes["default"])(_context17 = ['index', 'checked']).call(_context17, item.key) ? 70 : item.type === 'img' ? 200 : 120;
|
|
883
884
|
}, 0);
|
|
884
885
|
var scrollProps = !_helper["default"].isEmpty2(expandedRowRender) ? {
|
|
885
886
|
expandedRowRender: expandedRowRender
|