From efca0dd87509d7d4a88c1a1da9a641619b859452 Mon Sep 17 00:00:00 2001 From: dengfuping Date: Sat, 14 Dec 2024 22:10:45 +0800 Subject: [PATCH] improve(design): Table empty height in Popover and Tooltip --- packages/design/src/table/style/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/design/src/table/style/index.ts b/packages/design/src/table/style/index.ts index 9f8408b49..66503a973 100644 --- a/packages/design/src/table/style/index.ts +++ b/packages/design/src/table/style/index.ts @@ -287,6 +287,15 @@ export const genTableStyle: GenerateStyle = (token: TableToken): CSS padding: 0, }, }, + + // Popover、Tooltip 等弹出层中的表格空状态高度设为自动,避免高度过大撑高弹出层 + [`${antCls}-popover, ${antCls}-tooltip`]: { + [`${componentCls} ${componentCls}-tbody`]: { + [`${componentCls}-empty-wrapper`]: { + minHeight: 'auto', + }, + }, + }, }; };