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

[table] 表格组件开启虚拟列表,数据量低于 200 时,滚动函数无效 #4705

Closed
tiny-dust opened this issue Nov 1, 2024 · 3 comments

Comments

@tiny-dust
Copy link
Contributor

tiny-dust commented Nov 1, 2024

tdesign-vue-next 版本

1.10.2

重现链接

https://codesandbox.io/p/sandbox/tdesign-vue-next-table-virtual-scroll-demo-forked-gqxr6y

重现步骤

  1. table 组件,开启虚拟滚动配置
  2. 数据量设置少于 200 个
  3. 点击滚动

期望结果

依旧可以正常滚动

实际结果

没有进行滚动

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Nov 1, 2024

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

@Wesley-0808
Copy link
Contributor

这可以滚动啊,是我理解错意思了吗?
freecompress-IMG_2685

@tiny-dust tiny-dust changed the title [组件名称] 描述问题的标题 [table] 表格组件开启虚拟列表,数据量低于 200 时,滚动函数无效 Nov 4, 2024
@tiny-dust
Copy link
Contributor Author

tiny-dust commented Nov 4, 2024

这可以滚动啊,是我理解错意思了吗? freecompress-IMG_2685 freecompress-IMG_2685

是我没有好好看文档,刚看了下 table 组件的代码,关于滚动这块有个参数scroll.threshold。回头又看了下文档,才发现因为没有配置这个,导致的,尴尬了

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