vxe-table 3.25.0-beta.5 → 3.25.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.
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/methods.js +26 -6
- package/es/table/src/util.js +25 -0
- package/es/table/style.css +3 -0
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +3 -0
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +30 -5
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/methods.js +3 -3
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/util.js +25 -0
- package/lib/table/style/style.css +3 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +3 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/src/methods.ts +30 -6
- package/packages/table/src/util.ts +34 -0
- package/styles/components/table.scss +4 -0
- /package/es/{iconfont.1792220310836.ttf → iconfont.1792230789347.ttf} +0 -0
- /package/es/{iconfont.1792220310836.woff → iconfont.1792230789347.woff} +0 -0
- /package/es/{iconfont.1792220310836.woff2 → iconfont.1792230789347.woff2} +0 -0
- /package/lib/{iconfont.1792220310836.ttf → iconfont.1792230789347.ttf} +0 -0
- /package/lib/{iconfont.1792220310836.woff → iconfont.1792230789347.woff} +0 -0
- /package/lib/{iconfont.1792220310836.woff2 → iconfont.1792230789347.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -4072,8 +4072,14 @@ function handleSyncScroll($xeTable, isRollX, isRollY) {
|
|
|
4072
4072
|
internalData.inHeaderScroll = false;
|
|
4073
4073
|
internalData.inBodyScroll = false;
|
|
4074
4074
|
internalData.inFooterScroll = false;
|
|
4075
|
+
internalData.isSyncGanttScrollTop = false;
|
|
4075
4076
|
reactData.lazScrollLoading = false;
|
|
4076
4077
|
internalData.scrollRenderType = '';
|
|
4078
|
+
const $xeGanttView = internalData.xeGanttView;
|
|
4079
|
+
if ($xeGanttView) {
|
|
4080
|
+
const ganttInternalData = $xeGanttView.internalData;
|
|
4081
|
+
ganttInternalData.isSyncTableScrollTop = false;
|
|
4082
|
+
}
|
|
4077
4083
|
let xRest = null;
|
|
4078
4084
|
let yRest = null;
|
|
4079
4085
|
if (!isAllOverflow) {
|
|
@@ -4152,14 +4158,15 @@ const getWheelSpeed = (lastScrollTime) => {
|
|
|
4152
4158
|
};
|
|
4153
4159
|
const syncGanttScrollTop = ($xeTable, scrollTop) => {
|
|
4154
4160
|
const internalData = $xeTable;
|
|
4161
|
+
const { isSyncGanttScrollTop } = internalData;
|
|
4162
|
+
if (isSyncGanttScrollTop) {
|
|
4163
|
+
return;
|
|
4164
|
+
}
|
|
4155
4165
|
const $xeGanttView = internalData.xeGanttView;
|
|
4156
4166
|
if ($xeGanttView) {
|
|
4157
4167
|
const ganttInternalData = $xeGanttView.internalData;
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
if (ganttBodyScrollElem) {
|
|
4161
|
-
ganttBodyScrollElem.scrollTop = scrollTop;
|
|
4162
|
-
}
|
|
4168
|
+
ganttInternalData.isSyncTableScrollTop = true;
|
|
4169
|
+
$xeGanttView.handleSyncScrollTop({ scrollTop });
|
|
4163
4170
|
}
|
|
4164
4171
|
};
|
|
4165
4172
|
function updateHeight($xeTable) {
|
|
@@ -12349,7 +12356,10 @@ const tableMethods = {
|
|
|
12349
12356
|
isLeft,
|
|
12350
12357
|
isRight,
|
|
12351
12358
|
direction }, params);
|
|
12352
|
-
$xeTable.
|
|
12359
|
+
const isVScrollbar = $xeTable.computeIsVScrollbar;
|
|
12360
|
+
if (isVScrollbar) {
|
|
12361
|
+
$xeTable.updateThumbOffset();
|
|
12362
|
+
}
|
|
12353
12363
|
updateRowExpandStyle($xeTable);
|
|
12354
12364
|
checkLastSyncScroll($xeTable, isRollX, isRollY);
|
|
12355
12365
|
if (isRollX) {
|
|
@@ -12882,6 +12892,16 @@ const tableMethods = {
|
|
|
12882
12892
|
$xeTable.updateScrollYSpace();
|
|
12883
12893
|
});
|
|
12884
12894
|
},
|
|
12895
|
+
handleSyncScrollTop(params) {
|
|
12896
|
+
const $xeTable = this;
|
|
12897
|
+
const internalData = $xeTable;
|
|
12898
|
+
const { scrollTop } = params;
|
|
12899
|
+
const { elemStore } = internalData;
|
|
12900
|
+
const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
|
|
12901
|
+
if (bodyScrollElem) {
|
|
12902
|
+
bodyScrollElem.scrollTop = scrollTop;
|
|
12903
|
+
}
|
|
12904
|
+
},
|
|
12885
12905
|
// 更新纵向 Y 可视渲染上下剩余空间大小
|
|
12886
12906
|
updateScrollYSpace() {
|
|
12887
12907
|
const $xeTable = this;
|
package/es/table/src/util.js
CHANGED
|
@@ -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
|
}
|
package/es/table/style.css
CHANGED
|
@@ -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
|
}
|