Browse Source

Boolean

pull/11547/head
yoyo837 6 years ago
committed by 偏右
parent
commit
f14e207912
  1. 2
      components/modal/Modal.tsx
  2. 2
      components/modal/confirm.tsx

2
components/modal/Modal.tsx

@ -196,7 +196,7 @@ export default class Modal extends React.Component<ModalProps, {}> {
<Dialog
{...restProps}
prefixCls={prefixCls}
className={classNames({ [`${prefixCls}-centered`]: centered }, className)}
className={classNames({ [`${prefixCls}-centered`]: !!centered }, className)}
footer={footer === undefined ? defaultFooter : footer}
visible={visible}
mousePosition={mousePosition}

2
components/modal/confirm.tsx

@ -33,7 +33,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => {
prefixCls,
`${prefixCls}-${props.type}`,
{
[`${prefixCls}-centered`]: props.centered,
[`${prefixCls}-centered`]: !!props.centered,
},
props.className,
);

Loading…
Cancel
Save