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

🐛 TableSheet 在滚动时添加数据,然后在搜索过滤的时候,会出现视图异常 #3077

Closed
3 of 16 tasks
yexiyue opened this issue Jan 13, 2025 · 4 comments · Fixed by #3079 or #3081
Closed
3 of 16 tasks

Comments

@yexiyue
Copy link

yexiyue commented Jan 13, 2025

🏷 S2 Version / S2 版本

Package Version
@antv/s2 2.1.8
@antv/s2-react 2.1.6
@antv/s2-react-components

💻 Sheet Type / 表格类型

  • PivotSheet
  • TableSheet
  • PivotChartSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Describe the bug / 问题描述

TableSheet 在滚动时添加数据,然后在搜索过滤的时候,会出现视图异常。

⌨️ Code Snapshots / 代码片段

https://codesandbox.io/p/sandbox/silly-goldstine-c7j7ww

🔗 Reproduction link / 复现链接

https://codesandbox.io/p/sandbox/silly-goldstine-c7j7ww

📋 Steps to Reproduce the Bug or Issue / 重现步骤

  1. 拖动表格滚动条,滚动到100行左右(此时会加载数据)
  2. 立即点击search按钮,会出现视图异常情况如下图所示
image

😊 Expected Behavior / 期望行为

加载数据后在过滤不存在的内容时,展示的应该只有empty提示

😅 Current Behavior / 当前行为

No response

💻 OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

🌏 Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他
Copy link
Contributor

你好 @yexiyue,请编辑你的 issue 标题, 一个言简意赅的 issue 标题可以节省大家的时间, 请不要将标题当做正文, 或者为空。

Hello, @yexiyue, please edit your issue title. a concise issue title will save everyone time. please do not leave the title as the body or empty.

Copy link
Contributor

你好 @yexiyue:

提 Issue 须知

⚠️ 在提出问题前,请确保你已经仔细阅读👓/搜索🔍过 官方文档常见问题 以及 图表示例, 并且已经搜索查阅过相关 Issues 列表Discussions 列表. 当你确定自己的问题没有解决方案时,请提交 issue。 ⚠️

如果是使用问题,不知道怎么用,移步 Discussions 讨论区 并提供 有效信息 进行 提问

参与社区共建

这是一个开源项目, 我们也有繁忙的业务要做, 是用自己的业余时间在维护, 为爱发电, 精力有限, 所以有时候 issue 响应速度不是那么及时, 如果你遇到了问题, 或者对 IssuesDiscussions 列表的问题感兴趣, 可以直接认领并尝试修复 (贡献指南),帮助 S2 变得更好, 而不是一味的埋怨和催促, 我们不是甲方乙方的关系.

Copy link

感谢您报告这个问题。根据您的描述,TableSheet 在滚动时添加数据,然后在搜索过滤时出现视图异常。这种行为确实不符合预期。

目前在我们的问题库中没有找到类似的问题。为了帮助您解决这个问题,您可以尝试以下方法:

  1. 确保数据加载完成:在执行搜索过滤操作之前,确保所有数据已经加载完成。这可以通过在数据加载完成后再触发搜索过滤来实现。

  2. 检查代码逻辑:查看代码中是否有在滚动时添加数据的逻辑,并确保在添加数据后正确更新了视图。

  3. 更新到最新版本:确保您使用的是最新版本的 @antv/s2 和相关包,因为有可能在新版本中已经修复了此问题。

如果这些方法仍然不能解决问题,您可以在 GitHub 上提交一个详细的错误报告,附上代码片段和复现步骤,以便开发团队进一步调查。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

@yexiyue yexiyue changed the title 🐛 🐛 TableSheet 在滚动时添加数据,然后在搜索过滤的时候,会出现视图异常 Jan 13, 2025
lijinke666 added a commit that referenced this issue Jan 17, 2025
* fix: 修复明细表空数据占位符背景穿透的问题 close #3077

* fix: 增加透明度
@lijinke666
Copy link
Member

🎉 This issue has been resolved in version @antv/s2-v2.1.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants