mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 19:39:51 +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;
|
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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user