ant-design-vue/components/radio/interface.ts

19 lines
447 B
TypeScript
Raw Normal View History

2021-06-26 01:35:40 +00:00
import type { RadioProps } from './Radio';
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;
}
export interface RadioGroupContext {
stateValue: Ref;
props: RadioProps;
onRadioChange: (e: RadioChangeEvent) => void;
}