2019-01-12 11:33:27 +08:00
|
|
|
import PropTypes from '../_util/vue-types';
|
|
|
|
const triggerType = PropTypes.oneOf(['hover', 'focus', 'click', 'contextmenu']);
|
2018-01-15 17:33:34 +08:00
|
|
|
export default () => ({
|
2018-02-28 19:07:04 +08:00
|
|
|
trigger: PropTypes.oneOfType([triggerType, PropTypes.arrayOf(triggerType)]).def('hover'),
|
2018-01-12 16:10:41 +08:00
|
|
|
visible: PropTypes.bool,
|
2018-12-10 21:44:14 +08:00
|
|
|
defaultVisible: PropTypes.bool,
|
2019-01-12 11:33:27 +08:00
|
|
|
placement: PropTypes.oneOf([
|
|
|
|
'top',
|
|
|
|
'left',
|
|
|
|
'right',
|
|
|
|
'bottom',
|
|
|
|
'topLeft',
|
|
|
|
'topRight',
|
|
|
|
'bottomLeft',
|
|
|
|
'bottomRight',
|
|
|
|
'leftTop',
|
|
|
|
'leftBottom',
|
|
|
|
'rightTop',
|
|
|
|
'rightBottom',
|
|
|
|
]).def('top'),
|
2018-01-12 16:10:41 +08:00
|
|
|
transitionName: PropTypes.string.def('zoom-big-fast'),
|
|
|
|
// onVisibleChange: PropTypes.func,
|
2020-03-07 19:45:13 +08:00
|
|
|
overlayStyle: PropTypes.object.def(() => ({})),
|
2018-01-12 16:10:41 +08:00
|
|
|
overlayClassName: PropTypes.string,
|
2019-04-10 10:14:12 +08:00
|
|
|
prefixCls: PropTypes.string,
|
2018-01-12 16:10:41 +08:00
|
|
|
mouseEnterDelay: PropTypes.number.def(0.1),
|
|
|
|
mouseLeaveDelay: PropTypes.number.def(0.1),
|
|
|
|
getPopupContainer: PropTypes.func,
|
|
|
|
arrowPointAtCenter: PropTypes.bool.def(false),
|
|
|
|
autoAdjustOverflow: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]).def(true),
|
2019-04-24 23:52:43 +08:00
|
|
|
destroyTooltipOnHide: PropTypes.bool.def(false),
|
2020-03-07 19:45:13 +08:00
|
|
|
align: PropTypes.object.def(() => ({})),
|
2019-07-29 22:43:03 +08:00
|
|
|
builtinPlacements: PropTypes.object,
|
2019-01-12 11:33:27 +08:00
|
|
|
});
|