fix
This commit is contained in:
@@ -11,6 +11,10 @@ export interface FieldOverride {
|
||||
formatter?: (value: any) => string;
|
||||
filterType?: "autocomplete" | "multiselect" | "number-range" | "date-range";
|
||||
enumLabels?: Record<string, string>;
|
||||
// New optional properties to support custom config extensions
|
||||
displayFormat?: string;
|
||||
path?: string;
|
||||
refers?: string;
|
||||
}
|
||||
|
||||
export interface ResourceOverride {
|
||||
@@ -22,6 +26,12 @@ export interface ResourceOverride {
|
||||
fields?: string[];
|
||||
};
|
||||
enumOption?: EnumOption;
|
||||
// New optional property for reference‑type resources
|
||||
referenceOptions?: {
|
||||
enumOption?: EnumOption;
|
||||
autoComplete?: boolean;
|
||||
prefetch?: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
export interface FieldComponentProps {
|
||||
|
||||
@@ -57,6 +57,12 @@ export const configuration: Record<string, ResourceOverride> = {
|
||||
format: {
|
||||
path: 'source.format',
|
||||
},
|
||||
account: {
|
||||
refers: 'accounts',
|
||||
},
|
||||
tags: {
|
||||
refers: 'tags',
|
||||
},
|
||||
},
|
||||
},
|
||||
accounts: {
|
||||
|
||||
Reference in New Issue
Block a user