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.
@@ -591,7 +591,13 @@ var EditableCell = function EditableCell(props) {
591
591
  onClick: toggleEdit
592
592
  }, childNode);
593
593
  } else if (isEdit && editable) {
594
- childNode = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _util.isExpandRow)(childNode) && childNode[0], /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form.Item, Object.assign({
594
+ childNode = (0, _util.isExpandRow)(childNode) ? /*#__PURE__*/_react.default.createElement("div", {
595
+ style: {
596
+ display: 'flex',
597
+ flexDirection: 'row',
598
+ flexWrap: 'nowrap'
599
+ }
600
+ }, (0, _util.isExpandRow)(childNode) && childNode[0], /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form.Item, Object.assign({
595
601
  errorPlacement: "right",
596
602
  valuePropName: editable === 'switch' ? 'checked' : 'value',
597
603
  style: {
@@ -600,10 +606,33 @@ var EditableCell = function EditableCell(props) {
600
606
  noStyle: formProps ? false : true
601
607
  }, formProps, {
602
608
  name: dataIndex
603
- }), Control(editable)));
609
+ }), Control(editable))) : /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form.Item, Object.assign({
610
+ errorPlacement: "right",
611
+ valuePropName: editable === 'switch' ? 'checked' : 'value',
612
+ style: {
613
+ margin: 0
614
+ },
615
+ noStyle: formProps ? false : true
616
+ }, formProps, {
617
+ name: dataIndex
618
+ }), Control(editable));
604
619
 
605
620
  if (editable === 'input' && ((resultComponentProps === null || resultComponentProps === void 0 ? void 0 : resultComponentProps.addonBefore) || (resultComponentProps === null || resultComponentProps === void 0 ? void 0 : resultComponentProps.addonAfter))) {
606
- childNode = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _util.isExpandRow)(childNode) && childNode[0], /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form.Item, Object.assign({
621
+ childNode = (0, _util.isExpandRow)(childNode) ? /*#__PURE__*/_react.default.createElement("div", {
622
+ style: {
623
+ display: 'flex',
624
+ flexDirection: 'row',
625
+ flexWrap: 'nowrap'
626
+ }
627
+ }, (0, _util.isExpandRow)(childNode) && childNode[0], /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form.Item, Object.assign({
628
+ errorPlacement: "right",
629
+ style: {
630
+ margin: 0
631
+ }
632
+ }, formProps, {
633
+ noStyle: formProps ? false : true,
634
+ name: [dataIndex, 'value']
635
+ }), Control(editable))) : /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form.Item, Object.assign({
607
636
  errorPlacement: "right",
608
637
  style: {
609
638
  margin: 0
@@ -611,7 +640,7 @@ var EditableCell = function EditableCell(props) {
611
640
  }, formProps, {
612
641
  noStyle: formProps ? false : true,
613
642
  name: [dataIndex, 'value']
614
- }), Control(editable)));
643
+ }), Control(editable));
615
644
  }
