vxe-table 4.11.12 → 4.11.13

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/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "4.11.12";
3
+ export const version = "4.11.13";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"4.11.12"}`;
3
+ const version = `table v${"4.11.13"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -3051,7 +3051,7 @@ function eqEmptyValue(cellValue) {
3051
3051
  ;// ./packages/ui/index.ts
3052
3052
 
3053
3053
 
3054
- const version = "4.11.12";
3054
+ const version = "4.11.13";
3055
3055
  core_.VxeUI.version = version;
3056
3056
  core_.VxeUI.tableVersion = version;
3057
3057
  core_.VxeUI.setConfig({
@@ -3499,7 +3499,7 @@ var es_iterator_some = __webpack_require__(3579);
3499
3499
  const {
3500
3500
  log: log_log
3501
3501
  } = core_.VxeUI;
3502
- const log_version = `table v${"4.11.12"}`;
3502
+ const log_version = `table v${"4.11.13"}`;
3503
3503
  const warnLog = log_log.create('warn', log_version);
3504
3504
  const errLog = log_log.create('error', log_version);
3505
3505
  ;// ./packages/table/src/columnInfo.ts
@@ -6207,6 +6207,7 @@ const renderType = 'body';
6207
6207
  } = tableProps;
6208
6208
  const {
6209
6209
  tableData,
6210
+ dragRow,
6210
6211
  overflowX,
6211
6212
  currentColumn,
6212
6213
  scrollXLoad,
@@ -6425,10 +6426,12 @@ const renderType = 'body';
6425
6426
  const isLastColumn = $columnIndex === columns.length - 1;
6426
6427
  const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
6427
6428
  let isVNPreEmptyStatus = false;
6428
- if (scrollYLoad && (_rowIndex < scrollYStore.visibleStartIndex - scrollYStore.preloadSize || _rowIndex > scrollYStore.visibleEndIndex + scrollYStore.preloadSize)) {
6429
- isVNPreEmptyStatus = true;
6430
- } else if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
6431
- isVNPreEmptyStatus = true;
6429
+ if (!dragRow || getRowid($xeTable, dragRow) !== rowid) {
6430
+ if (scrollYLoad && (_rowIndex < scrollYStore.visibleStartIndex - scrollYStore.preloadSize || _rowIndex > scrollYStore.visibleEndIndex + scrollYStore.preloadSize)) {
6431
+ isVNPreEmptyStatus = true;
6432
+ } else if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
6433
+ isVNPreEmptyStatus = true;
6434
+ }
6432
6435
  }
6433
6436
  const tcStyle = {};
6434
6437
  if (scrollYLoad || hasEllipsis || isCsHeight || isRsHeight) {
@@ -7057,6 +7060,7 @@ const header_renderType = 'header';
7057
7060
  } = tableProps;
7058
7061
  const {
7059
7062
  currentColumn,
7063
+ dragCol,
7060
7064
  scrollXLoad,
7061
7065
  scrollYLoad,
7062
7066
  overflowX
@@ -7156,8 +7160,10 @@ const header_renderType = 'header';
7156
7160
  const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
7157
7161
  let isVNPreEmptyStatus = false;
7158
7162
  if (!isGroup) {
7159
- if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
7160
- isVNPreEmptyStatus = true;
7163
+ if (!dragCol || dragCol.id !== colid) {
7164
+ if (scrollXLoad && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
7165
+ isVNPreEmptyStatus = true;
7166
+ }
7161
7167
  }
7162
7168
  }
7163
7169
  const tcStyle = {};