Skip to content

Commit a936ad9

Browse files
committed
fix: add getStateSelection api for old code
1 parent 48c18a7 commit a936ad9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/vue/src/grid/src/table/src/methods.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2179,10 +2179,16 @@ const Methods = {
21792179

21802180
return columnIds.join(',')
21812181
},
2182-
// 获取所有多选数据状态
2182+
/** 获取所有多选数据状态, Tiny 规范后的名字 */
21832183
getAllSelection() {
21842184
return this.selection
21852185
},
2186+
/** 获取所有多选数据状态的历史名字,仅用于兼容老代码。
2187+
* @deprecated
2188+
* */
2189+
getStateSelection() {
2190+
return this.selection
2191+
},
21862192
// 尝试恢复滚动位置,规范了最大滚动位置的取值
21872193
attemptRestoreScroll(options) {
21882194
let { lastScrollTop, lastScrollLeft } = options || this

0 commit comments

Comments
 (0)