Feat/support cell values change#4926
Merged
fangsmile merged 25 commits intoVisActor:feat/batch_cell_values&filterApifrom Feb 3, 2026
Merged
Feat/support cell values change#4926fangsmile merged 25 commits intoVisActor:feat/batch_cell_values&filterApifrom
fangsmile merged 25 commits intoVisActor:feat/batch_cell_values&filterApifrom
Conversation
允许 triggerEvent 参数接受 'change_cell_values' 字符串值,用于精确控制是否触发 CHANGE_CELL_VALUES 事件
为addRecord、addRecords、deleteRecords和updateRecords方法添加triggerEvent可选参数 当triggerEvent为false时,不触发对应的事件通知
…es_change Feat/support cell values change
添加syncRecordOperationsToSourceRecords配置选项,当设置为true时,表格的增删改操作会同步到原始records数组 修改DataSource类实现源数据同步逻辑,包括添加、删除和更新记录时对原始数据的处理 添加相关测试用例验证同步功能 在示例中添加同步选项的UI控制
fangsmile
approved these changes
Jan 16, 2026
| silentChangeCellValuesEvent?: boolean | ||
| ) => Promise<boolean[][]> | boolean[][]; | ||
| changeCellValueByRecord: ( | ||
| recordIndex: number | number[], |
| silentChangeCellValuesEvent?: boolean | ||
| ) => void; | ||
| changeCellValuesBySource: ( | ||
| changeValues: { |
| /** 删除能力是否只应用到可编辑单元格 */ | ||
| deleteWorkOnEditableCell?: boolean; | ||
| /** 删除范围时聚合成一次 change_cell_values 事件 */ | ||
| aggregateDeleteToOneChangeCellValuesEvent?: boolean; |
Contributor
There was a problem hiding this comment.
batchCallChangeCellValuesApi
| value: string | number | null, | ||
| workOnEditableCell?: boolean, | ||
| triggerEvent?: boolean, | ||
| silentChangeCellValuesEvent?: boolean |
Contributor
There was a problem hiding this comment.
noTriggerChangeCellValuesEvent
| } = { clearRowHeightCache: true } | ||
| ) { | ||
| this.scenegraph.clearCells(); | ||
| (this.dataSource as any).clearForceVisibleRecords?.(); |
Contributor
There was a problem hiding this comment.
clear和create map对象的地方请写明接口适用场景和背景
| @@ -0,0 +1,11 @@ | |||
| { | |||
added 3 commits
January 29, 2026 14:42
refactor: 重命名 changeCellValuesByIds 为 changeCellValuesByRanges feat: 新增批量修改离散选区单元格值的接口 changeCellValuesByRanges feat: 增加 syncRecordOperationsToSourceRecords 配置支持筛选态数据同步 feat: 新增 CHANGE_CELL_VALUES 聚合事件及相关文档 docs: 更新接口文档和指南说明新增功能
302b53c
into
VisActor:feat/batch_cell_values&filterApi
5 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
本 PR 汇总最近 22 次提交,聚焦在「数据操作能力增强 + 事件触发可控 + 过滤场景数据插入修复 + 搜索高亮性能优化」,并同步补齐类型/示例/测试与发布日志。
📝 Changelog
Language Changelog 🇺🇸 English Enhance ListTable data operations: add syncRecordOperationsToSourceRecords , make record CRUD events optional via triggerEvent , introduce recordIndex-based cell update APIs, add silentChangeCellValuesEvent to suppress change_cell_values , fix wrong insert position under filtering, and optimize search highlight latency. Update typings, tests, examples, and docs/release logs. 🇨🇳 Chinese 增强 ListTable 数据操作能力:新增 syncRecordOperationsToSourceRecords 支持操作同步到源数据;增删改记录接口新增 triggerEvent 控制事件触发;新增基于 recordIndex 的单元格改值/批量改值 API,并新增 silentChangeCellValuesEvent 用于抑制 change_cell_values ;修复过滤状态下新增记录位置错误;优化搜索高亮更新延迟。同步更新类型、测试、示例与发布/文档记录。
☑️ Self-Check before Merge
🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough