2021-06-26 01:35:40 +00:00
|
|
|
import type { RadioProps } from './Radio';
|
2021-10-01 06:53:37 +00:00
|
|
|
import type { Ref } from 'vue';
|
2020-10-20 08:58:08 +00:00
|
|
|
export interface RadioChangeEventTarget extends RadioProps {
|
|
|
|
checked: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface RadioChangeEvent {
|
|
|
|
target: RadioChangeEventTarget;
|
|
|
|
stopPropagation: () => void;
|
|
|
|
preventDefault: () => void;
|
|
|
|
nativeEvent: MouseEvent;
|
|
|
|
}
|
2021-10-01 06:53:37 +00:00
|
|
|
|
|
|
|
export interface RadioGroupContext {
|
|
|
|
stateValue: Ref;
|
|
|
|
props: RadioProps;
|
|
|
|
onRadioChange: (e: RadioChangeEvent) => void;
|
|
|
|
}
|