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.
@@ -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;
@@ -27837,6 +27837,13 @@ div.ant-typography-edit-content.ant-typography-rtl {
27837
27837
  opacity: 1;
27838
27838
  }
27839
27839
 
27840
+ .lm_editable_darg_item .ant-table-tbody::-webkit-scrollbar {
27841
+ display: none;
27842
+ }
27843
+ .lm_editable_darg_item .ant-table-body::-webkit-scrollbar {
27844
+ display: none;
27845
+ }
27846
+
27840
27847
  /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
27841
27848
  /* stylelint-disable no-duplicate-selectors */
27842
27849
  /* stylelint-disable */
package/dist/index.umd.js CHANGED
@@ -272840,6 +272840,7 @@
272840
272840
  return /*#__PURE__*/React__default['default'].createElement(DragOverlay, {
272841
272841
  adjustScale: false
272842
272842
  }, isDragging ? /*#__PURE__*/React__default['default'].createElement("div", {
272843
+ className: "lm_editable_darg_item",
272843
272844
  style: {
272844
272845
  width: instance.tableWidth,
272845
272846
  backgroundColor: '#fff',
@@ -272848,8 +272849,8 @@
272848
272849
  }, /*#__PURE__*/React__default['default'].createElement(LmEditTable, {
272849
272850
  columns: columns || [],
272850
272851
  showHeader: false,
272851
- scroll: {
272852
- x: '100%'
272852
+ style: {
272853
+ overflow: 'hidden'
272853
272854
  },
272854
272855
  pagination: false,
272855
272856
  value: [item]
@@ -273850,6 +273851,7 @@
273850
273851
  deepDataSourceRef.current = deepDataSourcePreKeys(dataSource, _rowKey);
273851
273852
  var disabledDataSourceRowKeys = React.useRef(checkTableRowIsDisable(deepDataSourceRef.current, localDisabledRows.disabledRows, _rowKey));
273852
273853
  disabledDataSourceRowKeys.current = checkTableRowIsDisable(deepDataSourceRef.current, localDisabledRows.disabledRows, _rowKey);
273854
+ var columnsRef = React.useRef(columns);
273853
273855
  var tableWarpRef = React.useRef(null);
273854
273856
  var autoSizerRef = React.useRef(null);
273855
273857
  var allFormListRef = React.useRef({});
@@ -274365,6 +274367,7 @@
274365
274367
  var res = (_localColumns3 = localColumns) === null || _localColumns3 === void 0 ? void 0 : _localColumns3.map(function (col, index) {
274366
274368
  return mapColumns(col, index);
274367
274369
  });
274370
+ columnsRef.current = res;
274368
274371
  return res;
274369
274372
  }, [columns, isAdd, sortOpen, useQuickOpetate, dataSource, _toConsumableArray$1(memoOptions)]);
274370
274373
 
@@ -274731,7 +274734,7 @@
274731
274734
  onSortEnd: onSortEnd,
274732
274735
  tableWidth: tableWarpRef === null || tableWarpRef === void 0 ? void 0 : (_tableWarpRef$current = tableWarpRef.current) === null || _tableWarpRef$current === void 0 ? void 0 : (_tableWarpRef$current2 = _tableWarpRef$current.getBoundingClientRect()) === null || _tableWarpRef$current2 === void 0 ? void 0 : _tableWarpRef$current2.width,
274733
274736
  tableHeight: tableWarpRef === null || tableWarpRef === void 0 ? void 0 : (_tableWarpRef$current3 = tableWarpRef.current) === null || _tableWarpRef$current3 === void 0 ? void 0 : (_tableWarpRef$current4 = _tableWarpRef$current3.getBoundingClientRect()) === null || _tableWarpRef$current4 === void 0 ? void 0 : _tableWarpRef$current4.height,
274734
- columns: resultColumns
274737
+ columns: columnsRef.current || resultColumns
274735
274738
  }));
274736
274739
  }
274737
274740
  } : virtual ? {