mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 03:14:07 +08:00
fix(typescript): adjust style type declearation (#28966)
This commit is contained in:
parent
8d5a1fe449
commit
a2b5d47e1a
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ import classNames from 'classnames';
|
||||
export interface SkeletonTitleProps {
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
style?: object;
|
||||
style?: React.CSSProperties;
|
||||
width?: number | string;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user