616
645
  } else if (!isEdit && (componentProps === null || componentProps === void 0 ? void 0 : componentProps.options)) {
617
646
  return ((_b = (_a = componentProps === null || componentProps === void 0 ? void 0 : componentProps.options) === null || _a === void 0 ? void 0 : _a.find(function (item) {
@@ -808,80 +837,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
808
837
  draft.push(Object.assign((0, _defineProperty2.default)({}, _rowKey, "".concat(Date.now())), addDataInfo || {}));
809
838
  });
810
839
  setDataSource(res);
811
- }, 40);
812
-
813
- var handleSave = function handleSave(row, options) {
814
- var _a, _b;
815
-
816
- var preKeys = (_b = (_a = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : deepDataSourceRef.current) === null || _a === void 0 ? void 0 : _a[row[_rowKey]]) === null || _b === void 0 ? void 0 : _b.preKeys;
817
- var res = (0, _immer.produce)(dataSourceRef.current, function (draft) {
818
- if (options === null || options === void 0 ? void 0 : options.only) {
819
- var _ref = options === null || options === void 0 ? void 0 : options.only,
820
- key = _ref.key,
821
- value = _ref.value;
822
-
823
- if ((preKeys === null || preKeys === void 0 ? void 0 : preKeys.length) > 1) {
824
- var deeps = function deeps(children) {
825
- children === null || children === void 0 ? void 0 : children.forEach(function (item) {
826
- var _a;
827
-
828
- if (preKeys.includes(item[_rowKey])) {
829
- if (item[_rowKey] === row[_rowKey]) {
830
- children === null || children === void 0 ? void 0 : children.forEach(function (c) {
831
- c[key] = value;
832
- });
833
- (_a = Object.keys(item)) === null || _a === void 0 ? void 0 : _a.forEach(function (v) {
834
- item[v] = row[v] || item[v];
835
- });
836
- } else if (item.children) {
837
- deeps(item.children);
838
- }
839
- }
840
- });
841
- };
842
-
843
- deeps(draft);
844
- } else {
845
- draft === null || draft === void 0 ? void 0 : draft.forEach(function (item, index) {
846
- if (row[_rowKey] === item[_rowKey]) {
847
- draft[index] = row;
848
- } else {
849
- draft[index][key] = value;
850
- }
851
- });
852
- }
853
- } else {
854
- if ((preKeys === null || preKeys === void 0 ? void 0 : preKeys.length) > 1) {
855
- var _deeps = function _deeps(children) {
856
- children === null || children === void 0 ? void 0 : children.forEach(function (item) {
857
- var _a;
858
-
859
- if (preKeys.includes(item[_rowKey])) {
860
- if (item[_rowKey] === row[_rowKey]) {
861
- (_a = Object.keys(row)) === null || _a === void 0 ? void 0 : _a.forEach(function (v) {
862
- item[v] = row[v] || item[v];
863
- });
864
- } else if (item.children) {
865
- _deeps(item.children);
866
- }
867
- }
868
- });
869
- };
870
-
871
- _deeps(draft);
872
- } else {
873
- var index = draft.findIndex(function (item) {
874
- return row[_rowKey] === item[_rowKey];
875
- });
876
-
877
- if (index !== -1) {
878
- draft[index] = row;
879
- }
880
- }
881
- }
882
- });
883
- setDataSource(res);
884
- }; // const reWriteOriginSource = (rowKey: string, rowValue, dataIndex: number, nextValue) => {
840
+ }, 40); // const reWriteOriginSource = (rowKey: string, rowValue, dataIndex: number, nextValue) => {
885
841
  // setDataSource((prevDataSource) => {
886
842
  // return prevDataSource?.map((item) => {
887
843
  // if (get(item, rowKey) === rowValue) {
@@ -895,7 +851,6 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
895
851
 
896
852
  /** 删除当前行 */
897
853
 
898
-
899
854
  var handleTableRowDelete = (0, _lodash.debounce)(function (key) {
900
855
  var _a, _b, _c;
901
856
 
@@ -968,7 +923,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
968
923
 
969
924
  var res = deep(dataSourceRef.current);
970
925
  setDataSource(res);
971
- }, 40);
926
+ }, 20);
972
927
  /** 快捷添加 */
973
928
 
974
929
  var handleTableRowAdd = (0, _lodash.debounce)(function (record, isAppendInChindren, defaultRecord) {
@@ -1051,8 +1006,87 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1051
1006
  });
1052
1007
  setDataSource(res);
1053
1008
  }, 50);
