File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,12 @@ class DialogQueue extends React.Component {
17
17
'hide' : ! isFirstDialog
18
18
} ;
19
19
20
- console . log ( animateClass ) ;
21
-
22
20
if ( animateClass ) {
23
21
styleConfig [ animateClass . enter ] = ! dialog . hide ;
24
22
styleConfig [ animateClass . leave ] = dialog . hide ;
25
23
}
26
24
27
25
const dialogStyle = classNames ( 'dialog' , styleConfig ) ;
28
- console . log ( dialogStyle )
29
26
return React . createElement ( dialog . cmpt , {
30
27
key : dialog . name ,
31
28
$className : dialogStyle ,
@@ -36,11 +33,14 @@ class DialogQueue extends React.Component {
36
33
} ;
37
34
38
35
render ( ) {
36
+ const isShow = this . props . dialog . stack . length > 0 ;
39
37
const queueStyle = classNames ( {
40
38
'dialog-queue' : true ,
41
- 'show' : this . props . dialog . stack . length > 0
39
+ 'show' : isShow
42
40
} ) ;
43
41
42
+ document . body . style . overflow = isShow ? 'hidden' : '' ;
43
+
44
44
return (
45
45
< div className = { queueStyle } >
46
46
{ this . generate ( this . props . dialog . stack ) }
Original file line number Diff line number Diff line change 1
1
.dialog-queue {
2
- position : absolute ;
2
+ position : fixed ;
3
+ overflow : auto ;
3
4
top : 0 ;
4
5
right : 0 ;
5
6
bottom : 0 ;
24
25
& .hide {
25
26
display : none ;
26
27
}
27
- }
28
+ }
You can’t perform that action at this time.
0 commit comments