mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
chore: Compatible for @types/react@18 (#35075)
* chore: Compatible for @types/react@18 * chore: Compatible for @types/react@18
This commit is contained in:
parent
640fe5df09
commit
1e91a4961c
@ -19,6 +19,7 @@ export interface CollapsePanelProps {
|
|||||||
id?: string;
|
id?: string;
|
||||||
extra?: React.ReactNode;
|
extra?: React.ReactNode;
|
||||||
collapsible?: CollapsibleType;
|
collapsible?: CollapsibleType;
|
||||||
|
children?: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
const CollapsePanel: React.FC<CollapsePanelProps> = props => {
|
const CollapsePanel: React.FC<CollapsePanelProps> = props => {
|
||||||
|
@ -92,6 +92,7 @@ export interface RowProps {
|
|||||||
bordered?: boolean;
|
bordered?: boolean;
|
||||||
colon: boolean;
|
colon: boolean;
|
||||||
index: number;
|
index: number;
|
||||||
|
children?: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Row: React.FC<RowProps> = props => {
|
const Row: React.FC<RowProps> = props => {
|
||||||
|
@ -24,6 +24,7 @@ export interface StepsProps {
|
|||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
percent?: number;
|
percent?: number;
|
||||||
onChange?: (current: number) => void;
|
onChange?: (current: number) => void;
|
||||||
|
children?: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StepProps {
|
export interface StepProps {
|
||||||
|
@ -12,6 +12,7 @@ export interface CheckableTagProps {
|
|||||||
* .zh-cn 该组件为完全受控组件,不支持非受控用法。
|
* .zh-cn 该组件为完全受控组件,不支持非受控用法。
|
||||||
*/
|
*/
|
||||||
checked: boolean;
|
checked: boolean;
|
||||||
|
children?: React.ReactNode;
|
||||||
onChange?: (checked: boolean) => void;
|
onChange?: (checked: boolean) => void;
|
||||||
onClick?: (e: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
onClick?: (e: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user