@flatbiz/antd
Version:
28 lines (25 loc) • 862 B
TypeScript
import { ReactElement } from 'react';
export type RadioGroupWrapperValue = string | number | boolean;
export type RadioGroupWrapperOptionItem = {
label: string | ReactElement;
value: RadioGroupWrapperValue;
disabled?: boolean;
};
export type CustomRadioGroupProps = {
value?: RadioGroupWrapperValue;
onChange?: (value?: RadioGroupWrapperValue) => void;
onPreChange?: (value?: RadioGroupWrapperValue) => Promise<void>;
options: RadioGroupWrapperOptionItem[];
/** 是否可取消选中,默认:false */
isCancel?: boolean;
disabled?: boolean;
/**方向,默认值 horizontal */
direction?: "horizontal" | "vertical";
};
/**
* RadioGroupWrapper 为了解决 RadioGroup 组件不能取消选中问题
* @param props
* @returns
*/
export declare const RadioGroupWrapper: (props: CustomRadioGroupProps) => import("react").JSX.Element;
export {};