feat: 普通表格新增onBodyScroll回调
This commit is contained in:
parent
a0565cc3b1
commit
b42d80b02a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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中的简单使用应用)
|
||||
|
||||
|
|
|
@ -1347,6 +1347,9 @@ class Table extends Component {
|
|||
debounce(
|
||||
handleScrollY(this.lastScrollTop,this.treeType,onBodyScroll),
|
||||
300)
|
||||
}else{
|
||||
//滚动回调
|
||||
onBodyScroll(this.lastScrollTop)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue