linkmore-design 1.1.28-alpha.6 → 1.1.28-alpha.8

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.
package/dist/index.umd.js CHANGED
@@ -293774,9 +293774,9 @@
293774
293774
  var _cloneDeep;
293775
293775
 
293776
293776
  var cloneCol = (_cloneDeep = lodash.cloneDeep(localColumns)) === null || _cloneDeep === void 0 ? void 0 : _cloneDeep.filter(function (item) {
293777
- var _item$title;
293777
+ var _item$title, _item$title2;
293778
293778
 
293779
- return lodash.isFunction(item.title) ? false : ((_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.indexOf(searchValue)) > -1;
293779
+ return lodash.isFunction(item.title) || ((_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.$$typeof) ? true : ((_item$title2 = item.title) === null || _item$title2 === void 0 ? void 0 : _item$title2.indexOf(searchValue)) > -1;
293780
293780
  });
293781
293781
  cloneCol.forEach(function (item, index) {
293782
293782
  if (colStateValue === null || colStateValue === void 0 ? void 0 : colStateValue.hasOwnProperty(item.dataIndex)) {
@@ -293940,7 +293940,6 @@
293940
293940
  }
293941
293941
  };
293942
293942
  });
293943
- console.log(sortMenu, 'sortMenu');
293944
293943
  return /*#__PURE__*/React__default['default'].createElement("div", {
293945
293944
  className: "lm_custom_option_columns"
293946
293945
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -313373,7 +313372,7 @@
313373
313372
  return isExpandRow(children) ? children === null || children === void 0 ? void 0 : (_children$3 = children[0]) === null || _children$3 === void 0 ? void 0 : (_children$3$props = _children$3.props) === null || _children$3$props === void 0 ? void 0 : (_children$3$props$chi = _children$3$props.children) === null || _children$3$props$chi === void 0 ? void 0 : (_children$3$props$chi2 = _children$3$props$chi[1]) === null || _children$3$props$chi2 === void 0 ? void 0 : (_children$3$props$chi3 = _children$3$props$chi2.props) === null || _children$3$props$chi3 === void 0 ? void 0 : _children$3$props$chi3['aria-label'] : '';
313374
313373
  }
313375
313374
  function checkMemoShouldUploadSpecialFun(prev, next) {
313376
- var _prevCol$componentPro, _nextCol$componentPro, _prevCol$componentPro2, _nextCol$componentPro2, _prevCol$componentPro3, _nextCol$componentPro3, _prevCol$componentPro4, _nextCol$componentPro4, _prevCol$componentPro5, _nextCol$componentPro5, _next$className, _prevCol$componentPro6, _nextCol$componentPro6;
313375
+ var _prevCol$componentPro, _nextCol$componentPro, _prevCol$componentPro2, _nextCol$componentPro2, _prevCol$componentPro3, _nextCol$componentPro3, _prevCol$componentPro4, _nextCol$componentPro4, _prevCol$componentPro5, _nextCol$componentPro5, _next$className, _next$className2, _prevCol$componentPro6, _nextCol$componentPro6;
313377
313376
 
313378
313377
  var checkExpandStatus = getExpandStatus(prev.children) === getExpandStatus(next.children);
313379
313378
 
@@ -313431,6 +313430,10 @@
313431
313430
  return false;
313432
313431
  }
313433
313432
 
313433
+ if (((_next$className2 = next.className) === null || _next$className2 === void 0 ? void 0 : _next$className2.indexOf('ant-table-cell-with-append')) > -1) {
313434
+ return false;
313435
+ }
313436
+
313434
313437
  if (next.className.indexOf('ant-table-selection-column') > -1) {
313435
313438
  var _prev$children, _prev$children$, _next$children, _next$children$;
313436
313439
 
@@ -314280,7 +314283,22 @@
314280
314283
  onClick: toggleEdit
314281
314284
  }, childNode);
314282
314285
  } else if (isEdit && editable) {
314283
- childNode = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, isExpandRow(childNode) && childNode[0], /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread(_objectSpread({
314286
+ childNode = isExpandRow(childNode) ? /*#__PURE__*/React__default['default'].createElement("div", {
314287
+ style: {
314288
+ display: 'flex',
314289
+ flexDirection: 'row',
314290
+ flexWrap: 'nowrap'
314291
+ }
314292
+ }, isExpandRow(childNode) && childNode[0], /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread(_objectSpread({
314293
+ errorPlacement: "right",
314294
+ valuePropName: editable === 'switch' ? 'checked' : 'value',
314295
+ style: {
314296
+ margin: 0
314297
+ },
314298
+ noStyle: formProps ? false : true
314299
+ }, formProps), {}, {
314300
+ name: dataIndex
314301
+ }), Control(editable))) : /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread(_objectSpread({
314284
314302
  errorPlacement: "right",
314285
314303
  valuePropName: editable === 'switch' ? 'checked' : 'value',
314286
314304
  style: {
@@ -314289,10 +314307,24 @@
314289
314307
  noStyle: formProps ? false : true
314290
314308
  }, formProps), {}, {
314291
314309
  name: dataIndex
314292
- }), Control(editable)));
314310
+ }), Control(editable));
314293
314311
 
