mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-01 11:38:36 +08:00
29 lines
926 B
TypeScript
29 lines
926 B
TypeScript
import { tuple } from '../_util/type';
|
|
import { PropType } from 'vue';
|
|
import PropTypes from '../_util/vue-types';
|
|
export default () => ({
|
|
trigger: {
|
|
type: [Array, String] as PropType<
|
|
('click' | 'hover' | 'contextmenu')[] | 'click' | 'hover' | 'contextmenu'
|
|
>,
|
|
default: 'hover',
|
|
},
|
|
overlay: PropTypes.any,
|
|
visible: PropTypes.looseBool,
|
|
disabled: PropTypes.looseBool,
|
|
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,
|
|
openClassName: PropTypes.string,
|
|
minOverlayWidthMatchTrigger: PropTypes.looseBool,
|
|
});
|