roymondchen
|
dfad691493
|
feat(data-source): 支持批量更新数据源
新增 dataSourceManager.batch(fn, options),fn 中的多次 setData 在结束后
统一更新一次页面:受影响节点只编译、替换一次,并按数据源分别触发 update-data。
- mergeChangeEvents 默认 false,每次变化各触发一次 update-data 并携带自己的
changeEvent,不丢失中间变化;传 true 则每个数据源只触发一次
- 支持嵌套,仅支持同步函数;isBatching 暴露当前是否处于批量更新中
- 页面/页面片节点的替换改为批量 replaceChildNodes,避免每个节点全树搜索
- 数据源字段变更事件在 batch 内仍按每次 setData 触发
|
2026-10-30 16:47:56 +08:00 |
|
roymondchen
|
ab6918f43d
|
test: 完善测试用例
|
2026-05-14 15:26:22 +08:00 |
|
roymondchen
|
9252822c58
|
refactor(data-source): 注册base/http数据源的代码有副作用
|
2025-04-30 17:03:36 +08:00 |
|
roymondchen
|
34fc0a15b9
|
refactor: 将data-source,dep,schema,utils收敛到core,将form,table,stage,design,util收敛到editor
|
2024-12-09 20:21:34 +08:00 |
|
roymondchen
|
831204663a
|
test: 完善测试用例
|
2024-05-09 20:49:54 +08:00 |
|
roymondchen
|
7f48b4d9f5
|
chore(core,data-source): 将app传入datasourceManager
|
2023-08-25 17:39:37 +08:00 |
|
roymondchen
|
aac478eebc
|
feat: 新增数据源
|
2023-05-29 11:33:44 +08:00 |
|