11import React from 'react' ;
2- import classNames from 'classnames' ;
32
43interface PopupInnerProps {
54 prefixCls : string ;
65 className : string ;
7- hiddenClassName ?: string ;
8- visible ?: boolean ;
96 style ?: React . CSSProperties ;
107 children ?: React . ReactNode ;
118
@@ -15,11 +12,13 @@ interface PopupInnerProps {
1512 onTouchStart ?: React . TouchEventHandler < HTMLDivElement > ;
1613}
1714
18- const PopupInner : React . RefForwardingComponent < HTMLDivElement , PopupInnerProps > = ( props , ref ) => {
15+ const PopupInner : React . RefForwardingComponent <
16+ HTMLDivElement ,
17+ PopupInnerProps
18+ > = ( props , ref ) => {
1919 const {
2020 prefixCls,
2121 className,
22- visible,
2322 style,
2423 children,
2524 onMouseEnter,
@@ -37,7 +36,7 @@ const PopupInner: React.RefForwardingComponent<HTMLDivElement, PopupInnerProps>
3736 return (
3837 < div
3938 ref = { ref }
40- className = { classNames ( className , ! visible && ` ${ props . hiddenClassName } ` ) }
39+ className = { className }
4140 onMouseEnter = { onMouseEnter }
4241 onMouseLeave = { onMouseLeave }
4342 onMouseDown = { onMouseDown }
@@ -49,7 +48,9 @@ const PopupInner: React.RefForwardingComponent<HTMLDivElement, PopupInnerProps>
4948 ) ;
5049} ;
5150
52- const RefPopupInner = React . forwardRef < HTMLDivElement , PopupInnerProps > ( PopupInner ) ;
51+ const RefPopupInner = React . forwardRef < HTMLDivElement , PopupInnerProps > (
52+ PopupInner ,
53+ ) ;
5354RefPopupInner . displayName = 'PopupInner' ;
5455
5556export default RefPopupInner ;
0 commit comments