fix(tabs): the dropdown menu opened automatically in Customized trigger of new tab (#6655)

* fix(tabs):  the dropdown menu opened automatically in Customized trigger of new tab

* fix(tabs): the dropdown menu opened automatically in Customized trigger of new tab
pull/6800/head
zepeng 2023-06-16 14:08:29 +08:00 committed by GitHub
parent c920923a72
commit 7f96399009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -121,6 +121,14 @@ export default defineComponent({
} }
}); });
watch(
() => props.tabs.length,
val => {
if(!val) {
setOpen(false);
}
});
return () => { return () => {
const { const {
prefixCls, prefixCls,