|
|
|
@ -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,
|
|
|
|
|