interface.d.ts 591 B

123456789101112131415161718
  1. import type { RadioProps } from './Radio';
  2. import type { Ref } from 'vue';
  3. export interface RadioChangeEventTarget extends RadioProps {
  4. checked: boolean;
  5. }
  6. export declare type RadioGroupButtonStyle = 'outline' | 'solid';
  7. export declare type RadioGroupOptionType = 'default' | 'button';
  8. export interface RadioChangeEvent {
  9. target: RadioChangeEventTarget;
  10. stopPropagation: () => void;
  11. preventDefault: () => void;
  12. nativeEvent: MouseEvent;
  13. }
  14. export interface RadioGroupContext {
  15. stateValue: Ref;
  16. props: RadioProps;
  17. onRadioChange: (e: RadioChangeEvent) => void;
  18. }