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

常见问题汇总 #2

Open
JamyKing opened this issue Aug 21, 2020 · 0 comments
Open

常见问题汇总 #2

JamyKing opened this issue Aug 21, 2020 · 0 comments
Assignees
Labels
solution Solutions to common problems

Comments

@JamyKing
Copy link
Owner

JamyKing commented Aug 21, 2020

一、手势上滑加载更多loadMore()系列问题

1. loadMore()无法正常触发

  • 当前页码currentPage、总页码totalPages,需满足currentPage < totalPages,以减少无用功;
  • 请注意下页面内展示的数据条数(尤其是测试的时候)---使其能撑满整个页面;

2. this.$refs.loadRefresh.completed()方法报错

  • 尝试使用 this.$refs.loadRefresh[0].completed();

二、下拉刷新refresh()系列问题

1. 下拉刷新后动画无法停止

  • 下拉刷新触发后,是否存在直接将数据列表清空,比如:this.list = [],再去获取新数据---这样的操作。这样会引起组件内的coverTouchend()方法无法触发,进而导致刷新动画无法结束。

三、其他问题

1. 引入组件后,列表数据无法显示

  • 组件使用了slot插槽,请注意在组件内嵌套数据时使用slot="content-list";

如有更好的解决方案和建议,请不要吝啬键盘 (抱拳)

@JamyKing JamyKing pinned this issue Sep 3, 2020
@JamyKing JamyKing added enhancement New feature or request solution Solutions to common problems and removed enhancement New feature or request solution Solutions to common problems labels Sep 3, 2020
@JamyKing JamyKing self-assigned this Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solution Solutions to common problems
Projects
None yet
Development

No branches or pull requests

1 participant