From a2b5d47e1a10a91999295c5015578211547e26cd Mon Sep 17 00:00:00 2001 From: Pengsha Ying <810998652@qq.com> Date: Thu, 21 Jan 2021 17:16:51 +0800 Subject: [PATCH] fix(typescript): adjust style type declearation (#28966) --- components/input/ClearableLabeledInput.tsx | 2 +- components/skeleton/Element.tsx | 2 +- components/skeleton/Paragraph.tsx | 2 +- components/skeleton/Title.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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; }