Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transfer组件为什么不提供监听 scroll事件的api呢 #4188

Closed
cqh2015 opened this issue Dec 8, 2016 · 7 comments
Closed

transfer组件为什么不提供监听 scroll事件的api呢 #4188

cqh2015 opened this issue Dec 8, 2016 · 7 comments
Assignees
Labels
help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.

Comments

@cqh2015
Copy link

cqh2015 commented Dec 8, 2016

如题

@benjycui
Copy link
Contributor

benjycui commented Dec 8, 2016

使用场景?

@benjycui
Copy link
Contributor

技术上可以支持,但是如果没有使用场景的话就没必要了吧。

先关,有合理的使用场景是可以 re-open。

@cqh2015
Copy link
Author

cqh2015 commented Dec 19, 2016

这边的场景是,数据源需要和后台交互,且需要分页查询

@benjycui
Copy link
Contributor

relative: #3705

Transfer 加了 onScroll 也不方便,用 加载更多按钮 也不适合。

还是加 onScrollToEnd 之类的方法吧。

@benjycui benjycui reopened this Dec 19, 2016
@benjycui benjycui added Feature help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request. and removed Question labels Dec 19, 2016
@benjycui benjycui self-assigned this Jan 4, 2017
@benjycui
Copy link
Contributor

Trace: #5084

只提供 onScroll,然后自行封装 onScrollEnd 即可。

@YaoKaiLun
Copy link
Contributor

handleScroll = (direction, e) => {
   let target = e.target
   if (target.scrollTop + target.offsetHeight === target.scrollHeight) {
      // do something
   }
}

@lock
Copy link

lock bot commented Jun 8, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.
Projects
None yet
Development

No branches or pull requests

4 participants