feat: enhance dashboard CRUD functionality with support for boolean and multi-select fields; update related types and utilities

This commit is contained in:
mlogclub
2026-05-28 09:45:24 +08:00
parent 0ca0332a5f
commit 2cb834efa3
6 changed files with 442 additions and 28 deletions
@@ -122,7 +122,7 @@ export type DashboardCrudPageProps<TItem, TPayload> = {
fields: DashboardCrudFormField<TItem>[]
fetchDetail?: (id: number) => Promise<TItem>
transformSubmitValues?: (
values: Record<string, string | number>,
values: Record<string, string | number | boolean | string[] | number[]>,
context: { mode: "create" | "edit"; item: TItem | null }
) => TPayload
labels: {