diff --git a/components/tabs/src/TabNavList/OperationNode.tsx b/components/tabs/src/TabNavList/OperationNode.tsx index a304ba801..727ddba97 100644 --- a/components/tabs/src/TabNavList/OperationNode.tsx +++ b/components/tabs/src/TabNavList/OperationNode.tsx @@ -142,6 +142,7 @@ export default defineComponent({ onTabClick, popupClassName, } = props; + if (!tabs.length) return null; const dropdownPrefix = `${prefixCls}-dropdown`; const dropdownAriaLabel = locale?.dropdownAriaLabel; diff --git a/typings/global.d.ts b/typings/global.d.ts index 1f787aee0..d48c8da20 100644 --- a/typings/global.d.ts +++ b/typings/global.d.ts @@ -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 {};