2019-01-12 03:33:27 +00:00
|
|
|
import PropTypes from '../_util/vue-types';
|
2018-03-05 11:05:23 +00:00
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
function IDialogPropTypes() {
|
2018-03-05 11:05:23 +00:00
|
|
|
return {
|
2020-10-10 10:16:28 +00:00
|
|
|
keyboard: PropTypes.looseBool,
|
|
|
|
mask: PropTypes.looseBool,
|
2018-03-05 11:05:23 +00:00
|
|
|
afterClose: PropTypes.func,
|
|
|
|
// onClose: PropTypes. (e: SyntheticEvent<HTMLDivElement>) =>any,
|
2020-10-10 10:16:28 +00:00
|
|
|
closable: PropTypes.looseBool,
|
|
|
|
maskClosable: PropTypes.looseBool,
|
|
|
|
visible: PropTypes.looseBool,
|
|
|
|
destroyOnClose: PropTypes.looseBool,
|
2018-03-05 11:05:23 +00:00
|
|
|
mousePosition: PropTypes.shape({
|
|
|
|
x: PropTypes.number,
|
|
|
|
y: PropTypes.number,
|
|
|
|
}).loose,
|
|
|
|
title: PropTypes.any,
|
|
|
|
footer: PropTypes.any,
|
|
|
|
transitionName: PropTypes.string,
|
|
|
|
maskTransitionName: PropTypes.string,
|
|
|
|
animation: PropTypes.any,
|
|
|
|
maskAnimation: PropTypes.any,
|
|
|
|
wrapStyle: PropTypes.object,
|
|
|
|
bodyStyle: PropTypes.object,
|
|
|
|
maskStyle: PropTypes.object,
|
|
|
|
prefixCls: PropTypes.string,
|
|
|
|
wrapClassName: PropTypes.string,
|
2018-03-06 11:14:41 +00:00
|
|
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
|
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
2018-03-05 11:05:23 +00:00
|
|
|
zIndex: PropTypes.number,
|
|
|
|
bodyProps: PropTypes.any,
|
|
|
|
maskProps: PropTypes.any,
|
|
|
|
wrapProps: PropTypes.any,
|
2019-08-29 14:50:53 +00:00
|
|
|
getContainer: PropTypes.any,
|
2020-03-07 11:45:13 +00:00
|
|
|
dialogStyle: PropTypes.object.def(() => ({})),
|
2020-05-26 07:18:34 +00:00
|
|
|
dialogClass: PropTypes.string.def(''),
|
2018-10-29 12:49:38 +00:00
|
|
|
closeIcon: PropTypes.any,
|
2020-10-10 10:16:28 +00:00
|
|
|
forceRender: PropTypes.looseBool,
|
2019-08-29 14:50:53 +00:00
|
|
|
getOpenCount: PropTypes.func,
|
2019-12-09 14:23:40 +00:00
|
|
|
// https://github.com/ant-design/ant-design/issues/19771
|
|
|
|
// https://github.com/react-component/dialog/issues/95
|
2020-10-10 10:16:28 +00:00
|
|
|
focusTriggerAfterClose: PropTypes.looseBool,
|
2020-06-15 10:55:12 +00:00
|
|
|
onClose: PropTypes.func,
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|
2018-03-05 11:05:23 +00:00
|
|
|
}
|
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
export default IDialogPropTypes;
|