linkmore-design 1.1.36 → 1.1.37

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.
@@ -9822,9 +9822,6 @@ p {
9822
9822
  .lm_editTable_warpper .lm_table_quickcopy .anticon {
9823
9823
  color: var(--text-color);
9824
9824
  }
9825
- .lm_editTable_warpper .ant-table-body {
9826
- scroll-behavior: smooth;
9827
- }
9828
9825
  .lm_editTable_warpper .icon_drag {
9829
9826
  color: var(--tip-text-color);
9830
9827
  }
@@ -766,6 +766,7 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
766
766
  deepDataSourceRef.current = deepDataSourcePreKeys(dataSource, _rowKey);
767
767
  var disabledDataSourceRowKeys = useRef(checkTableRowIsDisable(deepDataSourceRef.current, localDisabledRows.disabledRows, _rowKey));
768
768
  disabledDataSourceRowKeys.current = checkTableRowIsDisable(deepDataSourceRef.current, localDisabledRows.disabledRows, _rowKey);
769
+ var columnsRef = useRef(columns);
769
770
  var tableWarpRef = useRef(null);
770
771
  var autoSizerRef = useRef(null);
771
772
  var allFormListRef = useRef({});
@@ -1271,6 +1272,7 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
1271
1272
  var res = localColumns === null || localColumns === void 0 ? void 0 : localColumns.map(function (col, index) {
1272
1273
  return mapColumns(col, index);
1273
1274
  });
1275
+ columnsRef.current = res;
1274
1276
  return res;
1275
1277
  }, [columns, isAdd, sortOpen, useQuickOpetate, dataSource, _toConsumableArray(memoOptions)]);
1276
1278
 
@@ -1629,7 +1631,7 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
1629
1631
  onSortEnd: onSortEnd,
1630
1632
  tableWidth: (_c = (_b = tableWarpRef === null || tableWarpRef === void 0 ? void 0 : tableWarpRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect()) === null || _c === void 0 ? void 0 : _c.width,
1631
1633
  tableHeight: (_e = (_d = tableWarpRef === null || tableWarpRef === void 0 ? void 0 : tableWarpRef.current) === null || _d === void 0 ? void 0 : _d.getBoundingClientRect()) === null || _e === void 0 ? void 0 : _e.height,
1632
- columns: resultColumns
1634
+ columns: columnsRef.current || resultColumns
1633
1635
  }));
1634
1636
  }
