2019-01-12 03:33:27 +00:00
|
|
|
import PropTypes from '../_util/vue-types';
|
2020-10-18 14:14:39 +00:00
|
|
|
import { tuple } from '../_util/type';
|
|
|
|
const triggerType = PropTypes.oneOf(tuple('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'),
|
2020-10-10 10:16:28 +00:00
|
|
|
visible: PropTypes.looseBool,
|
|
|
|
defaultVisible: PropTypes.looseBool,
|
2020-10-18 14:14:39 +00:00
|
|
|
placement: PropTypes.oneOf(
|
|
|
|
tuple(
|
|
|
|
'top',
|
|
|
|
'left',
|
|
|
|
'right',
|
|
|
|
'bottom',
|
|
|
|
'topLeft',
|
|
|
|
'topRight',
|
|
|
|
'bottomLeft',
|
|
|
|
'bottomRight',
|
|
|
|
'leftTop',
|
|
|
|
'leftBottom',
|
|
|
|
'rightTop',
|
|
|
|
'rightBottom',
|
|
|
|
),
|
|
|
|
).def('top'),
|
2021-01-27 15:21:48 +00:00
|
|
|
color: PropTypes.string,
|
2018-01-12 08:10:41 +00:00
|
|
|
transitionName: PropTypes.string.def('zoom-big-fast'),
|
2020-03-07 11:45:13 +00:00
|
|
|
overlayStyle: PropTypes.object.def(() => ({})),
|
2018-01-12 08:10:41 +00:00
|
|
|
overlayClassName: PropTypes.string,
|
2020-10-18 14:14:39 +00:00
|
|
|
openClassName: 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,
|
2020-10-10 10:16:28 +00:00
|
|
|
arrowPointAtCenter: PropTypes.looseBool.def(false),
|
|
|
|
autoAdjustOverflow: PropTypes.oneOfType([PropTypes.looseBool, PropTypes.object]).def(true),
|
|
|
|
destroyTooltipOnHide: PropTypes.looseBool.def(false),
|
2020-03-07 11:45:13 +00:00
|
|
|
align: PropTypes.object.def(() => ({})),
|
2019-07-29 14:43:03 +00:00
|
|
|
builtinPlacements: PropTypes.object,
|
2020-10-19 08:43:10 +00:00
|
|
|
children: PropTypes.array,
|
2020-08-04 10:13:51 +00:00
|
|
|
onVisibleChange: PropTypes.func,
|
2020-10-26 10:31:50 +00:00
|
|
|
'onUpdate:visible': PropTypes.func,
|
2019-01-12 03:33:27 +00:00
|
|
|
});
|