diff --git a/components/button/LoadingIcon.tsx b/components/button/LoadingIcon.tsx index 38a1786fb1..90a915155e 100644 --- a/components/button/LoadingIcon.tsx +++ b/components/button/LoadingIcon.tsx @@ -1,5 +1,4 @@ -import * as React from 'react'; -import classNames from 'classnames'; +import React from 'react'; import CSSMotion from 'rc-motion'; import LoadingOutlined from '@ant-design/icons/LoadingOutlined'; @@ -8,7 +7,6 @@ export interface LoadingIconProps { existIcon: boolean; loading?: boolean | object; } - const getCollapsedWidth = () => ({ width: 0, opacity: 0, transform: 'scale(0)' }); const getRealWidth = (node: HTMLElement) => ({ width: node.scrollWidth, @@ -43,7 +41,7 @@ const LoadingIcon: React.FC = ({ prefixCls, loading, existIcon {({ className, style }: { className?: string; style?: React.CSSProperties }, ref: any) => { return ( - + ); }}