fix: dropdown component auto-destruction issue (#6021)

#### What type of PR is this?

/area ui
/kind bug
/milestone 2.16.x

#### What this PR does / why we need it:

修复 Dropdown 组件自动销毁的问题,这可能导致部分插件在 Dropdown 中的组件无法正常渲染。

#### Does this PR introduce a user-facing change?

```release-note
None 
```
pull/6009/head
Ryan Wang 2024-05-30 16:29:15 +08:00 committed by GitHub
parent 9f6a441288
commit 296d8c5833
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -41,11 +41,12 @@ defineExpose({
</script>
<template>
<!-- @vue-ignore -->
<FloatingDropdown
ref="dropdownRef"
:placement="placement"
:triggers="triggers"
:dispose-timeout="0"
:dispose-timeout="null"
@show="emit('show')"
>
<slot />