feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg, 保留 13-arg 兼容构造);新增 PageBlueprintChild record。 PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架, 新增/编辑表单内联 house-style input-table 子表(name=listColumn, quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。 validate 接受 master-detail 并要求 child 非空/childTable/listColumn 非空/fields 非空。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
103
转换产物-attach/schema/ae79a47b-292a-425e-8494-c7404857e764.json
Normal file
103
转换产物-attach/schema/ae79a47b-292a-425e-8494-c7404857e764.json
Normal file
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "短消息",
|
||||
"body" : [ {
|
||||
"type" : "button-toolbar",
|
||||
"className" : "m-b-sm",
|
||||
"buttons" : [ {
|
||||
"type" : "button",
|
||||
"label" : "发送消息",
|
||||
"level" : "primary",
|
||||
"icon" : "fa fa-paper-plane",
|
||||
"actionType" : "dialog",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "发送消息",
|
||||
"size" : "md",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"mode" : "horizontal",
|
||||
"api" : "POST:/api/notice/send",
|
||||
"reload" : "short-message-sent-crud",
|
||||
"horizontal" : {
|
||||
"left" : 2,
|
||||
"right" : 10
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "input-text",
|
||||
"name" : "TITLE",
|
||||
"label" : "标题",
|
||||
"required" : true,
|
||||
"maxLength" : 200
|
||||
}, {
|
||||
"type" : "picker",
|
||||
"name" : "TOUSERS",
|
||||
"label" : "接收人",
|
||||
"required" : true,
|
||||
"multiple" : true,
|
||||
"clearable" : true,
|
||||
"placeholder" : "请点击右侧的图标",
|
||||
"source" : "/api/picker/090981ba-0c10-4d84-92dc-80e226594480/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"overflowConfig" : {
|
||||
"maxTagCount" : 1,
|
||||
"displayPosition" : [ "select" ]
|
||||
},
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
}, {
|
||||
"type" : "hidden",
|
||||
"name" : "ISREPLY",
|
||||
"value" : true
|
||||
}, {
|
||||
"type" : "textarea",
|
||||
"name" : "CONTENT",
|
||||
"label" : "内容",
|
||||
"required" : true,
|
||||
"minRows" : 6,
|
||||
"maxLength" : 2000
|
||||
} ]
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "取消",
|
||||
"actionType" : "close"
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "发送",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"close" : true
|
||||
} ]
|
||||
}
|
||||
} ]
|
||||
}, {
|
||||
"type" : "tabs",
|
||||
"tabs" : [ {
|
||||
"title" : "已发消息",
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/b7635622-309a-4348-9657-a9ae6866992f?format=amis",
|
||||
"id" : "short-message-sent-service"
|
||||
}
|
||||
}, {
|
||||
"title" : "已收消息",
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/83971d1a-490c-48a1-b9e1-e57fa26acda3?format=amis",
|
||||
"id" : "short-message-received-service"
|
||||
}
|
||||
} ],
|
||||
"id" : "message-tabs"
|
||||
} ]
|
||||
}
|
||||
Reference in New Issue
Block a user