fix: modal add dialogStyle dialogClass #2285
parent
ffc002f094
commit
1410dee61f
|
@ -1 +1 @@
|
|||
Subproject commit aba05e5d5f91583c536f44e95df5b9dbeb8482fe
|
||||
Subproject commit f3b049411f17e556d8795f40d41bfadb471ae630
|
|
@ -218,8 +218,10 @@ export default {
|
|||
visible,
|
||||
bodyProps,
|
||||
forceRender,
|
||||
dialogStyle,
|
||||
dialogClass,
|
||||
} = this;
|
||||
const dest = {};
|
||||
const dest = { ...dialogStyle };
|
||||
if (width !== undefined) {
|
||||
dest.width = typeof width === 'number' ? `${width}px` : width;
|
||||
}
|
||||
|
@ -276,7 +278,7 @@ export default {
|
|||
role="document"
|
||||
ref="dialog"
|
||||
style={style}
|
||||
class={cls}
|
||||
class={[cls, dialogClass]}
|
||||
forceRender={forceRender}
|
||||
onMousedown={this.onDialogMouseDown}
|
||||
>
|
||||
|
|
|
@ -33,7 +33,7 @@ function IDialogPropTypes() {
|
|||
wrapProps: PropTypes.any,
|
||||
getContainer: PropTypes.any,
|
||||
dialogStyle: PropTypes.object.def(() => ({})),
|
||||
dialogClass: PropTypes.object.def(() => ({})),
|
||||
dialogClass: PropTypes.object.def(''),
|
||||
closeIcon: PropTypes.any,
|
||||
forceRender: PropTypes.bool,
|
||||
getOpenCount: PropTypes.func,
|
||||
|
|
Loading…
Reference in New Issue