1009
+
1010
+ var handleSave = function handleSave(row, options) {
1011
+ var _a, _b;
1012
+
1013
+ var preKeys = (_b = (_a = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : deepDataSourceRef.current) === null || _a === void 0 ? void 0 : _a[row[_rowKey]]) === null || _b === void 0 ? void 0 : _b.preKeys;
1014
+
1015
+ if (options === null || options === void 0 ? void 0 : options.only) {
1016
+ var res = (0, _immer.produce)(dataSourceRef.current, function (draft) {
1017
+ if (options === null || options === void 0 ? void 0 : options.only) {
1018
+ var _ref7 = options === null || options === void 0 ? void 0 : options.only,
1019
+ key = _ref7.key,
1020
+ value = _ref7.value;
1021
+
1022
+ if ((preKeys === null || preKeys === void 0 ? void 0 : preKeys.length) > 1) {
1023
+ var deeps = function deeps(children) {
1024
+ children === null || children === void 0 ? void 0 : children.forEach(function (item) {
1025
+ var _a;
1026
+
1027
+ if (preKeys.includes(item[_rowKey])) {
1028
+ if (item[_rowKey] === row[_rowKey]) {
1029
+ children === null || children === void 0 ? void 0 : children.forEach(function (c) {
1030
+ c[key] = value;
1031
+ });
1032
+ (_a = Object.keys(item)) === null || _a === void 0 ? void 0 : _a.forEach(function (v) {
1033
+ item[v] = row[v] || item[v];
1034
+ });
1035
+ } else if (item.children) {
1036
+ deeps(item.children);
1037
+ }
1038
+ }
1039
+ });
1040
+ };
1041
+
1042
+ deeps(draft);
1043
+ } else {
1044
+ draft === null || draft === void 0 ? void 0 : draft.forEach(function (item, index) {
1045
+ if (row[_rowKey] === item[_rowKey]) {
1046
+ draft[index] = row;
1047
+ } else {
1048
+ draft[index][key] = value;
1049
+ }
1050
+ });
1051
+ }
1052
+ } else {
1053
+ if ((preKeys === null || preKeys === void 0 ? void 0 : preKeys.length) > 1) {
1054
+ var _deeps = function _deeps(children) {
1055
+ children === null || children === void 0 ? void 0 : children.forEach(function (item) {
1056
+ var _a;
1057
+
1058
+ if (preKeys.includes(item[_rowKey])) {
1059
+ if (item[_rowKey] === row[_rowKey]) {
1060
+ (_a = Object.keys(row)) === null || _a === void 0 ? void 0 : _a.forEach(function (v) {
1061
+ item[v] = row[v] || item[v];
1062
+ });
1063
+ } else if (item.children) {
1064
+ _deeps(item.children);
1065
+ }
1066
+ }
1067
+ });
1068
+ };
1069
+
1070
+ _deeps(draft);
1071
+ } else {
1072
+ var index = draft.findIndex(function (item) {
1073
+ return row[_rowKey] === item[_rowKey];
1074
+ });
1075
+
1076
+ if (index !== -1) {
1077
+ draft[index] = row;
1078
+ }
1079
+ }
1080
+ }
1081
+ });
1082
+ setDataSource(res);
1083
+ } else {
1084
+ handleTableRowReplace(row[_rowKey], row);
1085
+ }
1086
+ };
1054
1087
  /** 快捷刷子功能 */
1055
1088
 
