mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
Boolean
This commit is contained in:
parent
45e9b2a937
commit
f14e207912
@ -196,7 +196,7 @@ export default class Modal extends React.Component<ModalProps, {}> {
|
|||||||
<Dialog
|
<Dialog
|
||||||
{...restProps}
|
{...restProps}
|
||||||
prefixCls={prefixCls}
|
prefixCls={prefixCls}
|
||||||
className={classNames({ [`${prefixCls}-centered`]: centered }, className)}
|
className={classNames({ [`${prefixCls}-centered`]: !!centered }, className)}
|
||||||
footer={footer === undefined ? defaultFooter : footer}
|
footer={footer === undefined ? defaultFooter : footer}
|
||||||
visible={visible}
|
visible={visible}
|
||||||
mousePosition={mousePosition}
|
mousePosition={mousePosition}
|
||||||
|
@ -33,7 +33,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => {
|
|||||||
prefixCls,
|
prefixCls,
|
||||||
`${prefixCls}-${props.type}`,
|
`${prefixCls}-${props.type}`,
|
||||||
{
|
{
|
||||||
[`${prefixCls}-centered`]: props.centered,
|
[`${prefixCls}-centered`]: !!props.centered,
|
||||||
},
|
},
|
||||||
props.className,
|
props.className,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user