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

ScrollView 内容少的时候不显示全部加载完成 #312

Closed
shouwangshe opened this issue Feb 14, 2019 · 8 comments
Closed

ScrollView 内容少的时候不显示全部加载完成 #312

shouwangshe opened this issue Feb 14, 2019 · 8 comments
Labels
@Components Components related feature New feature or request

Comments

@shouwangshe
Copy link

shouwangshe commented Feb 14, 2019

如题
_20190214180333
在下拉刷新和上拉加载一起使用是,如果下拉刷新后的数据是一条,小于设定的滚动区域高度,也不会显示全部加载完成

@xxyan0205 xxyan0205 added the discuss Need discuss label Feb 15, 2019
xxyan0205 referenced this issue Feb 15, 2019
trigger endReaching event when the content is less than one screen
@shouwangshe
Copy link
Author

感谢回复。希望能快点跟新。也不犀利,帮不上忙。目前做项目在使用这块。

@xxyan0205
Copy link
Collaborator

xxyan0205 commented Feb 15, 2019

目前可在这种情况下,手动更改部分字段

this.isFinished = true
this.$refs.scrollview.isEndReaching = true

@xxyan0205 xxyan0205 added feature New feature or request @Components Components related and removed discuss Need discuss labels Feb 15, 2019
@shouwangshe
Copy link
Author

目前可在这种情况下,手动更改部分字段

this.isFinished = true
this.$refs.scrollview.isEndReaching = true

哦哦好的。我试试。还有个问题,首次加载,加载的内容太少,就触发不了下拉加载,实际上还有内容,没加载完,这个应该怎么办?我现在是请求的内容大于滚动高度。

@xxyan0205
Copy link
Collaborator

首次加载,加载的内容太少,就触发不了下拉加载

正常情况下拉加载是不受内容和容器尺寸影响的,示例中的“下拉刷新”就是初始内容不足一屏

@shouwangshe
Copy link
Author

首次加载,加载的内容太少,就触发不了下拉加载

正常情况下拉加载是不受内容和容器尺寸影响的,示例中的“下拉刷新”就是初始内容不足一屏

嗯。。没理解你说的。我现在测试是滚动区域得给定一个高度,要不然不会触发下拉加载更多事件。首次请求的内容低于给定高度,下拉也不会加载更多,也是没有触发下拉加载更多事件。实际还有更多内容。我现在就是首次请求的内容设置的条数很大,超过滚动区域高度,好像可以。可能在你提的trigger endReaching event when the content is less than one screen应该会解决吧。

@shouwangshe
Copy link
Author

目前可在这种情况下,手动更改部分字段

this.isFinished = true
this.$refs.scrollview.isEndReaching = true

试了一下,引用不到ref. this.$refs.scrollview是undefined

@skyshirt
Copy link

skyshirt commented Feb 19, 2019

首次加载,加载的内容太少,就触发不了下拉加载

正常情况下拉加载是不受内容和容器尺寸影响的,示例中的“下拉刷新”就是初始内容不足一屏

上拉加载。内容未渲染到屏幕底部时不会触发@endReached()

@MangliZeng
Copy link

上拉加载。内容未渲染到屏幕底部时不会触发@endReached()

同问,上拉加载。内容未渲染到屏幕底部时不会触发@endReached()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@Components Components related feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants