1
1
import React from 'react' ;
2
- import classNames from 'classnames' ;
3
2
4
3
interface PopupInnerProps {
5
4
prefixCls : string ;
6
5
className : string ;
7
- hiddenClassName ?: string ;
8
- visible ?: boolean ;
9
6
style ?: React . CSSProperties ;
10
7
children ?: React . ReactNode ;
11
8
@@ -15,11 +12,13 @@ interface PopupInnerProps {
15
12
onTouchStart ?: React . TouchEventHandler < HTMLDivElement > ;
16
13
}
17
14
18
- const PopupInner : React . RefForwardingComponent < HTMLDivElement , PopupInnerProps > = ( props , ref ) => {
15
+ const PopupInner : React . RefForwardingComponent <
16
+ HTMLDivElement ,
17
+ PopupInnerProps
18
+ > = ( props , ref ) => {
19
19
const {
20
20
prefixCls,
21
21
className,
22
- visible,
23
22
style,
24
23
children,
25
24
onMouseEnter,
@@ -37,7 +36,7 @@ const PopupInner: React.RefForwardingComponent<HTMLDivElement, PopupInnerProps>
37
36
return (
38
37
< div
39
38
ref = { ref }
40
- className = { classNames ( className , ! visible && ` ${ props . hiddenClassName } ` ) }
39
+ className = { className }
41
40
onMouseEnter = { onMouseEnter }
42
41
onMouseLeave = { onMouseLeave }
43
42
onMouseDown = { onMouseDown }
@@ -49,7 +48,9 @@ const PopupInner: React.RefForwardingComponent<HTMLDivElement, PopupInnerProps>
49
48
) ;
50
49
} ;
51
50
52
- const RefPopupInner = React . forwardRef < HTMLDivElement , PopupInnerProps > ( PopupInner ) ;
51
+ const RefPopupInner = React . forwardRef < HTMLDivElement , PopupInnerProps > (
52
+ PopupInner ,
53
+ ) ;
53
54
RefPopupInner . displayName = 'PopupInner' ;
54
55
55
56
export default RefPopupInner ;
0 commit comments