[Bug] vue-table 使用updateFilterRules后,使用addRecords添加数据未修改原records
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox reproduction and trace the vue-table flow using updateFilterRules, addRecords, and the filter-clearing action. Verify how records are returned after adding data, then confirm that clearing the filter exposes the newly added records as described in the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100