314294
314312
  if (editable === 'input' && ((resultComponentProps === null || resultComponentProps === void 0 ? void 0 : resultComponentProps.addonBefore) || (resultComponentProps === null || resultComponentProps === void 0 ? void 0 : resultComponentProps.addonAfter))) {
314295
- childNode = /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, isExpandRow(childNode) && childNode[0], /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread(_objectSpread({
314313
+ childNode = isExpandRow(childNode) ? /*#__PURE__*/React__default['default'].createElement("div", {
314314
+ style: {
314315
+ display: 'flex',
314316
+ flexDirection: 'row',
314317
+ flexWrap: 'nowrap'
314318
+ }
314319
+ }, isExpandRow(childNode) && childNode[0], /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread(_objectSpread({
314320
+ errorPlacement: "right",
314321
+ style: {
314322
+ margin: 0
314323
+ }
314324
+ }, formProps), {}, {
314325
+ noStyle: formProps ? false : true,
314326
+ name: [dataIndex, 'value']
314327
+ }), Control(editable))) : /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread(_objectSpread({
314296
314328
  errorPlacement: "right",
314297
314329
  style: {
314298
314330
  margin: 0
@@ -314300,7 +314332,7 @@
314300
314332
  }, formProps), {}, {
314301
314333
  noStyle: formProps ? false : true,
314302
314334
  name: [dataIndex, 'value']
314303
- }), Control(editable)));
314335
+ }), Control(editable));
314304
314336
  }
314305
314337
  } else if (!isEdit && (componentProps === null || componentProps === void 0 ? void 0 : componentProps.options)) {
314306
314338
  var _componentProps$optio, _componentProps$optio2;
@@ -314498,80 +314530,7 @@
314498
314530
  draft.push(_objectSpread(_defineProperty$1({}, _rowKey, "".concat(Date.now())), addDataInfo || {}));
314499
314531
  });
314500
314532
  setDataSource(res);
314501
- }, 40);
314502
-
314503
- var handleSave = function handleSave(row, options) {
314504
- var _deepDataSourceRef$cu, _deepDataSourceRef$cu2;
314505
-
314506
- var preKeys = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : (_deepDataSourceRef$cu = deepDataSourceRef.current) === null || _deepDataSourceRef$cu === void 0 ? void 0 : (_deepDataSourceRef$cu2 = _deepDataSourceRef$cu[row[_rowKey]]) === null || _deepDataSourceRef$cu2 === void 0 ? void 0 : _deepDataSourceRef$cu2.preKeys;
314507
- var res = fn(dataSourceRef.current, function (draft) {
314508
- if (options === null || options === void 0 ? void 0 : options.only) {
314509
- var _options$only = options === null || options === void 0 ? void 0 : options.only,
314510
- key = _options$only.key,
314511
- value = _options$only.value;
314512
-
314513
- if ((preKeys === null || preKeys === void 0 ? void 0 : preKeys.length) > 1) {
314514
- var deeps = function deeps(children) {
314515
- children === null || children === void 0 ? void 0 : children.forEach(function (item) {
314516
- if (preKeys.includes(item[_rowKey])) {
314517
- if (item[_rowKey] === row[_rowKey]) {
314518
- var _Object$keys;
314519
-
314520
- children === null || children === void 0 ? void 0 : children.forEach(function (c) {
314521
- c[key] = value;
314522
- });
314523
- (_Object$keys = Object.keys(item)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.forEach(function (v) {
314524
- item[v] = row[v] || item[v];
314525
- });
314526
- } else if (item.children) {
314527
- deeps(item.children);
314528
- }
314529
- }
314530
- });
314531
- };
314532
-
314533
- deeps(draft);
314534
- } else {
314535
- draft === null || draft === void 0 ? void 0 : draft.forEach(function (item, index) {
314536
- if (row[_rowKey] === item[_rowKey]) {
314537
- draft[index] = row;
314538
- } else {
314539
- draft[index][key] = value;
314540
- }
314541
- });
314542
- }
314543
- } else {
314544
- if ((preKeys === null || preKeys === void 0 ? void 0 : preKeys.length) > 1) {
314545
- var _deeps = function _deeps(children) {
314546
- children === null || children === void 0 ? void 0 : children.forEach(function (item) {
314547
- if (preKeys.includes(item[_rowKey])) {
314548
- if (item[_rowKey] === row[_rowKey]) {
314549
- var _Object$keys2;
314550
-
314551
- (_Object$keys2 = Object.keys(row)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.forEach(function (v) {
314552
- item[v] = row[v] || item[v];
314553
- });
314554
- } else if (item.children) {
314555
- _deeps(item.children);
314556
- }
314557
- }
314558
- });
314559
- };
314560
-
314561
- _deeps(draft);
314562
- } else {
314563
- var index = draft.findIndex(function (item) {
314564
- return row[_rowKey] === item[_rowKey];
314565
- });
314566
-
314567
- if (index !== -1) {
314568
- draft[index] = row;
314569
- }
314570
- }
314571
- }
314572
- });
314573
- setDataSource(res);
314574
- }; // const reWriteOriginSource = (rowKey: string, rowValue, dataIndex: number, nextValue) => {
314533
+ }, 40); // const reWriteOriginSource = (rowKey: string, rowValue, dataIndex: number, nextValue) => {
314575
314534
  // setDataSource((prevDataSource) => {
314576
314535
  // return prevDataSource?.map((item) => {
314577
314536
  // if (get(item, rowKey) === rowValue) {
@@ -314585,12 +314544,11 @@
314585
314544
 
314586
314545
  /** 删除当前行 */
314587
314546
 
314588
-
314589
314547
  var handleTableRowDelete = lodash.debounce(function (key) {
314590
- var _deepDataSourceRef$cu3, _deepDataSourceRef$cu4;
314548
+ var _deepDataSourceRef$cu, _deepDataSourceRef$cu2;
314591
314549
 
314592
314550
  var rkey = lodash.isObject(key) ? key[_rowKey] : key;
314593
- var preKeys = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : (_deepDataSourceRef$cu3 = deepDataSourceRef.current) === null || _deepDataSourceRef$cu3 === void 0 ? void 0 : (_deepDataSourceRef$cu4 = _deepDataSourceRef$cu3[rkey]) === null || _deepDataSourceRef$cu4 === void 0 ? void 0 : _deepDataSourceRef$cu4.preKeys;
314551
+ var preKeys = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : (_deepDataSourceRef$cu = deepDataSourceRef.current) === null || _deepDataSourceRef$cu === void 0 ? void 0 : (_deepDataSourceRef$cu2 = _deepDataSourceRef$cu[rkey]) === null || _deepDataSourceRef$cu2 === void 0 ? void 0 : _deepDataSourceRef$cu2.preKeys;
314594
314552
 
314595
314553
  if (preKeys.length > 1) {
314596
314554
  /** 说明删除的是children中的数据 */
@@ -314638,10 +314596,10 @@
314638
314596
  /** 替换当前行 */
314639
314597
 
314640
314598
  var handleTableRowReplace = lodash.debounce(function (record, defaultRecord) {
314641
- var _deepDataSourceRef$cu5, _deepDataSourceRef$cu6;
314599
+ var _deepDataSourceRef$cu3, _deepDataSourceRef$cu4;
314642
314600
 
314643
314601
  var rkey = lodash.isObject(record) ? record[_rowKey] : record;
314644
- var preKeys = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : (_deepDataSourceRef$cu5 = deepDataSourceRef.current) === null || _deepDataSourceRef$cu5 === void 0 ? void 0 : (_deepDataSourceRef$cu6 = _deepDataSourceRef$cu5[rkey]) === null || _deepDataSourceRef$cu6 === void 0 ? void 0 : _deepDataSourceRef$cu6.preKeys; // const res = cloneDeep(dataSourceRef.current)
314602
+ var preKeys = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : (_deepDataSourceRef$cu3 = deepDataSourceRef.current) === null || _deepDataSourceRef$cu3 === void 0 ? void 0 : (_deepDataSourceRef$cu4 = _deepDataSourceRef$cu3[rkey]) === null || _deepDataSourceRef$cu4 === void 0 ? void 0 : _deepDataSourceRef$cu4.preKeys; // const res = cloneDeep(dataSourceRef.current)
314645
314603
 
314646
314604
  var deep = function deep(children) {
314647
314605
  return children.map(function (item) {
@@ -314660,14 +314618,14 @@
314660
314618
 
314661
314619
  var res = deep(dataSourceRef.current);
314662
314620
  setDataSource(res);
314663
- }, 40);
314621
+ }, 20);
314664
314622
  /** 快捷添加 */
314665
314623
 
314666
314624
  var handleTableRowAdd = lodash.debounce(function (record, isAppendInChindren, defaultRecord) {
314667
- var _deepDataSourceRef$cu7, _deepDataSourceRef$cu8;
314625
+ var _deepDataSourceRef$cu5, _deepDataSourceRef$cu6;
314668
314626
 
314669
314627
  var rkey = lodash.isObject(record) ? record[_rowKey] : record;
314670
- var preKeys = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : (_deepDataSourceRef$cu7 = deepDataSourceRef.current) === null || _deepDataSourceRef$cu7 === void 0 ? void 0 : (_deepDataSourceRef$cu8 = _deepDataSourceRef$cu7[rkey]) === null || _deepDataSourceRef$cu8 === void 0 ? void 0 : _deepDataSourceRef$cu8.preKeys;
314628
+ var preKeys = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : (_deepDataSourceRef$cu5 = deepDataSourceRef.current) === null || _deepDataSourceRef$cu5 === void 0 ? void 0 : (_deepDataSourceRef$cu6 = _deepDataSourceRef$cu5[rkey]) === null || _deepDataSourceRef$cu6 === void 0 ? void 0 : _deepDataSourceRef$cu6.preKeys;
314671
314629
  var res = fn(dataSourceRef.current, function (draft) {
314672
314630
  if ((preKeys === null || preKeys === void 0 ? void 0 : preKeys.length) > 1) {
314673
314631
  var deeps = function deeps(children) {
@@ -314745,8 +314703,87 @@
314745
314703
  });
314746
314704
  setDataSource(res);
314747
314705
  }, 50);
314706
+
314707
+ var handleSave = function handleSave(row, options) {
314708
+ var _deepDataSourceRef$cu7, _deepDataSourceRef$cu8;
314709
+
314710
+ var preKeys = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : (_deepDataSourceRef$cu7 = deepDataSourceRef.current) === null || _deepDataSourceRef$cu7 === void 0 ? void 0 : (_deepDataSourceRef$cu8 = _deepDataSourceRef$cu7[row[_rowKey]]) === null || _deepDataSourceRef$cu8 === void 0 ? void 0 : _deepDataSourceRef$cu8.preKeys;
314711
+
314712
+ if (options === null || options === void 0 ? void 0 : options.only) {
314713
+ var res = fn(dataSourceRef.current, function (draft) {
314714
+ if (options === null || options === void 0 ? void 0 : options.only) {
314715
+ var _options$only = options === null || options === void 0 ? void 0 : options.only,
314716
+ key = _options$only.key,
314717
+ value = _options$only.value;
314718
+
314719
+ if ((preKeys === null || preKeys === void 0 ? void 0 : preKeys.length) > 1) {
314720
+ var deeps = function deeps(children) {
314721
+ children === null || children === void 0 ? void 0 : children.forEach(function (item) {
314722
+ if (preKeys.includes(item[_rowKey])) {
314723
+ if (item[_rowKey] === row[_rowKey]) {
314724
+ var _Object$keys;
314725
+
314726
+ children === null || children === void 0 ? void 0 : children.forEach(function (c) {
314727
+ c[key] = value;
314728
+ });
314729
+ (_Object$keys = Object.keys(item)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.forEach(function (v) {
314730
+ item[v] = row[v] || item[v];
314731
+ });
314732
+ } else if (item.children) {
314733
+ deeps(item.children);
314734
+ }
314735
+ }
314736
+ });
314737
+ };
314738
+
314739
+ deeps(draft);
314740
+ } else {
314741
+ draft === null || draft === void 0 ? void 0 : draft.forEach(function (item, index) {
314742
+ if (row[_rowKey] === item[_rowKey]) {
314743
+ draft[index] = row;
314744
+ } else {
314745
+ draft[index][key] = value;
314746
+ }
314747
+ });
314748
+ }
314749
+ } else {
314750
+ if ((preKeys === null || preKeys === void 0 ? void 0 : preKeys.length) > 1) {
314751
+ var _deeps = function _deeps(children) {
314752
+ children === null || children === void 0 ? void 0 : children.forEach(function (item) {
314753
+ if (preKeys.includes(item[_rowKey])) {
314754
+ if (item[_rowKey] === row[_rowKey]) {
314755
+ var _Object$keys2;
314756
+
314757
+ (_Object$keys2 = Object.keys(row)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.forEach(function (v) {
314758
+ item[v] = row[v] || item[v];
314759
+ });
314760
+ } else if (item.children) {
314761
+ _deeps(item.children);
314762
+ }
314763
+ }
314764
+ });
314765
+ };
314766
+
314767
+ _deeps(draft);
314768
+ } else {
314769
+ var index = draft.findIndex(function (item) {
314770
+ return row[_rowKey] === item[_rowKey];
314771
+ });
314772
+
314773
+ if (index !== -1) {
314774
+ draft[index] = row;
314775
+ }
314776
+ }
314777
+ }
314778
+ });
314779
+ setDataSource(res);
314780
+ } else {
314781
+ handleTableRowReplace(row[_rowKey], row);
314782
+ }
314783
+ };
314748
314784
  /** 快捷刷子功能 */
314749
314785
 
314786
+
314750
314787
  var handleCopy = function handleCopy(key, value, type, rowIndex) {
314751
314788
  var res = fn(dataSourceRef.current, function (draft) {
314752
314789
  draft === null || draft === void 0 ? void 0 : draft.forEach(function (item, index) {
@@ -314832,6 +314869,7 @@
314832
314869
  maxWidth: 48,
314833
314870
  className: 'drag-visible',
314834
314871
  fixed: 'left',
314872
+ order: -2,
314835
314873
  render: function render(_, record) {
314836
314874
  return /*#__PURE__*/React__default['default'].createElement(Dragger$1, {
314837
314875
  id: (record === null || record === void 0 ? void 0 : record[_rowKey]) || (record === null || record === void 0 ? void 0 : record.id)
@@ -314844,6 +314882,7 @@
314844
314882
  maxWidth: 48,
314845
314883
  ellipsis: true,
314846
314884
  fixed: 'left',
314885
+ order: -1,
314847
314886
  render: function render(_, record, index) {
314848
314887
  var _deepDataSourceRef$cu9, _deepDataSourceRef$cu10, _deepDataSourceRef$cu11;
314849
314888
 
@@ -314855,6 +314894,7 @@
314855
314894
  width: 48,
314856
314895
  ellipsis: true,
314857
314896
  maxWidth: 48,
314897
+ order: -1,
314858
314898
  fixed: 'left'
314859
314899
  }, indexCol || {}), {}, {
314860
314900
  render: function render(_, record, index) {
@@ -314892,7 +314932,7 @@
314892
314932
  var mainColumns = [];
314893
314933
  var rightColumns = [];
314894
314934
  (_localColumns2 = localColumns) === null || _localColumns2 === void 0 ? void 0 : _localColumns2.forEach(function (item) {
314895
- if ((item === null || item === void 0 ? void 0 : item.fixed) === 'left') {
314935
+ if ((item === null || item === void 0 ? void 0 : item.fixed) === 'left' || (item === null || item === void 0 ? void 0 : item.fixed) === true) {
314896
314936
  leftColumns.push(item);
314897
314937
  } else if ((item === null || item === void 0 ? void 0 : item.fixed) === 'right') {
314898
314938
  rightColumns.push(item);
@@ -315091,6 +315131,11 @@
315091
315131
  while (1) {
315092
315132
  switch (_context4.prev = _context4.next) {
315093
315133
  case 0:
315134
+ if (!virtual) {
315135
+ _context4.next = 17;
315136
+ break;
315137
+ }
315138
+
315094
315139
  fullNum = 0;
315095
315140
  flag = true;
315096
315141
  messageIndex = null;
@@ -315167,18 +315212,18 @@
315167
315212
  };
315168
315213
  }();
315169
315214
 
315170
- _context4.next = 8;
315215
+ _context4.next = 9;
315171
315216
  return deepValidator(dataSource, null);
315172
315217
 
315173
- case 8:
315218
+ case 9:
315174
315219
  if (!flag) {
315175
- _context4.next = 12;
315220
+ _context4.next = 13;
315176
315221
  break;
315177
315222
  }
315178
315223
 
315179
315224
  return _context4.abrupt("return", Promise.resolve(dataSource));
315180
315225
 
315181
- case 12:
315226
+ case 13:
315182
315227
  setTimeout(function () {
315183
315228
  if (messageIndex !== null) {
315184
315229
  var _scrollToIndexRef$cur;
@@ -315245,7 +315290,18 @@
315245
315290
  }, 100);
315246
315291
  return _context4.abrupt("return", Promise.reject(errorInfo));
315247
315292
 
315248
- case 14:
315293
+ case 15:
315294
+ _context4.next = 18;
315295
+ break;
315296
+
315297
+ case 17:
315298
+ return _context4.abrupt("return", Promise.all(Object.values(allFormListRef.current || []).map(function (item) {
315299
+ var _item$form;
315300
+
315301
+ return item === null || item === void 0 ? void 0 : (_item$form = item.form) === null || _item$form === void 0 ? void 0 : _item$form.validateFields();
315302
+ })));
315303
+
315304
+ case 18:
315249
315305
  case "end":
315250
315306
  return _context4.stop();
315251
315307
  }
@@ -315356,6 +315412,29 @@
315356
315412
  };
315357
315413
  }
315358
315414
  }, []);
315415
+ var checkFormItem = React.useMemo(function () {
315416
+ var arr = [];
315417
+ columns.forEach(function (item) {
315418
+ if (item.children) {
315419
+ var _item$children3;
315420
+
315421
+ (_item$children3 = item.children) === null || _item$children3 === void 0 ? void 0 : _item$children3.forEach(function (c) {
315422
+ arr.push( /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread({
315423
+ noStyle: true,
315424
+ key: c.dataIndex,
315425
+ name: c.dataIndex
315426
+ }, (c === null || c === void 0 ? void 0 : c['formProps']) || {}), c.dataIndex || 'text'));
315427
+ });
315428
+ } else {
315429
+ arr.push( /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread({
315430
+ noStyle: true,
315431
+ key: item.dataIndex,
315432
+ name: item.dataIndex
315433
+ }, (item === null || item === void 0 ? void 0 : item['formProps']) || {}), item.dataIndex || 'text'));
315434
+ }
315435
+ });
315436
+ return arr;
315437
+ }, [columns]);
315359
315438
 
315360
315439
  if (colSortOpen) {
315361
315440
  var _localRowSelectList$s;
@@ -315382,6 +315461,19 @@
315382
315461
  rowClassName: "editable-row",
315383
315462
  bordered: true,
315384
315463
  pagination: false,
315464
+ expandable: _objectSpread({
315465
+ expandedRowKeys: expandedRowKeys,
315466
+ fixed: true,
315467
+ indentSize: 0,
315468
+ expandIconColumnIndex: checkExpandIconColumnIndex({
315469
+ rowSelection: rowSelection,
315470
+ sortOpen: sortOpen,
315471
+ indexCol: indexCol
315472
+ }) || 0,
315473
+ onExpandedRowsChange: function onExpandedRowsChange(expandedRows) {
315474
+ return setExpandedRowKeys(expandedRows);
315475
+ }
315476
+ }, resetProps === null || resetProps === void 0 ? void 0 : resetProps.expandable),
315385
315477
  rowSelection: !rowSelection ? undefined : _objectSpread(_objectSpread({
315386
315478
  fixed: true,
315387
315479
  type: 'checkbox',
@@ -315407,13 +315499,7 @@
315407
315499
  }, /*#__PURE__*/React__default['default'].createElement(Form$4, {
315408
315500
  form: checkForm,
315409
315501
  component: false
315410
- }, columns.map(function (item) {
315411
- return /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread({
315412
- noStyle: true,
315413
- key: item.dataIndex,
315414
- name: item.dataIndex
315415
- }, (item === null || item === void 0 ? void 0 : item['formProps']) || {}), item.dataIndex || 'text');
315416
- }))));
315502
+ }, checkFormItem)));
315417
315503
  } // @ts-ignore
315418
315504
 
315419
315505
 
@@ -315435,10 +315521,10 @@
315435
315521
  } : undefined,
315436
315522
  pagination: false,
315437
315523
  // components={tableComponents}
315438
- expandable: (resetProps === null || resetProps === void 0 ? void 0 : resetProps.expandable) || {
315524
+ expandable: _objectSpread({
315439
315525
  expandedRowKeys: expandedRowKeys,
315440
315526
  fixed: true,
315441
- // indentSize: 0,
315527
+ indentSize: 0,
315442
315528
  expandIconColumnIndex: checkExpandIconColumnIndex({
315443
315529
  rowSelection: rowSelection,
315444
315530
  sortOpen: sortOpen,
@@ -315447,7 +315533,7 @@
315447
315533
  onExpandedRowsChange: function onExpandedRowsChange(expandedRows) {
315448
315534
  return setExpandedRowKeys(expandedRows);
315449
315535
  }
315450
- },
315536
+ }, resetProps === null || resetProps === void 0 ? void 0 : resetProps.expandable),
315451
315537
  rowSelection: !rowSelection ? undefined : _objectSpread(_objectSpread({
315452
315538
  fixed: true,
315453
315539
  type: 'checkbox',
@@ -315473,13 +315559,7 @@
315473
315559
  }, /*#__PURE__*/React__default['default'].createElement(Form$4, {
315474
315560
  form: checkForm,
315475
315561
  component: false
315476
- }, columns.map(function (item) {
315477
- return /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread({
315478
- noStyle: true,
315479
- key: item.dataIndex,
315480
- name: item.dataIndex
315481
- }, (item === null || item === void 0 ? void 0 : item['formProps']) || {}), item.dataIndex || 'text');
315482
- }))));
315562
+ }, checkFormItem)));
315483
315563
  });
315484
315564
  var LmEditTable = /*#__PURE__*/React.memo(EditTable$1);
315485
315565