Browse Source

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 1 year ago committed by GitHub
parent
commit
7f96399009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      components/tabs/src/TabNavList/OperationNode.tsx

8
components/tabs/src/TabNavList/OperationNode.tsx

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

Loading…
Cancel
Save