2019-01-12 11:33:27 +08:00
|
|
|
import PropTypes from '../_util/vue-types';
|
2020-10-18 22:14:39 +08:00
|
|
|
import { tuple } from '../_util/type';
|
|
|
|
const triggerType = PropTypes.oneOf(tuple('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'),
|
2020-10-10 18:16:28 +08:00
|
|
|
visible: PropTypes.looseBool,
|
|
|
|
defaultVisible: PropTypes.looseBool,
|
2020-10-18 22:14:39 +08:00
|
|
|
placement: PropTypes.oneOf(
|
|
|
|
tuple(
|
|
|
|
'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'),
|
2020-03-07 19:45:13 +08:00
|
|
|
overlayStyle: PropTypes.object.def(() => ({})),
|
2018-01-12 16:10:41 +08:00
|
|
|
overlayClassName: PropTypes.string,
|
2020-10-18 22:14:39 +08:00
|
|
|
openClassName: 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,
|
2020-10-10 18:16:28 +08:00
|
|
|
arrowPointAtCenter: PropTypes.looseBool.def(false),
|
|
|
|
autoAdjustOverflow: PropTypes.oneOfType([PropTypes.looseBool, PropTypes.object]).def(true),
|
|
|
|
destroyTooltipOnHide: PropTypes.looseBool.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,
|
2020-10-19 16:43:10 +08:00
|
|
|
children: PropTypes.array,
|
2020-08-04 18:13:51 +08:00
|
|
|
onVisibleChange: PropTypes.func,
|
2020-10-26 18:31:50 +08:00
|
|
|
'onUpdate:visible': PropTypes.func,
|
2019-01-12 11:33:27 +08:00
|
|
|
});
|