2020-10-15 09:58:05 +00:00
|
|
|
import { tuple } from '../_util/type';
|
2021-06-26 01:35:40 +00:00
|
|
|
import type { PropType } from 'vue';
|
2019-01-12 03:33:27 +00:00
|
|
|
import PropTypes from '../_util/vue-types';
|
2018-01-29 10:57:20 +00:00
|
|
|
export default () => ({
|
2020-10-15 09:58:05 +00:00
|
|
|
trigger: {
|
2021-06-11 13:14:16 +00:00
|
|
|
type: [Array, String] as PropType<
|
|
|
|
('click' | 'hover' | 'contextmenu')[] | 'click' | 'hover' | 'contextmenu'
|
|
|
|
>,
|
|
|
|
default: 'hover',
|
2020-10-15 09:58:05 +00:00
|
|
|
},
|
2018-01-29 10:57:20 +00:00
|
|
|
overlay: PropTypes.any,
|
2020-10-10 10:16:28 +00:00
|
|
|
visible: PropTypes.looseBool,
|
|
|
|
disabled: PropTypes.looseBool,
|
2018-01-29 10:57:20 +00:00
|
|
|
align: PropTypes.object,
|
|
|
|
getPopupContainer: PropTypes.func,
|
|
|
|
prefixCls: PropTypes.string,
|
|
|
|
transitionName: PropTypes.string,
|
2020-10-15 09:58:05 +00:00
|
|
|
placement: PropTypes.oneOf(
|
|
|
|
tuple('topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight'),
|
|
|
|
),
|
2019-01-02 12:33:06 +00:00
|
|
|
overlayClassName: PropTypes.string,
|
2020-10-15 09:58:05 +00:00
|
|
|
overlayStyle: PropTypes.style,
|
2020-10-10 10:16:28 +00:00
|
|
|
forceRender: PropTypes.looseBool,
|
2019-01-02 12:33:06 +00:00
|
|
|
mouseEnterDelay: PropTypes.number,
|
|
|
|
mouseLeaveDelay: PropTypes.number,
|
2019-04-10 02:09:00 +00:00
|
|
|
openClassName: PropTypes.string,
|
2020-10-10 10:16:28 +00:00
|
|
|
minOverlayWidthMatchTrigger: PropTypes.looseBool,
|
2019-01-12 03:33:27 +00:00
|
|
|
});
|