ant-design-vue/components/tooltip/abstractTooltipProps.js

35 lines
1.1 KiB
JavaScript
Raw Normal View History

2019-01-12 03:33:27 +00:00
import PropTypes from '../_util/vue-types';
const triggerType = PropTypes.oneOf(['hover', 'focus', 'click', 'contextmenu']);
2018-01-15 09:33:34 +00:00
export default () => ({
2018-02-28 11:07:04 +00:00
trigger: PropTypes.oneOfType([triggerType, PropTypes.arrayOf(triggerType)]).def('hover'),
2018-01-12 08:10:41 +00:00
visible: PropTypes.bool,
2018-12-10 13:44:14 +00:00
defaultVisible: PropTypes.bool,
2019-01-12 03:33:27 +00:00
placement: PropTypes.oneOf([
'top',
'left',
'right',
'bottom',
'topLeft',
'topRight',
'bottomLeft',
'bottomRight',
'leftTop',
'leftBottom',
'rightTop',
'rightBottom',
]).def('top'),
2018-01-12 08:10:41 +00:00
transitionName: PropTypes.string.def('zoom-big-fast'),
// onVisibleChange: PropTypes.func,
overlayStyle: PropTypes.object.def({}),
overlayClassName: PropTypes.string,
2019-04-10 02:14:12 +00:00
prefixCls: PropTypes.string,
2018-01-12 08:10:41 +00: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),
destroyTooltipOnHide: PropTypes.bool.def(false),
2018-11-10 14:35:03 +00:00
align: PropTypes.object.def({}),
builtinPlacements: PropTypes.object,
2019-01-12 03:33:27 +00:00
});