File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ class Modal extends Component {
65
65
animation : 'fade' ,
66
66
size : 'md' ,
67
67
zIndex : 1010 ,
68
- closable : true
68
+ closable : true ,
69
+ mask : true
69
70
} ;
70
71
getDefaultFooter = ( ) => {
71
72
const { onOk, onClose, locale } = this . props ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class RcDialogWrap extends Component {
41
41
}
42
42
43
43
export const ModalWrap = styled ( RcDialogWrap ) (
44
- ( { theme : { designTokens : DT , fontSize } } ) => css `
44
+ ( { theme : { designTokens : DT , fontSize } , mask } ) => css `
45
45
position : fixed;
46
46
overflow : auto;
47
47
top : 0 ;
@@ -51,7 +51,7 @@ export const ModalWrap = styled(RcDialogWrap)(
51
51
z-index : 1010 ;
52
52
-webkit-overflow-scrolling : touch;
53
53
outline : 0 ;
54
- background : ${ DT . T_MODAL_COLOR_LAYER_DEFAULT } ;
54
+ background : ${ mask && DT . T_MODAL_COLOR_LAYER_DEFAULT } ;
55
55
56
56
.${ prefixCls } {
57
57
padding : 0 ;
You can’t perform that action at this time.
0 commit comments