1635
1637
  } : virtual ? {
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import './index.less';
2
3
  declare const _default: React.MemoExoticComponent<({ children, options, move, rowKey, items, tableWidth, tableHeight, columns }: {
3
4
  children: any;
4
5
  options: any;
@@ -6,6 +6,7 @@ import { DndContext, closestCenter, KeyboardSensor, PointerSensor, useSensor, us
6
6
  import { restrictToParentElement, restrictToVerticalAxis } from '@dnd-kit/modifiers';
7
7
  import { sortableKeyboardCoordinates } from '@dnd-kit/sortable';
8
8
  import Table from '../EditTable';
9
+ import "./index.css";
9
10
  var DragOver = /*#__PURE__*/React.memo(function (_ref) {
10
11
  var instance = _ref.instance;
11
12
  var isDragging = instance.isDragging,
@@ -19,6 +20,7 @@ var DragOver = /*#__PURE__*/React.memo(function (_ref) {
19
20
  return /*#__PURE__*/React.createElement(DragOverlay, {
20
21
  adjustScale: false
21
22
  }, isDragging ? /*#__PURE__*/React.createElement("div", {
23
+ className: "lm_editable_darg_item",
22
24
  style: {
23
25
  width: instance.tableWidth,
24
26
  backgroundColor: '#fff',
@@ -27,8 +29,8 @@ var DragOver = /*#__PURE__*/React.memo(function (_ref) {
27
29
  }, /*#__PURE__*/React.createElement(Table, {
28
30
  columns: columns || [],
29
31
  showHeader: false,
30
- scroll: {
31
- x: '100%'
32
+ style: {
33
+ overflow: 'hidden'
32
34
  },
33
35
  pagination: false,
34
36
  value: [item]
@@ -0,0 +1,6 @@
1
+ .lm_editable_darg_item .ant-table-tbody::-webkit-scrollbar {
2
+ display: none;
3
+ }
4
+ .lm_editable_darg_item .ant-table-body::-webkit-scrollbar {
5
+ display: none;
6
+ }
@@ -614,9 +614,6 @@ p {
614
614
  .lm_editTable_warpper .lm_table_quickcopy .anticon {
615
615
  color: var(--text-color);
616
616
  }
617
- .lm_editTable_warpper .ant-table-body {
618
- scroll-behavior: smooth;
619
- }
620
617
  .lm_editTable_warpper .icon_drag {
621
618
  color: var(--tip-text-color);
622
619
  }
@@ -102,9 +102,6 @@
102
102
  .lm_editTable_warpper .lm_table_quickcopy .anticon {
103
103
  color: var(--text-color);
104
104
  }
105
- .lm_editTable_warpper .ant-table-body {
106
- scroll-behavior: smooth;
107
- }
108
105
  .lm_editTable_warpper .icon_drag {
109
106
  color: var(--tip-text-color);
110
107
  }
@@ -9822,9 +9822,6 @@ p {
9822
9822
  .lm_editTable_warpper .lm_table_quickcopy .anticon {
9823
9823
  color: var(--text-color);
9824
9824
  }
9825
- .lm_editTable_warpper .ant-table-body {
9826
- scroll-behavior: smooth;
9827
- }
9828
9825
  .lm_editTable_warpper .icon_drag {
9829
9826
  color: var(--tip-text-color);
9830
9827
  }
@@ -800,6 +800,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
800
800
  deepDataSourceRef.current = (0, _util.deepDataSourcePreKeys)(dataSource, _rowKey);
801
801
  var disabledDataSourceRowKeys = (0, _react.useRef)((0, _util.checkTableRowIsDisable)(deepDataSourceRef.current, localDisabledRows.disabledRows, _rowKey));
802
802
  disabledDataSourceRowKeys.current = (0, _util.checkTableRowIsDisable)(deepDataSourceRef.current, localDisabledRows.disabledRows, _rowKey);
803
+ var columnsRef = (0, _react.useRef)(columns);
803
804
  var tableWarpRef = (0, _react.useRef)(null);
804
805
  var autoSizerRef = (0, _react.useRef)(null);
805
806
  var allFormListRef = (0, _react.useRef)({});
@@ -1305,6 +1306,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1305
1306
  var res = localColumns === null || localColumns === void 0 ? void 0 : localColumns.map(function (col, index) {
1306
1307
  return mapColumns(col, index);
1307
1308
  });
1309
+ columnsRef.current = res;
1308
1310
  return res;
1309
1311
  }, [columns, isAdd, sortOpen, useQuickOpetate, dataSource, (0, _toConsumableArray2.default)(memoOptions)]);
1310
1312
 
@@ -1662,7 +1664,7 @@ var EditTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1662
1664
  onSortEnd: onSortEnd,
1663
1665
  tableWidth: (_c = (_b = tableWarpRef === null || tableWarpRef === void 0 ? void 0 : tableWarpRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect()) === null || _c === void 0 ? void 0 : _c.width,
1664
1666
  tableHeight: (_e = (_d = tableWarpRef === null || tableWarpRef === void 0 ? void 0 : tableWarpRef.current) === null || _d === void 0 ? void 0 : _d.getBoundingClientRect()) === null || _e === void 0 ? void 0 : _e.height,
1665
- columns: resultColumns
1667
+ columns: columnsRef.current || resultColumns
1666
1668
  }));
1667
1669
  }
1668
1670
  } : virtual ? {
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import './index.less';
2
3
  declare const _default: React.MemoExoticComponent<({ children, options, move, rowKey, items, tableWidth, tableHeight, columns }: {
3
4
  children: any;
4
5
  options: any;
@@ -21,6 +21,8 @@ var _sortable = require("@dnd-kit/sortable");
21
21
 
22
22
  var _EditTable = _interopRequireDefault(require("../EditTable"));
23
23
 
24
+ require("./index.css");
25
+
24
26
  /* eslint-disable no-unused-vars */
25
27
  var DragOver = /*#__PURE__*/_react.default.memo(function (_ref) {
26
28
  var instance = _ref.instance;
@@ -35,6 +37,7 @@ var DragOver = /*#__PURE__*/_react.default.memo(function (_ref) {
35
37
  return /*#__PURE__*/_react.default.createElement(_core.DragOverlay, {
36
38
  adjustScale: false
37
39
  }, isDragging ? /*#__PURE__*/_react.default.createElement("div", {
40
+ className: "lm_editable_darg_item",
38
41
  style: {
39
42
  width: instance.tableWidth,
40
43
  backgroundColor: '#fff',
@@ -43,8 +46,8 @@ var DragOver = /*#__PURE__*/_react.default.memo(function (_ref) {
43
46
  }, /*#__PURE__*/_react.default.createElement(_EditTable.default, {
44
47
  columns: columns || [],
45
48
  showHeader: false,
46
- scroll: {
47
- x: '100%'
49
+ style: {
50
+ overflow: 'hidden'
48
51
  },
49
52
  pagination: false,
50
53
  value: [item]
@@ -0,0 +1,6 @@
1
+ .lm_editable_darg_item .ant-table-tbody::-webkit-scrollbar {
2
+ display: none;
3
+ }
4
+ .lm_editable_darg_item .ant-table-body::-webkit-scrollbar {
5
+ display: none;
6
+ }
@@ -614,9 +614,6 @@ p {
614
614
  .lm_editTable_warpper .lm_table_quickcopy .anticon {
615
615
  color: var(--text-color);
616
616
  }
617
- .lm_editTable_warpper .ant-table-body {
618
- scroll-behavior: smooth;
619
- }
620
617
  .lm_editTable_warpper .icon_drag {
621
618
  color: var(--tip-text-color);
622
619
  }
@@ -102,9 +102,6 @@
102
102
  .lm_editTable_warpper .lm_table_quickcopy .anticon {
103
103
  color: var(--text-color);
104
104
  }
105
- .lm_editTable_warpper .ant-table-body {
106
- scroll-behavior: smooth;
107
- }
108
105
  .lm_editTable_warpper .icon_drag {
109
106
  color: var(--tip-text-color);
110
107
  }
@@ -9822,9 +9822,6 @@ p {
9822
9822
  .lm_editTable_warpper .lm_table_quickcopy .anticon {
9823
9823
  color: var(--text-color);
9824
9824
  }
9825
- .lm_editTable_warpper .ant-table-body {
9826
- scroll-behavior: smooth;
9827
- }
9828
9825
  .lm_editTable_warpper .icon_drag {
9829
9826
  color: var(--tip-text-color);
9830
9827
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkmore-design",
3
- "version": "1.1.36",
3
+ "version": "1.1.37",
4
4
  "author": {
5
5
  "name": "nowthen",
6
6
  "email": "rnlvwyx@gmail.com"