1089
+
1056
1090
  var handleCopy = function handleCopy(key, value, type, rowIndex) {
1057
1091
  var res = (0, _immer.produce)(dataSourceRef.current, function (draft) {
1058
1092
  draft === null || draft === void 0 ? void 0 : draft.forEach(function (item, index) {
@@ -1136,6 +1170,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1136
1170
  maxWidth: 48,
1137
1171
  className: 'drag-visible',
1138
1172
  fixed: 'left',
1173
+ order: -2,
1139
1174
  render: function render(_, record) {
1140
1175
  return /*#__PURE__*/_react.default.createElement(_DragHandle.default, {
1141
1176
  id: (record === null || record === void 0 ? void 0 : record[_rowKey]) || (record === null || record === void 0 ? void 0 : record.id)
@@ -1148,6 +1183,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1148
1183
  maxWidth: 48,
1149
1184
  ellipsis: true,
1150
1185
  fixed: 'left',
1186
+ order: -1,
1151
1187
  render: function render(_, record, index) {
1152
1188
  var _a, _b, _c;
1153
1189
 
@@ -1159,6 +1195,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1159
1195
  width: 48,
1160
1196
  ellipsis: true,
1161
1197
  maxWidth: 48,
1198
+ order: -1,
1162
1199
  fixed: 'left'
1163
1200
  }, indexCol || {}), {
1164
1201
  render: function render(_, record, index) {
@@ -1194,7 +1231,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1194
1231
  var mainColumns = [];
1195
1232
  var rightColumns = [];
1196
1233
  localColumns === null || localColumns === void 0 ? void 0 : localColumns.forEach(function (item) {
1197
- if ((item === null || item === void 0 ? void 0 : item.fixed) === 'left') {
1234
+ if ((item === null || item === void 0 ? void 0 : item.fixed) === 'left' || (item === null || item === void 0 ? void 0 : item.fixed) === true) {
1198
1235
  leftColumns.push(item);
1199
1236
  } else if ((item === null || item === void 0 ? void 0 : item.fixed) === 'right') {
1200
1237
  rightColumns.push(item);
@@ -1390,6 +1427,11 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1390
1427
  while (1) {
1391
1428
  switch (_context4.prev = _context4.next) {
1392
1429
  case 0:
1430
+ if (!virtual) {
1431
+ _context4.next = 17;
1432
+ break;
1433
+ }
1434
+
1393
1435
  fullNum = 0;
1394
1436
  flag = true;
1395
1437
  messageIndex = null;
@@ -1462,18 +1504,18 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1462
1504
  }));
1463
1505
  };
1464
1506
 
1465
- _context4.next = 8;
1507
+ _context4.next = 9;
1466
1508
  return deepValidator(dataSource, null);
1467
1509
 
1468
- case 8:
1510
+ case 9:
1469
1511
  if (!flag) {
1470
- _context4.next = 12;
1512
+ _context4.next = 13;
1471
1513
  break;
1472
1514
  }
1473
1515
 
1474
1516
  return _context4.abrupt("return", Promise.resolve(dataSource));
1475
1517
 
1476
- case 12:
1518
+ case 13:
1477
1519
  setTimeout(function () {
1478
1520
  var _a;
1479
1521
 
@@ -1542,7 +1584,18 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1542
1584
  }, 100);
1543
1585
  return _context4.abrupt("return", Promise.reject(errorInfo));
1544
1586
 
1545
- case 14:
1587
+ case 15:
1588
+ _context4.next = 18;
1589
+ break;
1590
+
1591
+ case 17:
1592
+ return _context4.abrupt("return", Promise.all(Object.values(allFormListRef.current || []).map(function (item) {
1593
+ var _a;
1594
+
1595
+ return (_a = item === null || item === void 0 ? void 0 : item.form) === null || _a === void 0 ? void 0 : _a.validateFields();
1596
+ })));
1597
+
1598
+ case 18:
1546
1599
  case "end":
1547
1600
  return _context4.stop();
1548
1601
  }
@@ -1647,6 +1700,29 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1647
1700
  };
1648
1701
  }
1649
1702
  }, []);
1703
+ var checkFormItem = (0, _react.useMemo)(function () {
1704
+ var arr = [];
1705
+ columns.forEach(function (item) {
1706
+ var _a;
1707
+
1708
+ if (item.children) {
1709
+ (_a = item.children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) {
1710
+ arr.push( /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form.Item, Object.assign({
1711
+ noStyle: true,
1712
+ key: c.dataIndex,
1713
+ name: c.dataIndex
1714
+ }, (c === null || c === void 0 ? void 0 : c['formProps']) || {}), c.dataIndex || 'text'));
1715
+ });
1716
+ } else {
1717
+ arr.push( /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form.Item, Object.assign({
1718
+ noStyle: true,
1719
+ key: item.dataIndex,
1720
+ name: item.dataIndex
1721
+ }, (item === null || item === void 0 ? void 0 : item['formProps']) || {}), item.dataIndex || 'text'));
1722
+ }
1723
+ });
1724
+ return arr;
1725
+ }, [columns]);
1650
1726
 
1651
1727
  if (colSortOpen) {
1652
1728
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -1671,6 +1747,19 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1671
1747
  rowClassName: "editable-row",
1672
1748
  bordered: true,
1673
1749
  pagination: false,
1750
+ expandable: Object.assign({
1751
+ expandedRowKeys: expandedRowKeys,
1752
+ fixed: true,
1753
+ indentSize: 0,
1754
+ expandIconColumnIndex: (0, _util.checkExpandIconColumnIndex)({
1755
+ rowSelection: rowSelection,
1756
+ sortOpen: sortOpen,
1757
+ indexCol: indexCol
1758
+ }) || 0,
1759
+ onExpandedRowsChange: function onExpandedRowsChange(expandedRows) {
1760
+ return setExpandedRowKeys(expandedRows);
1761
+ }
1762
+ }, resetProps === null || resetProps === void 0 ? void 0 : resetProps.expandable),
1674
1763
  rowSelection: !rowSelection ? undefined : Object.assign(Object.assign({
1675
1764
  fixed: true,
1676
1765
  type: 'checkbox',
@@ -1696,13 +1785,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1696
1785
  }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form, {
1697
1786
  form: checkForm,
1698
1787
  component: false
1699
- }, columns.map(function (item) {
1700
- return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form.Item, Object.assign({
1701
- noStyle: true,
1702
- key: item.dataIndex,
1703
- name: item.dataIndex
1704
- }, (item === null || item === void 0 ? void 0 : item['formProps']) || {}), item.dataIndex || 'text');
1705
- }))));
1788
+ }, checkFormItem)));
1706
1789
  } // @ts-ignore
