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 tabpull/6800/head
parent
c920923a72
commit
7f96399009
|
@ -121,6 +121,14 @@ export default defineComponent({
|
|||
}
|
||||
});
|
||||
|
||||
watch(
|
||||
() => props.tabs.length,
|
||||
val => {
|
||||
if(!val) {
|
||||
setOpen(false);
|
||||
}
|
||||
});
|
||||
|
||||
return () => {
|
||||
const {
|
||||
prefixCls,
|
||||
|
|
Loading…
Reference in New Issue