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

[list] 增加从上方加载 #1526

Closed
k186 opened this issue Aug 8, 2024 · 4 comments
Closed

[list] 增加从上方加载 #1526

k186 opened this issue Aug 8, 2024 · 4 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@k186
Copy link

k186 commented Aug 8, 2024

这个功能解决了什么问题

可以用户自定义滚动方向来加载,目前发现其他框架有类似功能,但是实际体验很差,滚动条位置不对等诸多问题,重复触发;目前兼容方案采用下拉刷型的方式通过改变文案来提示加载历史信息;

你建议的方案是什么

希望list组件提供加载方向判断,满足易用性;非常感谢

Copy link
Contributor

github-actions bot commented Aug 8, 2024

👋 @k186,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@HappierPuppy
Copy link

真的很需要这个功能,目前还没有特别好的组件满足同时可以下拉加载和上滑加载更多的功能

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 18, 2024

@k186 @HappierPuppy 感谢反馈~, list 组件本身不带刷新/加载功能,常结合 PullDownRefresh 实现下拉刷新,上滑加载可以通过 scroll 事件判断是否触底,可参考官网 下拉刷新示例 https://tdesign.tencent.com/mobile-vue/components/list?tab=demo

@anlyyao anlyyao added enhancement New feature or request question Further information is requested labels Oct 18, 2024
@anlyyao anlyyao closed this as completed Oct 18, 2024
@k186
Copy link
Author

k186 commented Oct 21, 2024

场景是 用于消息列表,用scroll能做,恶心的地方就是触发的阈值,市面vant 用的 就是scroll 实际效果很差,目前用下拉刷新 暂时处理的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants