20260927215912

This commit is contained in:
oneao committed 2026-09-27 21:59:13 +08:00
1 parent 27e49e2e45
commit f22e67fc85
294 files changed
+29247 -3576

No files matched your search

+12 -10
View File
@@ -104,8 +104,10 @@ GO
主键为 (b_module_id, b_schema_type)。JSON 结构需与 schemaRender.js 解析一致:
view :{ schemaVersion, columns: [ { field, width } | { type:'group', title, children } ] }
edit :{ schemaVersion, children: [ { field, span, required, readonly, defaultValue }
| { type:'group', ... } ] }
edit :{ schemaVersion: 2, children: [ RowNode | GroupNode ] }
RowNode = { type:'row', children: [ { field, span, required, readonly, defaultValue } ... ] }
(行是显式结构:一个行节点 = 表单的一行,行内 sum(span) ≤ 24;不再有 newline 属性)
GroupNode = { type:'group', id, title, colspan, cols, children: [ RowNode | GroupNode ] }
query :{ schemaVersion: 2, defaultViewCode, views: [ { code, label, order, showCount, conditions } ],
keywordSearch: { placeholder, trigger, fields }, quickFilters: [ { field, order } ],
filterGroups: [ { code, label, order, fields } ],
@@ -130,15 +132,15 @@ values ('v_b_user', 'view', N'{
]
}', 1),
('v_b_user', 'edit', N'{
"schemaVersion": 1,
"schemaVersion": 2,
"children": [
{ "type": "group", "title": "基本信息", "span": 48, "children": [
{ "field": "b_id", "span": 24, "required": true },
{ "field": "b_name", "span": 24, "required": true },
{ "field": "b_dept_id", "span": 24 },
{ "field": "b_password", "span": 24, "placeholder": "新增必填;编辑时留空表示不修改" },
{ "field": "b_canuse", "span": 24, "defaultValue": 1 },
{ "field": "b_bz", "span": 48 }
{ "type": "group", "id": "group1", "title": "基本信息", "colspan": 24, "children": [
{ "type": "row", "children": [ { "field": "b_id", "span": 24, "required": true } ] },
{ "type": "row", "children": [ { "field": "b_name", "span": 24, "required": true } ] },
{ "type": "row", "children": [ { "field": "b_dept_id", "span": 24 } ] },
{ "type": "row", "children": [ { "field": "b_password", "span": 24, "placeholder": "新增必填;编辑时留空表示不修改" } ] },
{ "type": "row", "children": [ { "field": "b_canuse", "span": 24, "defaultValue": 1 } ] },
{ "type": "row", "children": [ { "field": "b_bz", "span": 24 } ] }
] }
]
}', 1),