fix: ModalFuncProps types which can be string text (#4664)

pull/4667/head
沈青川 2021-09-17 16:13:26 +08:00 committed by GitHub
parent 27b258c29b
commit 7236fc253b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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