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; element: React.ReactElement;
handleReset: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void; handleReset: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
className?: string; className?: string;
style?: object; style?: React.CSSProperties;
disabled?: boolean; disabled?: boolean;
direction?: DirectionType; direction?: DirectionType;
focused?: boolean; focused?: boolean;

View File

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

View File

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

View File

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