From 458f46f0b43b756f1d8f3a848fbfe0d462c8fc81 Mon Sep 17 00:00:00 2001 From: yusongh <549962989@qq.com> Date: Tue, 6 May 2025 21:36:38 +0800 Subject: [PATCH] fix(TreeSelect): display blank issue fix --- components/vc-virtual-list/Filler.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/vc-virtual-list/Filler.tsx b/components/vc-virtual-list/Filler.tsx index a4607311ed..2734d81a4d 100644 --- a/components/vc-virtual-list/Filler.tsx +++ b/components/vc-virtual-list/Filler.tsx @@ -23,7 +23,11 @@ const Filter: FunctionalComponent = ( }; if (offset !== undefined) { - outerStyle = { height: `${height}px`, position: 'relative', overflow: 'hidden' }; + outerStyle = { + height: `${height}px`, + ...(offset === 0 ? {} : { position: 'relative' }), + overflow: 'hidden', + }; innerStyle = { ...innerStyle,