Skip to content

Commit 43c3d30

Browse files
committed
删除未使用变量
1 parent 695bc4f commit 43c3d30

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

packages/ve-table/src/index.jsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export default {
455455
const { groupColumns } = this;
456456

457457
if (Array.isArray(groupColumns)) {
458-
this.headerRows = groupColumns.map((x) => {
458+
this.headerRows = groupColumns.map(() => {
459459
return { rowHeight: 0 };
460460
});
461461
}
@@ -466,7 +466,7 @@ export default {
466466
const { footerData } = this;
467467

468468
if (Array.isArray(footerData)) {
469-
this.footerRows = footerData.map((x) => {
469+
this.footerRows = footerData.map(() => {
470470
return { rowHeight: 0 };
471471
});
472472
}
@@ -560,12 +560,7 @@ export default {
560560
},
561561
// cell direction
562562
cellDirection(event) {
563-
const {
564-
cellSelectionKeyData,
565-
colgroups,
566-
allRowKeys,
567-
rowKeyFieldName,
568-
} = this;
563+
const { cellSelectionKeyData, colgroups, allRowKeys } = this;
569564

570565
const { keyCode } = event;
571566

@@ -748,7 +743,7 @@ export default {
748743

749744
// set virtual scroll visible data
750745
setVirtualScrollVisibleData() {
751-
const { isVirtualScroll, cloneTableData } = this;
746+
const { cloneTableData } = this;
752747

753748
const startIndex =
754749
this.$options.customOption.virtualScrollStartIndex;

0 commit comments

Comments
 (0)