ant-design-vue/components/vc-dialog/IDialogPropTypes.js

44 lines
1.3 KiB
JavaScript
Raw Normal View History

2019-01-12 11:33:27 +08:00
import PropTypes from '../_util/vue-types';
2018-03-05 19:05:23 +08:00
2019-01-12 11:33:27 +08:00
function IDialogPropTypes() {
2018-03-05 19:05:23 +08:00
return {
keyboard: PropTypes.bool,
mask: PropTypes.bool,
afterClose: PropTypes.func,
// onClose: PropTypes. (e: SyntheticEvent<HTMLDivElement>) =>any,
closable: PropTypes.bool,
maskClosable: PropTypes.bool,
visible: PropTypes.bool,
destroyOnClose: PropTypes.bool,
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 19:14:41 +08:00
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
2018-03-05 19:05:23 +08:00
zIndex: PropTypes.number,
bodyProps: PropTypes.any,
maskProps: PropTypes.any,
wrapProps: PropTypes.any,
2019-08-29 22:50:53 +08:00
getContainer: PropTypes.any,
2018-03-06 19:14:41 +08:00
dialogStyle: PropTypes.object.def({}),
dialogClass: PropTypes.object.def({}),
closeIcon: PropTypes.any,
2019-08-29 22:50:53 +08:00
forceRender: PropTypes.bool,
getOpenCount: PropTypes.func,
2019-01-12 11:33:27 +08:00
};
2018-03-05 19:05:23 +08:00
}
2019-01-12 11:33:27 +08:00
export default IDialogPropTypes;