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

29 lines
931 B
TypeScript
Raw Normal View History

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 () => ({
trigger: {
type: [Array, String] as PropType<
('click' | 'hover' | 'contextmenu')[] | '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
});