vxe-table 3.11.1 → 3.11.2
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/style.css +1 -1
- package/es/table/src/methods.js +13 -6
- package/es/table/src/util.js +11 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +28 -11
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +15 -6
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/util.js +11 -3
- package/lib/table/src/util.min.js +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/package.json +1 -1
- package/packages/table/src/methods.ts +17 -6
- package/packages/table/src/util.ts +11 -3
- /package/es/{iconfont.1731937243466.ttf → iconfont.1732010310011.ttf} +0 -0
- /package/es/{iconfont.1731937243466.woff → iconfont.1732010310011.woff} +0 -0
- /package/es/{iconfont.1731937243466.woff2 → iconfont.1732010310011.woff2} +0 -0
- /package/lib/{iconfont.1731937243466.ttf → iconfont.1732010310011.ttf} +0 -0
- /package/lib/{iconfont.1731937243466.woff → iconfont.1732010310011.woff} +0 -0
- /package/lib/{iconfont.1731937243466.woff2 → iconfont.1732010310011.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.11.
|
|
2223
|
+
const version = "3.11.2";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2774,7 +2774,7 @@ function isNodeElement(elem) {
|
|
|
2774
2774
|
const {
|
|
2775
2775
|
log: log_log
|
|
2776
2776
|
} = core_.VxeUI;
|
|
2777
|
-
const log_version = `table v${"3.11.
|
|
2777
|
+
const log_version = `table v${"3.11.2"}`;
|
|
2778
2778
|
const warnLog = log_log.create('warn', log_version);
|
|
2779
2779
|
const errLog = log_log.create('error', log_version);
|
|
2780
2780
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -3378,7 +3378,7 @@ function rowToVisible($xeTable, row) {
|
|
|
3378
3378
|
}
|
|
3379
3379
|
return Promise.resolve();
|
|
3380
3380
|
}
|
|
3381
|
-
function colToVisible($xeTable, column) {
|
|
3381
|
+
function colToVisible($xeTable, column, row) {
|
|
3382
3382
|
const {
|
|
3383
3383
|
columnStore,
|
|
3384
3384
|
scrollXLoad,
|
|
@@ -3404,9 +3404,17 @@ function colToVisible($xeTable, column) {
|
|
|
3404
3404
|
if (bodyElem) {
|
|
3405
3405
|
const bodyWidth = bodyElem.clientWidth;
|
|
3406
3406
|
const bodyScrollLeft = bodyElem.scrollLeft;
|
|
3407
|
-
|
|
3407
|
+
let tdElem = null;
|
|
3408
|
+
if (row) {
|
|
3409
|
+
const rowid = getRowid($xeTable, row);
|
|
3410
|
+
tdElem = bodyElem.querySelector(`[rowid="${rowid}"] .${column.id}`);
|
|
3411
|
+
}
|
|
3412
|
+
if (!tdElem) {
|
|
3413
|
+
tdElem = bodyElem.querySelector(`.${column.id}`);
|
|
3414
|
+
}
|
|
3408
3415
|
if (tdElem) {
|
|
3409
|
-
const
|
|
3416
|
+
const tdOffsetParent = tdElem.offsetParent;
|
|
3417
|
+
const tdOffsetLeft = tdElem.offsetLeft + (tdOffsetParent ? tdOffsetParent.offsetLeft : 0);
|
|
3410
3418
|
const cellWidth = tdElem.clientWidth;
|
|
3411
3419
|
// 检测是否在可视区中
|
|
3412
3420
|
if (tdOffsetLeft < bodyScrollLeft + offsetFixedLeft) {
|
|
@@ -5335,6 +5343,17 @@ const hideDropTip = $xeTable => {
|
|
|
5335
5343
|
cdLineEl.style.display = '';
|
|
5336
5344
|
}
|
|
5337
5345
|
};
|
|
5346
|
+
const handleScrollToRowColumn = ($xeTable, fieldOrColumn, row) => {
|
|
5347
|
+
const internalData = $xeTable;
|
|
5348
|
+
const {
|
|
5349
|
+
fullColumnIdData
|
|
5350
|
+
} = internalData;
|
|
5351
|
+
const column = handleFieldOrColumn($xeTable, fieldOrColumn);
|
|
5352
|
+
if (column && fullColumnIdData[column.id]) {
|
|
5353
|
+
return colToVisible($xeTable, column, row);
|
|
5354
|
+
}
|
|
5355
|
+
return $xeTable.$nextTick();
|
|
5356
|
+
};
|
|
5338
5357
|
const Methods = {
|
|
5339
5358
|
callSlot(slotFunc, params, h, vNodes) {
|
|
5340
5359
|
if (slotFunc) {
|
|
@@ -12353,6 +12372,7 @@ const Methods = {
|
|
|
12353
12372
|
* @param {ColumnInfo} column 列配置
|
|
12354
12373
|
*/
|
|
12355
12374
|
scrollToRow(row, fieldOrColumn) {
|
|
12375
|
+
const $xeTable = this;
|
|
12356
12376
|
const rest = [];
|
|
12357
12377
|
if (row) {
|
|
12358
12378
|
if (this.treeConfig) {
|
|
@@ -12362,7 +12382,7 @@ const Methods = {
|
|
|
12362
12382
|
}
|
|
12363
12383
|
}
|
|
12364
12384
|
if (fieldOrColumn) {
|
|
12365
|
-
rest.push(
|
|
12385
|
+
rest.push(handleScrollToRowColumn($xeTable, fieldOrColumn, row));
|
|
12366
12386
|
}
|
|
12367
12387
|
return Promise.all(rest);
|
|
12368
12388
|
},
|
|
@@ -12371,11 +12391,8 @@ const Methods = {
|
|
|
12371
12391
|
* @param {ColumnInfo} column 列配置
|
|
12372
12392
|
*/
|
|
12373
12393
|
scrollToColumn(fieldOrColumn) {
|
|
12374
|
-
const
|
|
12375
|
-
|
|
12376
|
-
return colToVisible(this, column);
|
|
12377
|
-
}
|
|
12378
|
-
return this.$nextTick();
|
|
12394
|
+
const $xeTable = this;
|
|
12395
|
+
return handleScrollToRowColumn($xeTable, fieldOrColumn);
|
|
12379
12396
|
},
|
|
12380
12397
|
/**
|
|
12381
12398
|
* 对于树形结构中,可以直接滚动到指定深层节点中
|