vxe-table 4.23.0-beta.5 → 4.23.0-beta.7

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.
Files changed (42) hide show
  1. package/dist/all.esm.js +50 -8
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/index.css +1 -1
  5. package/es/index.min.css +1 -1
  6. package/es/style.css +1 -1
  7. package/es/style.min.css +1 -1
  8. package/es/table/src/table.js +23 -6
  9. package/es/table/src/util.js +25 -0
  10. package/es/table/style.css +3 -0
  11. package/es/table/style.min.css +1 -1
  12. package/es/ui/index.js +1 -1
  13. package/es/ui/src/log.js +1 -1
  14. package/es/vxe-table/style.css +3 -0
  15. package/es/vxe-table/style.min.css +1 -1
  16. package/lib/index.css +1 -1
  17. package/lib/index.min.css +1 -1
  18. package/lib/index.umd.js +30 -5
  19. package/lib/index.umd.min.js +1 -1
  20. package/lib/style.css +1 -1
  21. package/lib/style.min.css +1 -1
  22. package/lib/table/src/table.js +3 -3
  23. package/lib/table/src/table.min.js +1 -1
  24. package/lib/table/src/util.js +25 -0
  25. package/lib/table/style/style.css +3 -0
  26. package/lib/table/style/style.min.css +1 -1
  27. package/lib/ui/index.js +1 -1
  28. package/lib/ui/index.min.js +1 -1
  29. package/lib/ui/src/log.js +1 -1
  30. package/lib/ui/src/log.min.js +1 -1
  31. package/lib/vxe-table/style/style.css +3 -0
  32. package/lib/vxe-table/style/style.min.css +1 -1
  33. package/package.json +2 -2
  34. package/packages/table/src/table.ts +24 -6
  35. package/packages/table/src/util.ts +34 -0
  36. package/styles/components/table.scss +4 -0
  37. /package/es/{iconfont.1792220287498.ttf → iconfont.1792230806565.ttf} +0 -0
  38. /package/es/{iconfont.1792220287498.woff → iconfont.1792230806565.woff} +0 -0
  39. /package/es/{iconfont.1792220287498.woff2 → iconfont.1792230806565.woff2} +0 -0
  40. /package/lib/{iconfont.1792220287498.ttf → iconfont.1792230806565.ttf} +0 -0
  41. /package/lib/{iconfont.1792220287498.woff → iconfont.1792230806565.woff} +0 -0
  42. /package/lib/{iconfont.1792220287498.woff2 → iconfont.1792230806565.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -56,7 +56,7 @@ function getDefaultConfig(val1, def1) {
56
56
  return XEUtils.eqNull(val1) ? def1 : val1;
57
57
  }
58
58
 
59
- const version = "4.23.0-beta.5";
59
+ const version = "4.23.0-beta.7";
60
60
  VxeUI.version = version;
61
61
  VxeUI.tableVersion = version;
62
62
  VxeUI.setConfig({
@@ -952,7 +952,7 @@ function getPopupAppendElement(appendTo) {
952
952
  }
953
953
 
954
954
  const { log } = VxeUI;
955
- const tableVersion = `table v${"4.23.0-beta.5"}`;
955
+ const tableVersion = `table v${"4.23.0-beta.7"}`;
956
956
  function createComponentLog(name) {
957
957
  const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
958
958
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -1316,9 +1316,34 @@ function createInternalData$3() {
1316
1316
  tooltipTimeout: null,
1317
1317
  initStatus: false,
1318
1318
  isActivated: false,
1319
+ // keyCtxTimeout: undefined,
1320
+ // 刷新布局
1319
1321
  // rceTimeout: undefined,
1320
1322
  // rceRunTime: undefined,
1321
1323
  rceDelay: 0
1324
+ // rsePending: false,
1325
+ // 滚动属性
1326
+ // intoRunScroll: false,
1327
+ // inVirtualScroll: false,
1328
+ // inWheelScroll: false,
1329
+ // inHeaderScroll: false,
1330
+ // inBodyScroll: false,
1331
+ // inFooterScroll: false,
1332
+ // scrollRenderType?: '',
1333
+ // isSyncGanttScrollTop: false,
1334
+ // 同步滚动
1335
+ // lcsTimeout: undefined,
1336
+ // lcsRunTime: undefined,
1337
+ // 横向虚拟
1338
+ // lxRunTime: undefined,
1339
+ // lxTimeout: undefined,
1340
+ // 纵向虚拟
1341
+ // lyRunTime: undefined,
1342
+ // lyTimeout: undefined,
1343
+ // 动态高度
1344
+ // chRunTime: undefined,
1345
+ // chTimeout: undefined,
1346
+ // isResizeCellHeight: false,
1322
1347
  // _sToTime: null
1323
1348
  };
1324
1349
  }
@@ -20558,6 +20583,11 @@ var VxeTableComponent = defineVxeComponent({
20558
20583
  internalData.inFooterScroll = false;
20559
20584
  reactData.lazScrollLoading = false;
20560
20585
  internalData.scrollRenderType = '';
20586
+ const $xeGanttView = internalData.xeGanttView;
20587
+ if ($xeGanttView) {
20588
+ const ganttInternalData = $xeGanttView.internalData;
20589
+ ganttInternalData.isSyncTableScrollTop = false;
20590
+ }
20561
20591
  let xRest = null;
20562
20592
  let yRest = null;
20563
20593
  if (!isAllOverflow) {
@@ -20633,14 +20663,15 @@ var VxeTableComponent = defineVxeComponent({
20633
20663
  return multiple;
20634
20664
  };
20635
20665
  const syncGanttScrollTop = (scrollTop) => {
20666
+ const { isSyncGanttScrollTop } = internalData;
20667
+ if (isSyncGanttScrollTop) {
20668
+ return;
20669
+ }
20636
20670
  const $xeGanttView = internalData.xeGanttView;
20637
20671
  if ($xeGanttView) {
20638
20672
  const ganttInternalData = $xeGanttView.internalData;
20639
- const { elemStore: ganttElemStore } = ganttInternalData;
20640
- const ganttBodyScrollElem = getRefElem(ganttElemStore['main-body-scroll']);
20641
- if (ganttBodyScrollElem) {
20642
- ganttBodyScrollElem.scrollTop = scrollTop;
20643
- }
20673
+ ganttInternalData.isSyncTableScrollTop = true;
20674
+ $xeGanttView.handleSyncScrollTop({ scrollTop });
20644
20675
  }
20645
20676
  };
20646
20677
  const dispatchEvent = (type, params, evnt) => {
@@ -28673,7 +28704,10 @@ var VxeTableComponent = defineVxeComponent({
28673
28704
  isLeft,
28674
28705
  isRight,
28675
28706
  direction }, params);
28676
- updateThumbOffset();
28707
+ const isVScrollbar = computeIsVScrollbar.value;
28708
+ if (isVScrollbar) {
28709
+ updateThumbOffset();
28710
+ }
28677
28711
  updateRowExpandStyle();
28678
28712
  checkLastSyncScroll(isRollX, isRollY);
28679
28713
  if (isRollX) {
@@ -29342,6 +29376,14 @@ var VxeTableComponent = defineVxeComponent({
29342
29376
  $xeTable.updateScrollYSpace();
29343
29377
  });
29344
29378
  },
29379
+ handleSyncScrollTop(params) {
29380
+ const { scrollTop } = params;
29381
+ const { elemStore } = internalData;
29382
+ const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
29383
+ if (bodyScrollElem) {
29384
+ bodyScrollElem.scrollTop = scrollTop;
29385
+ }
29386
+ },
29345
29387
  /**
29346
29388
  * 处理固定列的显示状态
29347
29389
  */