mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 10:53:02 +00:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
		
			454 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			454 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|   | import type React from 'react' | ||
|  | import type { IRadioProps } from './component/radio' | ||
|  | import RadioComps from './component/radio' | ||
|  | import Group from './component/group' | ||
|  | 
 | ||
|  | type CompoundedComponent = { | ||
|  |   Group: typeof Group | ||
|  | } & React.ForwardRefExoticComponent<IRadioProps & React.RefAttributes<HTMLElement>> | ||
|  | 
 | ||
|  | const Radio = RadioComps as CompoundedComponent | ||
|  | /** | ||
|  |  * Radio 组件出现一般是以一组的形式出现 | ||
|  |  */ | ||
|  | Radio.Group = Group | ||
|  | export default Radio |