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
@@ -4607,6 +4607,11 @@ export default defineVxeComponent({
4607
4607
  internalData.inFooterScroll = false;
4608
4608
  reactData.lazScrollLoading = false;
4609
4609
  internalData.scrollRenderType = '';
4610
+ const $xeGanttView = internalData.xeGanttView;
4611
+ if ($xeGanttView) {
4612
+ const ganttInternalData = $xeGanttView.internalData;
4613
+ ganttInternalData.isSyncTableScrollTop = false;
4614
+ }
4610
4615
  let xRest = null;
4611
4616
  let yRest = null;
4612
4617
  if (!isAllOverflow) {
@@ -4682,14 +4687,15 @@ export default defineVxeComponent({
4682
4687
  return multiple;
4683
4688
  };
4684
4689
  const syncGanttScrollTop = (scrollTop) => {
4690
+ const { isSyncGanttScrollTop } = internalData;
4691
+ if (isSyncGanttScrollTop) {
4692
+ return;
4693
+ }
4685
4694
  const $xeGanttView = internalData.xeGanttView;
4686
4695
  if ($xeGanttView) {
4687
4696
  const ganttInternalData = $xeGanttView.internalData;
4688
- const { elemStore: ganttElemStore } = ganttInternalData;
4689
- const ganttBodyScrollElem = getRefElem(ganttElemStore['main-body-scroll']);
4690
- if (ganttBodyScrollElem) {
4691
- ganttBodyScrollElem.scrollTop = scrollTop;
4692
- }
4697
+ ganttInternalData.isSyncTableScrollTop = true;
4698
+ $xeGanttView.handleSyncScrollTop({ scrollTop });
4693
4699
  }
4694
4700
  };
4695
4701
  const dispatchEvent = (type, params, evnt) => {
@@ -12740,7 +12746,10 @@ export default defineVxeComponent({
12740
12746
  isLeft,
12741
12747
  isRight,
12742
12748
  direction }, params);
12743
- updateThumbOffset();
12749
+ const isVScrollbar = computeIsVScrollbar.value;
12750
+ if (isVScrollbar) {
12751
+ updateThumbOffset();
12752
+ }
12744
12753
  updateRowExpandStyle();
12745
12754
  checkLastSyncScroll(isRollX, isRollY);
12746
12755
  if (isRollX) {
@@ -13409,6 +13418,14 @@ export default defineVxeComponent({
13409
13418
  $xeTable.updateScrollYSpace();
13410
13419
  });
13411
13420
  },
13421
+ handleSyncScrollTop(params) {
13422
+ const { scrollTop } = params;
13423
+ const { elemStore } = internalData;
13424
+ const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
13425
+ if (bodyScrollElem) {
13426
+ bodyScrollElem.scrollTop = scrollTop;
13427
+ }
13428
+ },
13412
13429
  /**
13413
13430
  * 处理固定列的显示状态
13414
13431
  */
@@ -154,9 +154,34 @@ export function createInternalData() {
154
154
  tooltipTimeout: null,
155
155
  initStatus: false,
156
156
  isActivated: false,
157
+ // keyCtxTimeout: undefined,
158
+ // 刷新布局
157
159
  // rceTimeout: undefined,
158
160
  // rceRunTime: undefined,
159
161
  rceDelay: 0
162
+ // rsePending: false,
163
+ // 滚动属性
164
+ // intoRunScroll: false,
165
+ // inVirtualScroll: false,
166
+ // inWheelScroll: false,
167
+ // inHeaderScroll: false,
168
+ // inBodyScroll: false,
169
+ // inFooterScroll: false,
170
+ // scrollRenderType?: '',
171
+ // isSyncGanttScrollTop: false,
172
+ // 同步滚动
173
+ // lcsTimeout: undefined,
174
+ // lcsRunTime: undefined,
175
+ // 横向虚拟
176
+ // lxRunTime: undefined,
177
+ // lxTimeout: undefined,
178
+ // 纵向虚拟
179
+ // lyRunTime: undefined,
180
+ // lyTimeout: undefined,
181
+ // 动态高度
182
+ // chRunTime: undefined,
183
+ // chTimeout: undefined,
184
+ // isResizeCellHeight: false,
160
185
  // _sToTime: null
161
186
  };
162
187
  }
@@ -4073,4 +4073,7 @@ div.vxe-table--tooltip-wrapper.vxe-table--valid-error.old-cell-valid {
4073
4073
  }
4074
4074
  .vxe-table--layout-wrapper > .vxe-scrollbar {
4075
4075
  position: unset;
4076
+ }
4077
+ .vxe-table--layout-wrapper > .vxe-scrollbar > .vxe-scrollbar--track-x, .vxe-table--layout-wrapper > .vxe-scrollbar > .vxe-scrollbar--track-y {
4078
+ z-index: 7;
4076
4079
  }