vxe-table 4.10.6-beta.9 → 4.10.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/grid/src/grid.js +1 -1
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +2 -1
- package/es/locale/lang/de-DE.js +2 -1
- package/es/locale/lang/en-US.js +4 -3
- package/es/locale/lang/es-ES.js +2 -1
- package/es/locale/lang/fr-FR.js +2 -1
- package/es/locale/lang/hu-HU.js +2 -1
- package/es/locale/lang/hy-AM.js +2 -1
- package/es/locale/lang/it-IT.js +2 -1
- package/es/locale/lang/ja-JP.js +2 -1
- package/es/locale/lang/ko-KR.js +2 -1
- package/es/locale/lang/nb-NO.js +2 -1
- package/es/locale/lang/pt-BR.js +2 -1
- package/es/locale/lang/ru-RU.js +4 -3
- package/es/locale/lang/th-TH.js +2 -1
- package/es/locale/lang/ug-CN.js +2 -1
- package/es/locale/lang/uk-UA.js +518 -517
- package/es/locale/lang/vi-VN.js +2 -1
- package/es/locale/lang/zh-CHT.js +2 -1
- package/es/locale/lang/zh-CN.js +2 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/edit/hook.js +7 -7
- package/es/table/module/export/hook.js +97 -62
- package/es/table/module/keyboard/hook.js +63 -27
- package/es/table/src/body.js +107 -85
- package/es/table/src/cell.js +41 -55
- package/es/table/src/column.js +13 -1
- package/es/table/src/columnInfo.js +3 -0
- package/es/table/src/emits.js +2 -0
- package/es/table/src/footer.js +45 -7
- package/es/table/src/header.js +67 -165
- package/es/table/src/props.js +14 -4
- package/es/table/src/table.js +858 -398
- package/es/table/src/util.js +77 -62
- package/es/table/style.css +246 -191
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +20 -7
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +246 -191
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +1 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +1479 -875
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +2 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +2 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +4 -3
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +4 -3
- package/lib/locale/lang/es-ES.js +2 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -1
- package/lib/locale/lang/fr-FR.js +2 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +2 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +2 -1
- package/lib/locale/lang/hy-AM.js +2 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/it-IT.js +2 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +2 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -1
- package/lib/locale/lang/ko-KR.js +2 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +2 -1
- package/lib/locale/lang/nb-NO.js +2 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +2 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -1
- package/lib/locale/lang/ru-RU.js +4 -3
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +4 -3
- package/lib/locale/lang/th-TH.js +2 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/ug-CN.js +2 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +518 -517
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +518 -517
- package/lib/locale/lang/vi-VN.js +2 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +2 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +2 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +2 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/edit/hook.js +7 -2
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/hook.js +97 -57
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/keyboard/hook.js +71 -28
- package/lib/table/module/keyboard/hook.min.js +1 -1
- package/lib/table/src/body.js +111 -81
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +32 -42
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +13 -1
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +3 -0
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/emits.js +1 -1
- package/lib/table/src/emits.min.js +1 -1
- package/lib/table/src/footer.js +45 -5
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +51 -178
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/props.js +14 -4
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +911 -384
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +100 -82
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +246 -191
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +20 -7
- 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 +246 -191
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +1 -1
- package/packages/locale/lang/ar-EG.ts +2 -1
- package/packages/locale/lang/de-DE.ts +2 -1
- package/packages/locale/lang/en-US.ts +4 -3
- package/packages/locale/lang/es-ES.ts +2 -1
- package/packages/locale/lang/fr-FR.ts +2 -1
- package/packages/locale/lang/hu-HU.ts +2 -1
- package/packages/locale/lang/hy-AM.ts +2 -1
- package/packages/locale/lang/it-IT.ts +2 -1
- package/packages/locale/lang/ja-JP.ts +2 -1
- package/packages/locale/lang/ko-KR.ts +2 -1
- package/packages/locale/lang/nb-NO.ts +2 -1
- package/packages/locale/lang/pt-BR.ts +2 -1
- package/packages/locale/lang/ru-RU.ts +4 -3
- package/packages/locale/lang/th-TH.ts +2 -1
- package/packages/locale/lang/ug-CN.ts +2 -1
- package/packages/locale/lang/uk-UA.ts +518 -517
- package/packages/locale/lang/vi-VN.ts +2 -1
- package/packages/locale/lang/zh-CHT.ts +2 -1
- package/packages/locale/lang/zh-CN.ts +2 -1
- package/packages/table/module/edit/hook.ts +7 -7
- package/packages/table/module/export/hook.ts +118 -65
- package/packages/table/module/keyboard/hook.ts +59 -25
- package/packages/table/src/body.ts +126 -95
- package/packages/table/src/cell.ts +41 -63
- package/packages/table/src/column.ts +13 -1
- package/packages/table/src/columnInfo.ts +3 -0
- package/packages/table/src/emits.ts +5 -1
- package/packages/table/src/footer.ts +48 -8
- package/packages/table/src/header.ts +67 -165
- package/packages/table/src/props.ts +14 -5
- package/packages/table/src/table.ts +862 -398
- package/packages/table/src/util.ts +81 -62
- package/packages/ui/index.ts +19 -6
- package/styles/components/table.scss +313 -274
- package/styles/theme/base.scss +4 -6
- package/styles/theme/dark.scss +1 -0
- package/styles/theme/light.scss +1 -0
- package/styles/variable.scss +1 -1
- /package/es/{iconfont.1736854674495.ttf → iconfont.1739008158505.ttf} +0 -0
- /package/es/{iconfont.1736854674495.woff → iconfont.1739008158505.woff} +0 -0
- /package/es/{iconfont.1736854674495.woff2 → iconfont.1739008158505.woff2} +0 -0
- /package/lib/{iconfont.1736854674495.ttf → iconfont.1739008158505.ttf} +0 -0
- /package/lib/{iconfont.1736854674495.woff → iconfont.1739008158505.woff} +0 -0
- /package/lib/{iconfont.1736854674495.woff2 → iconfont.1739008158505.woff2} +0 -0
package/es/table/src/util.js
CHANGED
|
@@ -101,7 +101,7 @@ export function getRowid($xeTable, row) {
|
|
|
101
101
|
}
|
|
102
102
|
export const handleFieldOrColumn = ($xeTable, fieldOrColumn) => {
|
|
103
103
|
if (fieldOrColumn) {
|
|
104
|
-
return XEUtils.isString(fieldOrColumn) ? $xeTable.getColumnByField(fieldOrColumn) : fieldOrColumn;
|
|
104
|
+
return XEUtils.isString(fieldOrColumn) || XEUtils.isNumber(fieldOrColumn) ? $xeTable.getColumnByField(`${fieldOrColumn}`) : fieldOrColumn;
|
|
105
105
|
}
|
|
106
106
|
return null;
|
|
107
107
|
};
|
|
@@ -152,6 +152,12 @@ export function getRefElem(refEl) {
|
|
|
152
152
|
}
|
|
153
153
|
return null;
|
|
154
154
|
}
|
|
155
|
+
export function getCellHeight(height) {
|
|
156
|
+
if (height === 'unset') {
|
|
157
|
+
return 0;
|
|
158
|
+
}
|
|
159
|
+
return height || 0;
|
|
160
|
+
}
|
|
155
161
|
/**
|
|
156
162
|
* 列宽拖动最大宽度
|
|
157
163
|
* @param params
|
|
@@ -178,7 +184,8 @@ export function getColReMaxWidth(params) {
|
|
|
178
184
|
*/
|
|
179
185
|
export function getColReMinWidth(params) {
|
|
180
186
|
const { $table, column, cell } = params;
|
|
181
|
-
const
|
|
187
|
+
const tableProps = $table.props;
|
|
188
|
+
const internalData = $table.internalData;
|
|
182
189
|
const { computeResizableOpts } = $table.getComputeMaps();
|
|
183
190
|
const resizableOpts = computeResizableOpts.value;
|
|
184
191
|
const { minWidth: reMinWidth } = resizableOpts;
|
|
@@ -189,6 +196,7 @@ export function getColReMinWidth(params) {
|
|
|
189
196
|
return Math.max(1, XEUtils.toNumber(customMinWidth));
|
|
190
197
|
}
|
|
191
198
|
}
|
|
199
|
+
const { elemStore } = internalData;
|
|
192
200
|
const { showHeaderOverflow: allColumnHeaderOverflow } = tableProps;
|
|
193
201
|
const { showHeaderOverflow, minWidth: colMinWidth } = column;
|
|
194
202
|
const headOverflow = XEUtils.isUndefined(showHeaderOverflow) || XEUtils.isNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
@@ -213,12 +221,10 @@ export function getColReMinWidth(params) {
|
|
|
213
221
|
}
|
|
214
222
|
// 如果设置最小宽
|
|
215
223
|
if (colMinWidth) {
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
const bodyElem = tableBody ? tableBody.$el : null;
|
|
219
|
-
if (bodyElem) {
|
|
224
|
+
const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
|
|
225
|
+
if (bodyScrollElem) {
|
|
220
226
|
if (isScale(colMinWidth)) {
|
|
221
|
-
const bodyWidth =
|
|
227
|
+
const bodyWidth = bodyScrollElem.clientWidth - 1;
|
|
222
228
|
const meanWidth = bodyWidth / 100;
|
|
223
229
|
return Math.max(mWidth, Math.floor(XEUtils.toInteger(colMinWidth) * meanWidth));
|
|
224
230
|
}
|
|
@@ -319,13 +325,32 @@ export const getOffsetSize = ($xeTable) => {
|
|
|
319
325
|
return 0;
|
|
320
326
|
};
|
|
321
327
|
export function calcTreeLine(params, prevRow) {
|
|
322
|
-
const { $table } = params;
|
|
328
|
+
const { $table, row } = params;
|
|
329
|
+
const tableProps = $table.props;
|
|
323
330
|
const tableReactData = $table.reactData;
|
|
331
|
+
const tableInternalData = $table.internalData;
|
|
332
|
+
const { showOverflow } = tableProps;
|
|
333
|
+
const { scrollYLoad } = tableReactData;
|
|
334
|
+
const { fullAllDataRowIdData } = tableInternalData;
|
|
335
|
+
const { computeRowOpts, computeCellOpts, computeDefaultRowHeight } = $table.getComputeMaps();
|
|
336
|
+
const rowOpts = computeRowOpts.value;
|
|
337
|
+
const cellOpts = computeCellOpts.value;
|
|
338
|
+
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
339
|
+
const rowid = getRowid($table, row);
|
|
340
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
341
|
+
const currCellHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
|
|
324
342
|
let expandSize = 1;
|
|
325
343
|
if (prevRow) {
|
|
326
344
|
expandSize = countTreeExpand(prevRow, params);
|
|
327
345
|
}
|
|
328
|
-
|
|
346
|
+
let cellHeight = currCellHeight;
|
|
347
|
+
const vnHeight = rowRest.height;
|
|
348
|
+
if (scrollYLoad) {
|
|
349
|
+
if (!showOverflow) {
|
|
350
|
+
cellHeight = vnHeight || currCellHeight;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
return cellHeight * expandSize - (prevRow ? 1 : (12 - getOffsetSize($table)));
|
|
329
354
|
}
|
|
330
355
|
export function mergeBodyMethod(mergeList, _rowIndex, _columnIndex) {
|
|
331
356
|
for (let mIndex = 0; mIndex < mergeList.length; mIndex++) {
|
|
@@ -373,28 +398,24 @@ export function clearTableAllStatus($xeTable) {
|
|
|
373
398
|
return clearTableDefaultStatus($xeTable);
|
|
374
399
|
}
|
|
375
400
|
export function rowToVisible($xeTable, row) {
|
|
376
|
-
const { reactData, internalData } = $xeTable;
|
|
377
401
|
const tableProps = $xeTable.props;
|
|
402
|
+
const reactData = $xeTable.reactData;
|
|
403
|
+
const internalData = $xeTable.internalData;
|
|
404
|
+
const { computeLeftFixedWidth, computeRightFixedWidth, computeRowOpts, computeCellOpts, computeDefaultRowHeight } = $xeTable.getComputeMaps();
|
|
378
405
|
const { showOverflow } = tableProps;
|
|
379
|
-
const {
|
|
380
|
-
const {
|
|
381
|
-
const
|
|
382
|
-
const
|
|
383
|
-
const
|
|
384
|
-
const
|
|
406
|
+
const { scrollYLoad } = reactData;
|
|
407
|
+
const { elemStore, afterFullData, fullAllDataRowIdData, isResizeCellHeight } = internalData;
|
|
408
|
+
const rowOpts = computeRowOpts.value;
|
|
409
|
+
const cellOpts = computeCellOpts.value;
|
|
410
|
+
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
411
|
+
const leftFixedWidth = computeLeftFixedWidth.value;
|
|
412
|
+
const rightFixedWidth = computeRightFixedWidth.value;
|
|
413
|
+
const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
|
|
385
414
|
const rowid = getRowid($xeTable, row);
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
let offsetFixedRight = 0;
|
|
391
|
-
rightList.forEach(item => {
|
|
392
|
-
offsetFixedRight += item.renderWidth;
|
|
393
|
-
});
|
|
394
|
-
if (bodyElem) {
|
|
395
|
-
const bodyHeight = bodyElem.clientHeight;
|
|
396
|
-
const bodyScrollTop = bodyElem.scrollTop;
|
|
397
|
-
const trElem = bodyElem.querySelector(`[rowid="${rowid}"]`);
|
|
415
|
+
if (bodyScrollElem) {
|
|
416
|
+
const bodyHeight = bodyScrollElem.clientHeight;
|
|
417
|
+
const bodyScrollTop = bodyScrollElem.scrollTop;
|
|
418
|
+
const trElem = bodyScrollElem.querySelector(`[rowid="${rowid}"]`);
|
|
398
419
|
if (trElem) {
|
|
399
420
|
const trOffsetParent = trElem.offsetParent;
|
|
400
421
|
const trOffsetTop = trElem.offsetTop + (trOffsetParent ? trOffsetParent.offsetTop : 0);
|
|
@@ -410,70 +431,64 @@ export function rowToVisible($xeTable, row) {
|
|
|
410
431
|
else {
|
|
411
432
|
// 如果是虚拟渲染滚动
|
|
412
433
|
if (scrollYLoad) {
|
|
413
|
-
|
|
414
|
-
|
|
434
|
+
const isCustomCellHeight = isResizeCellHeight || cellOpts.height || rowOpts.height;
|
|
435
|
+
if (!isCustomCellHeight && showOverflow) {
|
|
436
|
+
return $xeTable.scrollTo(null, ($xeTable.findRowIndexOf(afterFullData, row) - 1) * defaultRowHeight);
|
|
415
437
|
}
|
|
416
438
|
let scrollTop = 0;
|
|
417
|
-
const rowRest = fullAllDataRowIdData[rowid];
|
|
418
|
-
const rHeight = rowRest
|
|
439
|
+
const rowRest = fullAllDataRowIdData[rowid] || {};
|
|
440
|
+
const rHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
|
|
419
441
|
for (let i = 0; i < afterFullData.length; i++) {
|
|
420
442
|
const currRow = afterFullData[i];
|
|
421
443
|
const currRowid = getRowid($xeTable, currRow);
|
|
422
444
|
if (currRow === row || currRowid === rowid) {
|
|
423
445
|
break;
|
|
424
446
|
}
|
|
425
|
-
const
|
|
426
|
-
scrollTop +=
|
|
447
|
+
const currRowRest = fullAllDataRowIdData[currRowid] || {};
|
|
448
|
+
scrollTop += currRowRest.resizeHeight || cellOpts.height || rowOpts.height || currRowRest.height || defaultRowHeight;
|
|
427
449
|
}
|
|
428
450
|
if (scrollTop < bodyScrollTop) {
|
|
429
|
-
return $xeTable.scrollTo(null, scrollTop -
|
|
451
|
+
return $xeTable.scrollTo(null, scrollTop - leftFixedWidth - 1);
|
|
430
452
|
}
|
|
431
|
-
return $xeTable.scrollTo(null, (scrollTop + rHeight) - (bodyHeight -
|
|
453
|
+
return $xeTable.scrollTo(null, (scrollTop + rHeight) - (bodyHeight - rightFixedWidth - 1));
|
|
432
454
|
}
|
|
433
455
|
}
|
|
434
456
|
}
|
|
435
457
|
return Promise.resolve();
|
|
436
458
|
}
|
|
437
459
|
export function colToVisible($xeTable, column, row) {
|
|
438
|
-
const
|
|
439
|
-
const
|
|
440
|
-
const {
|
|
441
|
-
const {
|
|
442
|
-
const {
|
|
443
|
-
const
|
|
444
|
-
const
|
|
460
|
+
const reactData = $xeTable.reactData;
|
|
461
|
+
const internalData = $xeTable.internalData;
|
|
462
|
+
const { computeLeftFixedWidth, computeRightFixedWidth } = $xeTable.getComputeMaps();
|
|
463
|
+
const { scrollXLoad } = reactData;
|
|
464
|
+
const { elemStore, visibleColumn } = internalData;
|
|
465
|
+
const leftFixedWidth = computeLeftFixedWidth.value;
|
|
466
|
+
const rightFixedWidth = computeRightFixedWidth.value;
|
|
467
|
+
const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
|
|
445
468
|
if (column.fixed) {
|
|
446
469
|
return Promise.resolve();
|
|
447
470
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
});
|
|
452
|
-
let offsetFixedRight = 0;
|
|
453
|
-
rightList.forEach(item => {
|
|
454
|
-
offsetFixedRight += item.renderWidth;
|
|
455
|
-
});
|
|
456
|
-
if (bodyElem) {
|
|
457
|
-
const bodyWidth = bodyElem.clientWidth;
|
|
458
|
-
const bodyScrollLeft = bodyElem.scrollLeft;
|
|
471
|
+
if (bodyScrollElem) {
|
|
472
|
+
const bodyWidth = bodyScrollElem.clientWidth;
|
|
473
|
+
const bodyScrollLeft = bodyScrollElem.scrollLeft;
|
|
459
474
|
let tdElem = null;
|
|
460
475
|
if (row) {
|
|
461
476
|
const rowid = getRowid($xeTable, row);
|
|
462
|
-
tdElem =
|
|
477
|
+
tdElem = bodyScrollElem.querySelector(`[rowid="${rowid}"] .${column.id}`);
|
|
463
478
|
}
|
|
464
479
|
if (!tdElem) {
|
|
465
|
-
tdElem =
|
|
480
|
+
tdElem = bodyScrollElem.querySelector(`.${column.id}`);
|
|
466
481
|
}
|
|
467
482
|
if (tdElem) {
|
|
468
483
|
const tdOffsetParent = tdElem.offsetParent;
|
|
469
484
|
const tdOffsetLeft = tdElem.offsetLeft + (tdOffsetParent ? tdOffsetParent.offsetLeft : 0);
|
|
470
485
|
const cellWidth = tdElem.clientWidth;
|
|
471
486
|
// 检测是否在可视区中
|
|
472
|
-
if (tdOffsetLeft < (bodyScrollLeft +
|
|
473
|
-
return $xeTable.scrollTo(tdOffsetLeft -
|
|
487
|
+
if (tdOffsetLeft < (bodyScrollLeft + leftFixedWidth)) {
|
|
488
|
+
return $xeTable.scrollTo(tdOffsetLeft - leftFixedWidth - 1);
|
|
474
489
|
}
|
|
475
|
-
else if ((tdOffsetLeft + cellWidth - bodyScrollLeft) > (bodyWidth -
|
|
476
|
-
return $xeTable.scrollTo((tdOffsetLeft + cellWidth) - (bodyWidth -
|
|
490
|
+
else if ((tdOffsetLeft + cellWidth - bodyScrollLeft) > (bodyWidth - rightFixedWidth)) {
|
|
491
|
+
return $xeTable.scrollTo((tdOffsetLeft + cellWidth) - (bodyWidth - rightFixedWidth - 1));
|
|
477
492
|
}
|
|
478
493
|
}
|
|
479
494
|
else {
|
|
@@ -489,9 +504,9 @@ export function colToVisible($xeTable, column, row) {
|
|
|
489
504
|
scrollLeft += currCol.renderWidth;
|
|
490
505
|
}
|
|
491
506
|
if (scrollLeft < bodyScrollLeft) {
|
|
492
|
-
return $xeTable.scrollTo(scrollLeft -
|
|
507
|
+
return $xeTable.scrollTo(scrollLeft - leftFixedWidth - 1);
|
|
493
508
|
}
|
|
494
|
-
return $xeTable.scrollTo((scrollLeft + cellWidth) - (bodyWidth -
|
|
509
|
+
return $xeTable.scrollTo((scrollLeft + cellWidth) - (bodyWidth - rightFixedWidth - 1));
|
|
495
510
|
}
|
|
496
511
|
}
|
|
497
512
|
}
|