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;
|
||||
extra?: React.ReactNode;
|
||||
collapsible?: CollapsibleType;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
const CollapsePanel: React.FC<CollapsePanelProps> = props => {
|
||||
|
@ -92,6 +92,7 @@ export interface RowProps {
|
||||
bordered?: boolean;
|
||||
colon: boolean;
|
||||
index: number;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
const Row: React.FC<RowProps> = props => {
|
||||
|
@ -24,6 +24,7 @@ export interface StepsProps {
|
||||
style?: React.CSSProperties;
|
||||
percent?: number;
|
||||
onChange?: (current: number) => void;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
export interface StepProps {
|
||||
|
@ -12,6 +12,7 @@ export interface CheckableTagProps {
|
||||
* .zh-cn 该组件为完全受控组件,不支持非受控用法。
|
||||
*/
|
||||
checked: boolean;
|
||||
children?: React.ReactNode;
|
||||
onChange?: (checked: boolean) => void;
|
||||
onClick?: (e: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user