Skip to content

Commit 7236fc2

Browse files
fix: ModalFuncProps types which can be string text (#4664)
1 parent 27b258c commit 7236fc2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/modal/Modal.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ export interface ModalFuncProps {
9595
prefixCls?: string;
9696
class?: string;
9797
visible?: boolean;
98-
title?: (() => VNodeTypes) | VNodeTypes;
98+
title?: string | (() => VNodeTypes) | VNodeTypes;
9999
closable?: boolean;
100-
content?: (() => VNodeTypes) | VNodeTypes;
100+
content?: string | (() => VNodeTypes) | VNodeTypes;
101101
// TODO: find out exact types
102102
onOk?: (...args: any[]) => any;
103103
onCancel?: (...args: any[]) => any;
104104
okButtonProps?: ButtonPropsType;
105105
cancelButtonProps?: ButtonPropsType;
106106
centered?: boolean;
107107
width?: string | number;
108-
okText?: (() => VNodeTypes) | VNodeTypes;
108+
okText?: string | (() => VNodeTypes) | VNodeTypes;
109109
okType?: LegacyButtonType;
110-
cancelText?: (() => VNodeTypes) | VNodeTypes;
110+
cancelText?: string | (() => VNodeTypes) | VNodeTypes;
111111
icon?: (() => VNodeTypes) | VNodeTypes;
112112
/* Deprecated */
113113
iconType?: string;

0 commit comments

Comments
 (0)