diff --git a/components/input/ClearableLabeledInput.tsx b/components/input/ClearableLabeledInput.tsx index 43601dda88..b2b1357863 100644 --- a/components/input/ClearableLabeledInput.tsx +++ b/components/input/ClearableLabeledInput.tsx @@ -26,7 +26,7 @@ interface BasicProps { element: React.ReactElement; handleReset: (event: React.MouseEvent) => void; className?: string; - style?: object; + style?: React.CSSProperties; disabled?: boolean; direction?: DirectionType; focused?: boolean; diff --git a/components/skeleton/Element.tsx b/components/skeleton/Element.tsx index 751a6cd7b4..ad943f8068 100644 --- a/components/skeleton/Element.tsx +++ b/components/skeleton/Element.tsx @@ -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; diff --git a/components/skeleton/Paragraph.tsx b/components/skeleton/Paragraph.tsx index 7ba690bc60..dee8ff757f 100644 --- a/components/skeleton/Paragraph.tsx +++ b/components/skeleton/Paragraph.tsx @@ -6,7 +6,7 @@ type widthUnit = number | string; export interface SkeletonParagraphProps { prefixCls?: string; className?: string; - style?: object; + style?: React.CSSProperties; width?: widthUnit | Array; rows?: number; } diff --git a/components/skeleton/Title.tsx b/components/skeleton/Title.tsx index 2e36662c7b..6e7e52a847 100644 --- a/components/skeleton/Title.tsx +++ b/components/skeleton/Title.tsx @@ -5,7 +5,7 @@ import classNames from 'classnames'; export interface SkeletonTitleProps { prefixCls?: string; className?: string; - style?: object; + style?: React.CSSProperties; width?: number | string; }