-
Notifications
You must be signed in to change notification settings - Fork 144
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
在非doument.body和document.documentElement的屏幕滚动问题 #81
Comments
直接借用 saveScrollPosition prop 的位置如何? 三种取值
<KeepAlive saveScrollPosition="screen">
<KeepAlive saveScrollPosition>
<KeepAlive saveScrollPosition=".my-view .my-scroll-view"> 相较于目前,新增了第 3 项 |
嗯,可以 |
OK 了,v0.6.1,试试~ |
@CJY0208 谢谢大佬,OK了 |
OK,那这个关了哦 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
当我的共享滚动容器不在
Body
和Html
上使用插件的时候,会出现滚动高度无法保存的问题,虽然这个应该是react-router-dom
的问题,但是希望能有解决方案问题样例:
https://codesandbox.io/s/nifty-jepsen-4hs1k
一些思路:
在
keepAlive
上可以添加新的props
,比如提供一个监听class
或id
的接口来监听当前容器的滚动高度,然后保存不同界面的高度<KeepAlive onListen="#App">
。The text was updated successfully, but these errors were encountered: