refactor: resource table columns

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent 84859d1b7c
commit 949eded4ee
44 changed files with 1390 additions and 1544 deletions
+5 -4
View File
@@ -23,19 +23,20 @@ declare namespace Global {
source: string;
avatar_url?: string;
}
type EmptyObject = Record<never, never>;
type BaseListItem<T, U extends Record<string, any>> = {
type BaseListItem<T, U extends object = EmptyObject> = {
key: string;
locale?: boolean;
value: T;
} & U;
} & Partial<U>;
type BaseOption<T, U extends Record<string, any>> = {
type BaseOption<T, U extends object = EmptyObject> = {
label: string;
locale?: boolean;
value: T;
meta?: Record<string, any>;
} & U;
} & Partial<U>;
interface HintOptions {
label: string;