feat: custom types can bind a field layout (profile) - layout select in type editor, respected in record form

This commit is contained in:
root
2026-10-17 10:45:04 +08:00
parent 79dada4226
commit 74884ce73a
19 changed files with 109 additions and 92 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ export const syncStatus = () => call<SyncStatus>('sync_status');
// ---- footprint type ----
export const listTypes = () => call<{ items: FootprintType[] }>('type_list');
export const upsertType = (p: { id?: number; name: string; icon: string; color: string; sort: number; form_template: FormField[]; closed?: boolean }) =>
export const upsertType = (p: { id?: number; name: string; icon: string; color: string; sort: number; form_template: FormField[]; profile?: string; closed?: boolean }) =>
call<{ item: FootprintType }>('type_upsert', p);
export const deleteType = (id: number) => call<{ ok: true }>('type_delete', { id });