From 9a86d1b54d4d1ccee59f433be36ef4db2fde178e Mon Sep 17 00:00:00 2001
From: tangjinzhou <415800467@qq.com>
Date: Tue, 29 Jun 2021 14:58:20 +0800
Subject: [PATCH] style: update modal.tsx

---
 components/modal/Modal.tsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx
index bd5e0e730..75d9a3712 100644
--- a/components/modal/Modal.tsx
+++ b/components/modal/Modal.tsx
@@ -14,9 +14,6 @@ import { getComponent, getSlot } from '../_util/props-util';
 import initDefaultProps from '../_util/props-util/initDefaultProps';
 import { defaultConfigProvider } from '../config-provider';
 
-const ButtonProps = buttonTypes();
-const ButtonType = ButtonProps.type;
-
 let mousePosition: { x: number; y: number } | null = null;
 // ref: https://github.com/ant-design/ant-design/issues/15795
 const getClickPosition = (e: MouseEvent) => {
@@ -66,7 +63,7 @@ const modalProps = {
   /** 确认按钮文字*/
   okText: PropTypes.any,
   /** 确认按钮类型*/
-  okType: ButtonType,
+  okType: buttonTypes().type,
   /** 取消按钮文字*/
   cancelText: PropTypes.any,
   icon: PropTypes.any,