@@ -3,18 +3,19 @@ import { useRef, useEffect } from 'react';
33import classNames from 'classnames' ;
44import KeyCode from 'rc-util/lib/KeyCode' ;
55import contains from 'rc-util/lib/Dom/contains' ;
6- import ScollLocker from 'rc-util/lib/Dom/scrollLocker' ;
7- import { IDialogPropTypes } from '../IDialogPropTypes' ;
6+ import type ScollLocker from 'rc-util/lib/Dom/scrollLocker' ;
7+ import type { IDialogPropTypes } from '../IDialogPropTypes' ;
88import Mask from './Mask' ;
99import { getMotionName , getUUID } from '../util' ;
10- import Content , { ContentRef } from './Content' ;
10+ import type { ContentRef } from './Content' ;
11+ import Content from './Content' ;
1112
12- export interface IDialogChildProps extends IDialogPropTypes {
13+ export type IDialogChildProps = {
1314 // zombieJ: This should be handle on top instead of each Dialog.
1415 // TODO: refactor to remove this.
1516 getOpenCount : ( ) => number ;
1617 scrollLocker ?: ScollLocker ;
17- }
18+ } & IDialogPropTypes
1819
1920export default function Dialog ( props : IDialogChildProps ) {
2021 const {
@@ -154,7 +155,7 @@ export default function Dialog(props: IDialogChildProps) {
154155 return scrollLocker ?. unLock ;
155156 }
156157 return ( ) => { } ;
157- } , [ animatedVisible ] ) ;
158+ } , [ animatedVisible , scrollLocker ] ) ;
158159
159160 // ========================= Render =========================
160161 return (
0 commit comments