fix(tabs): dropdown show (#6758)

pull/7091/head
Cherry7 2023-08-06 11:51:01 +08:00 committed by GitHub
parent 8140f9ec02
commit 42982afa70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -144,6 +144,7 @@ export default defineComponent({
rtl,
onTabClick,
} = props;
if (!tabs.length) return null;
const dropdownPrefix = `${prefixCls}-dropdown`;
const dropdownAriaLabel = locale?.dropdownAriaLabel;