Skip to content

Commit 9a86d1b

Browse files
committed
style: update modal.tsx
1 parent 64f7cbc commit 9a86d1b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/modal/Modal.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ import { getComponent, getSlot } from '../_util/props-util';
1414
import initDefaultProps from '../_util/props-util/initDefaultProps';
1515
import { defaultConfigProvider } from '../config-provider';
1616

17-
const ButtonProps = buttonTypes();
18-
const ButtonType = ButtonProps.type;
19-
2017
let mousePosition: { x: number; y: number } | null = null;
2118
// ref: https://github.com/ant-design/ant-design/issues/15795
2219
const getClickPosition = (e: MouseEvent) => {
@@ -66,7 +63,7 @@ const modalProps = {
6663
/** 确认按钮文字*/
6764
okText: PropTypes.any,
6865
/** 确认按钮类型*/
69-
okType: ButtonType,
66+
okType: buttonTypes().type,
7067
/** 取消按钮文字*/
7168
cancelText: PropTypes.any,
7269
icon: PropTypes.any,

0 commit comments

Comments
 (0)