Skip to content

Commit 2531be5

Browse files
committed
fix: deps
1 parent e8c7dd7 commit 2531be5

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ open http://localhost:8000
3535
import Portal from 'rc-portal';
3636

3737
const Demo = () => {
38-
return (
39-
<Portal open>
40-
Hello World
41-
</Portal>
42-
);
38+
return <Portal open>Hello World</Portal>;
4339
};
4440

4541
export default Demo;
@@ -51,6 +47,6 @@ We use typescript to create the Type definition. You can view directly in IDE. B
5147

5248
### Portal
5349

54-
| Prop | Description | Type | Default |
55-
| ---------------- | -------------------------------------------------- | -------------------------------------------- | ---------------- |
56-
| component | Customize Form render component | string \| Component \| false | form |
50+
| Prop | Description | Type | Default |
51+
| --------- | ------------------------------- | ---------------------------- | ------- |
52+
| component | Customize Form render component | string \| Component \| false | form |

src/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Portal from './Portal';
2+
3+
export default Portal;

src/useDom.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import useLayoutEffect from '../../hooks/useLayoutEffect';
2+
import useLayoutEffect from 'rc-util/lib/hooks/useLayoutEffect';
33
import OrderContext from './Context';
44
import type { QueueCreate } from './Context';
55

src/useScrollLocker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
2-
import { updateCSS, removeCSS } from '../../Dom/dynamicCSS';
3-
import getScrollBarSize from '../../getScrollBarSize';
2+
import { updateCSS, removeCSS } from 'rc-util/lib/Dom/dynamicCSS';
3+
import getScrollBarSize from 'rc-util/lib/getScrollBarSize';
44

55
let lockCount = 0;
66
let locked = false;

0 commit comments

Comments
 (0)