mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
cf3fe6b9e0
* refactor(radio): use composition api * docs: update * chore: update * docs: update * Update Group.tsx Co-authored-by: tangjinzhou <415800467@qq.com>
19 lines
447 B
TypeScript
19 lines
447 B
TypeScript
import type { RadioProps } from './Radio';
|
|
import type { Ref } from 'vue';
|
|
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;
|
|
}
|