feat: 普通表格新增onBodyScroll回调

This commit is contained in:
liushaozhen 2020-07-20 17:09:25 +08:00
parent a0565cc3b1
commit b42d80b02a
5 changed files with 38 additions and 6 deletions

File diff suppressed because one or more lines are too long

36
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -86,6 +86,7 @@ import 'bee-table/build/Table.css';
| [v2.2.8新增]autoCheckedByClickRows | 设置为 false 时,表格行点击事件,不会自动勾选复选框 | bool | true |
| [v2.2.8新增]autoSelect | 树型表格勾选时,是否开启子节点的联动 | bool | false |
| onPaste | 粘贴的回调函数 | func(event,positon) | - |
| onBodyScroll | table body 滚动的回调 | func(scrollTop) | - |
> 快捷键部分参考示例 (快捷键在table中的简单使用应用)

View File

@ -1347,6 +1347,9 @@ class Table extends Component {
debounce(
handleScrollY(this.lastScrollTop,this.treeType,onBodyScroll),
300)
}else{
//滚动回调
onBodyScroll(this.lastScrollTop)
}
}