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

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

Loading…
Cancel
Save