mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
fix(Radio, Checkbox): export required
prop type (#46028)
This commit is contained in:
parent
9f9f64eebd
commit
bb5dd4d3cc
@ -35,6 +35,7 @@ export interface AbstractCheckboxProps<T> {
|
||||
autoFocus?: boolean;
|
||||
type?: string;
|
||||
skipGroup?: boolean;
|
||||
required?: boolean;
|
||||
}
|
||||
|
||||
export interface CheckboxChangeEventTarget extends CheckboxProps {
|
||||
|
@ -18,6 +18,7 @@ export interface CheckboxOptionType {
|
||||
title?: string;
|
||||
id?: string;
|
||||
onChange?: (e: CheckboxChangeEvent) => void;
|
||||
required?: boolean;
|
||||
}
|
||||
|
||||
export interface AbstractCheckboxGroupProps {
|
||||
@ -126,6 +127,7 @@ const InternalGroup: React.ForwardRefRenderFunction<HTMLDivElement, CheckboxGrou
|
||||
style={option.style}
|
||||
title={option.title}
|
||||
id={option.id}
|
||||
required={option.required}
|
||||
>
|
||||
{option.label}
|
||||
</Checkbox>
|
||||
|
@ -80,6 +80,7 @@ const RadioGroup = React.forwardRef<HTMLDivElement, RadioGroupProps>((props, ref
|
||||
title={option.title}
|
||||
style={option.style}
|
||||
id={option.id}
|
||||
required={option.required}
|
||||
>
|
||||
{option.label}
|
||||
</Radio>
|
||||
|
Loading…
Reference in New Issue
Block a user