feat: 业务提供项编辑弹窗支持区块点选联动
This commit is contained in:
1 parent
a3730ee8fc
commit
64b6f5c27c
8 files changed
+216
-34
No files matched your search
@@ -32,6 +32,19 @@ export function previewTargetsByPage(
|
||||
return result;
|
||||
}
|
||||
|
||||
export function previewFieldsByTarget(
|
||||
sections: AdminTemplateContent["admin"]["sections"],
|
||||
): Record<string, TemplateAdminField[]> {
|
||||
const result: Record<string, TemplateAdminField[]> = {};
|
||||
for (const section of sections) {
|
||||
for (const field of section.fields) {
|
||||
if (!field.previewTarget) continue;
|
||||
(result[field.previewTarget] ??= []).push(field);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
export function buildOfferingPreviewWorkspace(options: {
|
||||
previewWorkspace: RuntimeWorkspace;
|
||||
editingOffering: Offering;
|
||||
|
||||
Reference in new issue
Block a user