1707
1790
 
1708
1791
 
@@ -1724,10 +1807,10 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1724
1807
  } : undefined,
1725
1808
  pagination: false,
1726
1809
  // components={tableComponents}
1727
- expandable: (resetProps === null || resetProps === void 0 ? void 0 : resetProps.expandable) || {
1810
+ expandable: Object.assign({
1728
1811
  expandedRowKeys: expandedRowKeys,
1729
1812
  fixed: true,
1730
- // indentSize: 0,
1813
+ indentSize: 0,
1731
1814
  expandIconColumnIndex: (0, _util.checkExpandIconColumnIndex)({
1732
1815
  rowSelection: rowSelection,
1733
1816
  sortOpen: sortOpen,
@@ -1736,7 +1819,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1736
1819
  onExpandedRowsChange: function onExpandedRowsChange(expandedRows) {
1737
1820
  return setExpandedRowKeys(expandedRows);
1738
1821
  }
1739
- },
1822
+ }, resetProps === null || resetProps === void 0 ? void 0 : resetProps.expandable),
1740
1823
  rowSelection: !rowSelection ? undefined : Object.assign(Object.assign({
1741
1824
  fixed: true,
1742
1825
  type: 'checkbox',
@@ -1762,13 +1845,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1762
1845
  }, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form, {
1763
1846
  form: checkForm,
1764
1847
  component: false
1765
- }, columns.map(function (item) {
1766
- return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Form.Item, Object.assign({
1767
- noStyle: true,
1768
- key: item.dataIndex,
1769
- name: item.dataIndex
1770
- }, (item === null || item === void 0 ? void 0 : item['formProps']) || {}), item.dataIndex || 'text');
1771
- }))));
1848
+ }, checkFormItem)));
1772
1849
  });
1773
1850
 
1774
1851
  var _default = /*#__PURE__*/(0, _react.memo)(EditTable);
@@ -530,7 +530,7 @@ p {
530
530
  content: '-';
531
531
  }
