init table form layout

This commit is contained in:
Chuck1sn
2025-06-10 17:09:10 +08:00
parent 24f379857a
commit 4f35b256e6
3 changed files with 6 additions and 4 deletions

View File

@@ -131,7 +131,6 @@ const getItemId = (item: T): string | number => {
const getItemValue = (item: T, field: string): string => {
if (!field) return '';
// 支持嵌套属性访问,如 "user.name"
return String(field.split('.').reduce<unknown>((obj, key) =>
obj && typeof obj === 'object' && key in (obj as Record<string, unknown>)
? (obj as Record<string, unknown>)[key]