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

20 lines
887 B
JavaScript
Raw Normal View History

2018-01-12 16:10:41 +08:00
import PropTypes from '../_util/vue-types'
2018-01-15 17:33:34 +08:00
export default () => ({
2018-01-12 16:10:41 +08:00
trigger: PropTypes.oneOf(['hover', 'focus', 'click']).def('hover'),
visible: PropTypes.bool,
placement: PropTypes.oneOf(['top', 'left', 'right', 'bottom',
'topLeft', 'topRight', 'bottomLeft', 'bottomRight',
'leftTop', 'leftBottom', 'rightTop', 'rightBottom']).def('top'),
transitionName: PropTypes.string.def('zoom-big-fast'),
// onVisibleChange: PropTypes.func,
overlayStyle: PropTypes.object.def({}),
overlayClassName: PropTypes.string,
prefixCls: PropTypes.string.def('ant-tooltip'),
mouseEnterDelay: PropTypes.number.def(0.1),
mouseLeaveDelay: PropTypes.number.def(0.1),
getTooltipContainer: PropTypes.func,
getPopupContainer: PropTypes.func,
arrowPointAtCenter: PropTypes.bool.def(false),
autoAdjustOverflow: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]).def(true),
2018-01-15 17:33:34 +08:00
})