Skip to content

Commit 531ae16

Browse files
authored
fix: Dropdown show (#6757)
1 parent d2b6eb9 commit 531ae16

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

components/tabs/src/TabNavList/OperationNode.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export default defineComponent({
142142
onTabClick,
143143
popupClassName,
144144
} = props;
145+
if (!tabs.length) return null;
145146
const dropdownPrefix = `${prefixCls}-dropdown`;
146147

147148
const dropdownAriaLabel = locale?.dropdownAriaLabel;

typings/global.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ declare module 'vue' {
266266
ABackTop: typeof import('ant-design-vue')['BackTop'];
267267

268268
AWatermark: typeof import('ant-design-vue')['Watermark'];
269+
270+
AStyleProvider: typeof import('ant-design-vue')['StyleProvider'];
269271
}
270272
}
271273
export {};

0 commit comments

Comments
 (0)