We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64f7cbc commit 9a86d1bCopy full SHA for 9a86d1b
components/modal/Modal.tsx
@@ -14,9 +14,6 @@ import { getComponent, getSlot } from '../_util/props-util';
14
import initDefaultProps from '../_util/props-util/initDefaultProps';
15
import { defaultConfigProvider } from '../config-provider';
16
17
-const ButtonProps = buttonTypes();
18
-const ButtonType = ButtonProps.type;
19
-
20
let mousePosition: { x: number; y: number } | null = null;
21
// ref: https://github.com/ant-design/ant-design/issues/15795
22
const getClickPosition = (e: MouseEvent) => {
@@ -66,7 +63,7 @@ const modalProps = {
66
63
/** 确认按钮文字*/
67
64
okText: PropTypes.any,
68
65
/** 确认按钮类型*/
69
- okType: ButtonType,
+ okType: buttonTypes().type,
70
/** 取消按钮文字*/
71
cancelText: PropTypes.any,
72
icon: PropTypes.any,
0 commit comments