fix(Modal): type-definition error (#4632)

pull/4637/head
叡山电车 3 years ago committed by GitHub
parent d2b72143f0
commit a4d907a1bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,9 +95,9 @@ export interface ModalFuncProps {
prefixCls?: string;
class?: string;
visible?: boolean;
title?: () => VNodeTypes | VNodeTypes;
title?: (() => VNodeTypes) | VNodeTypes;
closable?: boolean;
content?: () => VNodeTypes | VNodeTypes;
content?: (() => VNodeTypes) | VNodeTypes;
// TODO: find out exact types
onOk?: (...args: any[]) => any;
onCancel?: (...args: any[]) => any;
@ -105,10 +105,10 @@ export interface ModalFuncProps {
cancelButtonProps?: ButtonPropsType;
centered?: boolean;
width?: string | number;
okText?: () => VNodeTypes | VNodeTypes;
okText?: (() => VNodeTypes) | VNodeTypes;
okType?: LegacyButtonType;
cancelText?: () => VNodeTypes | VNodeTypes;
icon?: () => VNodeTypes | VNodeTypes;
cancelText?: (() => VNodeTypes) | VNodeTypes;
icon?: (() => VNodeTypes) | VNodeTypes;
/* Deprecated */
iconType?: string;
mask?: boolean;

Loading…
Cancel
Save