ant-design-vue/components/dropdown/getDropdownProps.ts

27 lines
876 B
TypeScript
Raw Normal View History

import { tuple } from '../_util/type';
import { 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 () => ({
trigger: {
type: Array as PropType<('click' | 'hover' | 'contextMenu')[]>,
default: () => ['hover'],
},
2018-01-29 10:57:20 +00:00
overlay: PropTypes.any,
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,
placement: PropTypes.oneOf(
tuple('topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight'),
),
overlayClassName: PropTypes.string,
overlayStyle: PropTypes.style,
forceRender: PropTypes.looseBool,
mouseEnterDelay: PropTypes.number,
mouseLeaveDelay: PropTypes.number,
2019-04-10 02:09:00 +00:00
openClassName: PropTypes.string,
minOverlayWidthMatchTrigger: PropTypes.looseBool,
2019-01-12 03:33:27 +00:00
});