fix: modal.confirm closable invalid #3844 (#3845)

pull/3866/head
zkwolf 4 years ago committed by GitHub
parent e30077dd83
commit 73c71e19a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,6 +16,7 @@ const ConfirmDialog: FunctionalComponent<ConfirmDialogProps> = props => {
onCancel,
onOk,
close,
closable = false,
zIndex,
afterClose,
visible,
@ -83,6 +84,7 @@ const ConfirmDialog: FunctionalComponent<ConfirmDialogProps> = props => {
keyboard={keyboard}
centered={centered}
getContainer={getContainer}
closable={closable}
>
<div class={`${contentPrefixCls}-body-wrapper`}>
<div class={`${contentPrefixCls}-body`}>

@ -102,6 +102,7 @@ export interface ModalFuncProps {
class?: string;
visible?: boolean;
title?: VNodeTypes;
closable?: boolean;
content?: VNodeTypes;
// TODO: find out exact types
onOk?: (...args: any[]) => any;

Loading…
Cancel
Save