File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ const Dialog: React.FC<IDialogPropTypes> = (props) => {
41
41
maskStyle,
42
42
maskProps,
43
43
rootClassName,
44
+ rootStyle,
44
45
classNames : modalClassNames ,
45
46
styles : modalStyles ,
46
47
} = props ;
@@ -175,6 +176,7 @@ const Dialog: React.FC<IDialogPropTypes> = (props) => {
175
176
return (
176
177
< div
177
178
className = { classNames ( `${ prefixCls } -root` , rootClassName ) }
179
+ style = { rootStyle }
178
180
{ ...pickAttrs ( props , { data : true } ) }
179
181
>
180
182
< Mask
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export type IDialogPropTypes = {
11
11
className ?: string ;
12
12
keyboard ?: boolean ;
13
13
style ?: CSSProperties ;
14
+ rootStyle ?: CSSProperties ;
14
15
mask ?: boolean ;
15
16
children ?: React . ReactNode ;
16
17
afterClose ?: ( ) => any ;
You can’t perform that action at this time.
0 commit comments