chore: Compatible for @types/react@18 (#35075)

* chore: Compatible for @types/react@18

* chore: Compatible for @types/react@18
This commit is contained in:
AliRezaBeigy 2022-04-18 03:39:23 -07:00 committed by GitHub
parent 640fe5df09
commit 1e91a4961c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,7 @@ export interface CollapsePanelProps {
id?: string;
extra?: React.ReactNode;
collapsible?: CollapsibleType;
children?: React.ReactNode;
}
const CollapsePanel: React.FC<CollapsePanelProps> = props => {

View File

@ -92,6 +92,7 @@ export interface RowProps {
bordered?: boolean;
colon: boolean;
index: number;
children?: React.ReactNode;
}
const Row: React.FC<RowProps> = props => {

View File

@ -24,6 +24,7 @@ export interface StepsProps {
style?: React.CSSProperties;
percent?: number;
onChange?: (current: number) => void;
children?: React.ReactNode;
}
export interface StepProps {

View File

@ -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;
}