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

请教下,上拉加载有什么地方要配置么 #13

Closed
WM520 opened this issue May 18, 2017 · 9 comments
Closed

请教下,上拉加载有什么地方要配置么 #13

WM520 opened this issue May 18, 2017 · 9 comments

Comments

@WM520
Copy link

WM520 commented May 18, 2017

我直接拿了你的infiniteScroll.vue和scroll.js,还需要在哪里做些配置呢,谢谢解答

@walleeeee
Copy link
Owner

没有什么需要配置的啊,你加载遇到什么问题了么

@WM520
Copy link
Author

WM520 commented May 18, 2017

就是不调用loadMore方法,你有时间吗?帮我看看,谢谢

@WM520
Copy link
Author

WM520 commented May 18, 2017

https://github.com/WM520/scroller1 这是我引用的你上拉组件项目,向上滑动不调用loadMore方法

@walleeeee
Copy link
Owner

walleeeee commented May 18, 2017

就改了下Hello.vue
Hello.vue 的div加个‘test’的class
`

<style lang="css"> .test{ z-index: 1; width: 100vw; height: 100vh; overflow: auto; transition: transform 0.3s ease; -webkit-overflow-scrolling: touch; } </style>

`

@WM520
Copy link
Author

WM520 commented May 18, 2017

ni 你拿我的项目,就该了下hello.vue,就能实现上拉加载了吗,我没看懂你贴的代码,谢谢了,能说清楚点吗

@walleeeee
Copy link
Owner

加载组件外层的div也就是scroller应该是固定宽高 overflow: auto 这个样加载组件才能监听到scroller的滚动事件

@WM520
Copy link
Author

WM520 commented May 18, 2017

ok了,感谢你,我是刚接触这行

@WM520
Copy link
Author

WM520 commented May 18, 2017

可以加你个好友么

@walleeeee
Copy link
Owner

455678702

@WM520 WM520 closed this as completed May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants