mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 02:57:50 +08:00
fix(dropdown): open invalid (#6316)
This commit is contained in:
parent
9c6a9fb47c
commit
dd063b8275
@ -139,6 +139,10 @@ const Dropdown = defineComponent({
|
||||
return placement;
|
||||
});
|
||||
|
||||
const mergedVisible = computed(() => {
|
||||
return typeof props.visible === 'boolean' ? props.visible : props.open;
|
||||
});
|
||||
|
||||
const handleVisibleChange = (val: boolean) => {
|
||||
emit('update:visible', val);
|
||||
emit('visibleChange', val);
|
||||
@ -183,6 +187,7 @@ const Dropdown = defineComponent({
|
||||
{
|
||||
...props,
|
||||
...attrs,
|
||||
visible: mergedVisible.value,
|
||||
builtinPlacements,
|
||||
overlayClassName: overlayClassNameCustomized,
|
||||
arrow: !!arrow,
|
||||
|
Loading…
Reference in New Issue
Block a user