fix: Dropdown show (#6757)

pull/6817/head
Cherry7 2023-08-06 11:50:43 +08:00 committed by GitHub
parent d2b6eb9d94
commit 531ae16553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

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

2
typings/global.d.ts vendored
View File

@ -266,6 +266,8 @@ declare module 'vue' {
ABackTop: typeof import('ant-design-vue')['BackTop'];
AWatermark: typeof import('ant-design-vue')['Watermark'];
AStyleProvider: typeof import('ant-design-vue')['StyleProvider'];
}
}
export {};