|
|
|
@ -10,6 +10,7 @@ import RightOutlined from '@ant-design/icons-vue/RightOutlined';
|
|
|
|
|
import useConfigInject from '../_util/hooks/useConfigInject';
|
|
|
|
|
import devWarning from '../vc-util/devWarning';
|
|
|
|
|
import omit from '../_util/omit';
|
|
|
|
|
import getPlacements from '../tooltip/placements';
|
|
|
|
|
|
|
|
|
|
export type DropdownProps = Partial<ExtractPropTypes<ReturnType<typeof dropdownProps>>>;
|
|
|
|
|
|
|
|
|
@ -121,10 +122,15 @@ const Dropdown = defineComponent({
|
|
|
|
|
if (triggerActions && triggerActions.indexOf('contextmenu') !== -1) {
|
|
|
|
|
alignPoint = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const builtinPlacements = getPlacements({
|
|
|
|
|
arrowPointAtCenter: typeof arrow === 'object' && arrow.pointAtCenter,
|
|
|
|
|
});
|
|
|
|
|
const dropdownProps = omit(
|
|
|
|
|
{
|
|
|
|
|
...props,
|
|
|
|
|
...attrs,
|
|
|
|
|
builtinPlacements,
|
|
|
|
|
overlayClassName: overlayClassNameCustomized,
|
|
|
|
|
arrow,
|
|
|
|
|
alignPoint,
|
|
|
|
|