refactor(frontend): fix enum types in scripts/form (#11138)
This commit is contained in:
		
							parent
							
								
									c065b97140
								
							
						
					
					
						commit
						bc61f37faa
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,4 @@
 | 
			
		|||
type EnumItem = string | {label: string; value: string;};
 | 
			
		||||
export type FormItem = {
 | 
			
		||||
	label?: string;
 | 
			
		||||
	type: 'string';
 | 
			
		||||
| 
						 | 
				
			
			@ -20,7 +21,7 @@ export type FormItem = {
 | 
			
		|||
	type: 'enum';
 | 
			
		||||
	default: string | null;
 | 
			
		||||
	hidden?: boolean;
 | 
			
		||||
	enum: string[];
 | 
			
		||||
	enum: EnumItem[];
 | 
			
		||||
} | {
 | 
			
		||||
	label?: string;
 | 
			
		||||
	type: 'radio';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue