Skip to content

Commit 733af66

Browse files
committed
fix: missing clsNames & add mock file
1 parent 86d6718 commit 733af66

File tree

4 files changed

+458
-427
lines changed

4 files changed

+458
-427
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"dependencies": {
6363
"@babel/runtime": "^7.18.3",
6464
"@rc-component/portal": "^1.1.0",
65-
"classnames": "^2.2.6",
65+
"classnames": "^2.3.2",
6666
"rc-align": "^4.0.0",
6767
"rc-motion": "^2.0.0",
6868
"rc-resize-observer": "^1.3.0",

src/Popup/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Portal from '@rc-component/portal';
21
import classNames from 'classnames';
32
import type { CSSMotionProps } from 'rc-motion';
43
import CSSMotion from 'rc-motion';
@@ -45,6 +44,7 @@ export interface PopupProps {
4544
forceRender?: boolean;
4645
getPopupContainer?: TriggerProps['getPopupContainer'];
4746
autoDestroy?: boolean;
47+
portal: React.ComponentType<any>;
4848

4949
// Align
5050
ready: boolean;
@@ -93,6 +93,7 @@ const Popup = React.forwardRef<HTMLDivElement, PopupProps>((props, ref) => {
9393
forceRender,
9494
getPopupContainer,
9595
autoDestroy,
96+
portal: Portal,
9697

9798
zIndex,
9899

0 commit comments

Comments
 (0)