mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 13:08:48 +08:00
38 lines
1.2 KiB
JavaScript
38 lines
1.2 KiB
JavaScript
import PropTypes from '../_util/vue-types';
|
|
const triggerType = PropTypes.oneOf(['hover', 'focus', 'click', 'contextmenu']);
|
|
export default () => ({
|
|
trigger: PropTypes.oneOfType([triggerType, PropTypes.arrayOf(triggerType)]).def('hover'),
|
|
visible: PropTypes.bool,
|
|
defaultVisible: 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'),
|
|
|
|
overlayStyle: PropTypes.object.def(() => ({})),
|
|
overlayClassName: PropTypes.string,
|
|
prefixCls: PropTypes.string,
|
|
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),
|
|
align: PropTypes.object.def(() => ({})),
|
|
builtinPlacements: PropTypes.object,
|
|
children: PropTypes.any,
|
|
onVisibleChange: PropTypes.func,
|
|
'onUpdate:visible': PropTypes.func,
|
|
});
|