index.tsx 454 B

123456789101112131415
  1. import type React from 'react'
  2. import type { IRadioProps } from './component/radio'
  3. import RadioComps from './component/radio'
  4. import Group from './component/group'
  5. type CompoundedComponent = {
  6. Group: typeof Group
  7. } & React.ForwardRefExoticComponent<IRadioProps & React.RefAttributes<HTMLElement>>
  8. const Radio = RadioComps as CompoundedComponent
  9. /**
  10. * Radio 组件出现一般是以一组的形式出现
  11. */
  12. Radio.Group = Group
  13. export default Radio