fix(typescript): adjust style type declearation (#28966)

This commit is contained in:
Pengsha Ying 2021-01-21 17:16:51 +08:00 committed by GitHub
parent 8d5a1fe449
commit a2b5d47e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ interface BasicProps {
element: React.ReactElement;
handleReset: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
className?: string;
style?: object;
style?: React.CSSProperties;
disabled?: boolean;
direction?: DirectionType;
focused?: boolean;

View File

@ -4,7 +4,7 @@ import classNames from 'classnames';
export interface SkeletonElementProps {
prefixCls?: string;
className?: string;
style?: object;
style?: React.CSSProperties;
size?: 'large' | 'small' | 'default' | number;
shape?: 'circle' | 'square' | 'round';
active?: boolean;

View File

@ -6,7 +6,7 @@ type widthUnit = number | string;
export interface SkeletonParagraphProps {
prefixCls?: string;
className?: string;
style?: object;
style?: React.CSSProperties;
width?: widthUnit | Array<widthUnit>;
rows?: number;
}

View File

@ -5,7 +5,7 @@ import classNames from 'classnames';
export interface SkeletonTitleProps {
prefixCls?: string;
className?: string;
style?: object;
style?: React.CSSProperties;
width?: number | string;
}