532
532
  .lm_editTable_warpper .ant-table-thead .ant-table-cell {
533
- height: 40px;
533
+ min-height: 40px;
534
534
  padding: 10px 8px;
535
535
  font-family: PingFangSC-Medium;
536
536
  font-size: 12px;
@@ -559,11 +559,6 @@ p {
559
559
  .lm_editTable_warpper .lm_custom_cell_td {
560
560
  position: relative;
561
561
  }
562
- .lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append {
563
- display: flex;
564
- flex-direction: row;
565
- flex-wrap: nowrap;
566
- }
567
562
  .lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append .ant-table-row-expand-icon {
568
563
  margin-right: 8px;
569
564
  flex: none;
@@ -18,7 +18,7 @@
18
18
  content: '-';
19
19
  }
20
20
  .lm_editTable_warpper .ant-table-thead .ant-table-cell {
21
- height: 40px;
21
+ min-height: 40px;
22
22
  padding: 10px 8px;
23
23
  font-family: PingFangSC-Medium;
24
24
  font-size: 12px;
@@ -47,11 +47,6 @@
47
47
  .lm_editTable_warpper .lm_custom_cell_td {
48
48
  position: relative;
49
49
  }
50
- .lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append {
51
- display: flex;
52
- flex-direction: row;
53
- flex-wrap: nowrap;
54
- }
55
50
  .lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append .ant-table-row-expand-icon {
56
51
  margin-right: 8px;
57
52
  flex: none;
@@ -88,7 +88,7 @@ function getExpandStatus(children) {
88
88
  }
89
89
 
90
90
  function checkMemoShouldUploadSpecialFun(prev, next) {
91
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
91
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
92
92
 
93
93
  var checkExpandStatus = getExpandStatus(prev.children) === getExpandStatus(next.children);
94
94
 
@@ -146,13 +146,17 @@ function checkMemoShouldUploadSpecialFun(prev, next) {
146
146
  return false;
147
147
  }
148
148
 
149
+ if (((_m = next.className) === null || _m === void 0 ? void 0 : _m.indexOf('ant-table-cell-with-append')) > -1) {
150
+ return false;
151
+ }
152
+
149
153
  if (next.className.indexOf('ant-table-selection-column') > -1) {
150
- return (0, _lodash.isEqual)((_o = (_m = prev.children) === null || _m === void 0 ? void 0 : _m[1]) === null || _o === void 0 ? void 0 : _o.props, (_q = (_p = next.children) === null || _p === void 0 ? void 0 : _p[1]) === null || _q === void 0 ? void 0 : _q.props);
154
+ return (0, _lodash.isEqual)((_p = (_o = prev.children) === null || _o === void 0 ? void 0 : _o[1]) === null || _p === void 0 ? void 0 : _p.props, (_r = (_q = next.children) === null || _q === void 0 ? void 0 : _q[1]) === null || _r === void 0 ? void 0 : _r.props);
151
155
  }
152
156
  /** 如果启用了快速复制功能,需要实时判断rowIndex与getLength */
153
157
 
154
158
 
155
- if (((_r = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _r === void 0 ? void 0 : _r.quickcopy) || ((_s = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _s === void 0 ? void 0 : _s.quickcopy)) {
159
+ if (((_s = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _s === void 0 ? void 0 : _s.quickcopy) || ((_t = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _t === void 0 ? void 0 : _t.quickcopy)) {
156
160
  var pickProps = ['record', 'colIndex', 'rowIndex', 'getLength'];
157
161
  var p = (0, _lodash.pick)(prev, pickProps);
158
162
  var n = (0, _lodash.pick)(next, pickProps);
@@ -9734,7 +9734,7 @@ p {
9734
9734
  content: '-';
9735
9735
  }
9736
9736
  .lm_editTable_warpper .ant-table-thead .ant-table-cell {
9737
- height: 40px;
9737
+ min-height: 40px;
9738
9738
  padding: 10px 8px;
9739
9739
  font-family: PingFangSC-Medium;
9740
9740
  font-size: 12px;
@@ -9763,11 +9763,6 @@ p {
9763
9763
  .lm_editTable_warpper .lm_custom_cell_td {
9764
9764
  position: relative;
9765
9765
  }
9766
- .lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append {
9767
- display: flex;
9768
- flex-direction: row;
9769
- flex-wrap: nowrap;
9770
- }
9771
9766
  .lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append .ant-table-row-expand-icon {
9772
9767
  margin-right: 8px;
9773
9768
  flex: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkmore-design",
3
- "version": "1.1.28-alpha.6",
3
+ "version": "1.1.28-alpha.8",
4
4
  "author": {
5
5
  "name": "nowthen",
6
6
  "email": "rnlvwyx@gmail.com"