Skip to content

[Bug] vue-table 使用updateFilterRules后,使用addRecords添加数据未修改原records #4607

Description

@tangerball

Version

1.22.0

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/vtable-list-table-forked-qv3kl7

Steps to Reproduce

操作案例上的按钮,则直接可发现此问题

Current Behavior

#3393 有相同情况,未处理此问题
1.使用updateFilterRules后
2.使用addRecords添加数据
3.再清除筛选方法的条件内容
4.获取records

Expected Behavior

使用updateFilterRules,addRecords添加数据后,清除筛选条件内容后,则能获取新的records内容

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Activity

  1. fangsmile commented on Oct 21, 2025

    @fangsmile
    Contributor

    感谢你的反馈!
    如果有开发者对这个 issue 感兴趣,请在issue下方留言“认领该issue”,留言后开始你的创作提pr给我们!
    欢迎大家参与开源共建!我们非常感激每一位贡献者,提交pr后我们将为参与共建的开发者准备一份礼品。
    参与共建可参考:https://visactor.io/vtable/guide/Contribution_Guide
    与官方开发者交流问题可以下载飞书app扫码加入飞书群:
    飞书20241029-170312
    再次感谢你的支持!

    Thank you for your feedback! We have received your question and will deal with it later.
    If any developer is interested in this issue, please leave a message "claim this issue" below the issue. Welcome to participate in open source co-construction!
    We are very grateful to every contributor. After submitting the PR, we will prepare a gift for the developers who participated in the co-construction.
    For participation in co-construction, please refer to: https://visactor.io/vtable/guide/Contribution_Guide
    To communicate with official developers, you can download the Feishu app and scan the QR code to join the Feishu group!
    Thank you again for your support!

  2. fangsmile commented on Sep 20, 2026

    @fangsmile
    Contributor

    认领该 issue。我会基于当前 develop 验证筛选状态下 addRecords 与源 records 的同步行为,并补充可区分修复前后的回归测试。

  3. fangsmile commented on Sep 20, 2026

    @fangsmile
    Contributor

    已提交回归测试 PR #5326。调查确认生产行为已由 #4913 的 syncRecordOperationsToSourceRecords 配置实现;本次补齐 Issue 原始 updateFilterRules -> addRecords -> 清空筛选 路径的精确测试与 Demo。相同测试在合入前提交 a68f06035 上失败(新增的 David/Eve 丢失),在当前 develop 上通过。Bugserver case 因所有可选分支/构建均为 PASS、无法区分修复前后,已删除,不作为回归证据。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions