首页工作流引用功能收口:Schema 移除对象/数组引用,模型参数引用与表单展示同级

- FieldConfigDialog(json-schema-editor):删除对象/数组字段的「值来源」引用入口,
  标量字段的默认值引用保留
- ModelField:leaf 分支引用按钮对所有叶子参数生效(含数组元素内字段),
  与「表单展示」勾选同级;对象/数组字段本身不提供引用
- modelParamUtils:buildModelRequestParamsPath 恢复所有叶子保留 valueSource,
  保存链路与编辑器语义一致

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-08-19 18:21:06 +08:00
co-authored by Claude
parent f7b3531392
commit b6208b37e4
5 changed files with 237 additions and 72 deletions
@@ -288,6 +288,8 @@ function collectAllLeafFields(params: any, prefix = ''): { path: string; def: an
}
// 生成 modelRequestParamsPath 扁平清单
// 所有叶子字段(含对象/数组内部)都支持「引用上游」,valueSource 原样保留;
// 与编辑器「引用上级输出与表单展示同级」语义一致
export function buildModelRequestParamsPath(params: any, startNodeId = ''): ModelRequestParamsPathItem[] {
const fields = collectAllLeafFields(params);
return fields.map(({ path, def }) => {