Skip to content

Commit 2e04246

Browse files
committed
TABLE_METHODS -> INSTANCE_METHODS
1 parent 70e3544 commit 2e04246

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/ve-table/src/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
COMPS_NAME,
1616
EMIT_EVENTS,
1717
COMPS_CUSTOM_ATTRS,
18-
TABLE_METHODS,
18+
INSTANCE_METHODS,
1919
} from "./util/constant";
2020
import Colgroup from "./colgroup";
2121
import Header from "./header";
@@ -1019,7 +1019,7 @@ export default {
10191019
},
10201020

10211021
// table scrollTo
1022-
[TABLE_METHODS.SCROLL_TO](option) {
1022+
[INSTANCE_METHODS.SCROLL_TO](option) {
10231023
scrollTo(this.$refs[this.tableContainerRef], option);
10241024
},
10251025
},

packages/ve-table/src/util/constant.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const COMPS_CUSTOM_ATTRS = {
8484
BODY_ROW_KEY: "row-key",
8585
};
8686

87-
// table methods
88-
export const TABLE_METHODS = {
87+
// instance methods
88+
export const INSTANCE_METHODS = {
8989
SCROLL_TO: "scrollTo",
9090
};

0 commit comments

Comments
 (0)