From e4651d61ac587e96cbf4a9be0361308ecbd6e8b8 Mon Sep 17 00:00:00 2001 From: songchenglin3 <353833373@qq.com> Date: Wed, 8 Jan 2025 17:09:57 +0800 Subject: [PATCH] fix(picker/datepicker): popup minHeight is too high and causes blank space --- src/packages/picker/picker.scss | 3 +++ src/packages/picker/picker.taro.tsx | 1 + src/packages/picker/picker.tsx | 1 + 3 files changed, 5 insertions(+) diff --git a/src/packages/picker/picker.scss b/src/packages/picker/picker.scss index 6516efc1bf..ba0ef96e9d 100644 --- a/src/packages/picker/picker.scss +++ b/src/packages/picker/picker.scss @@ -3,6 +3,9 @@ .nut-picker { background-color: $color-background-overlay; width: 100%; + &-popup { + min-height: calc($popup-title-height + $picker-list-height) !important; + } &-control { display: flex; diff --git a/src/packages/picker/picker.taro.tsx b/src/packages/picker/picker.taro.tsx index 0eae715b2a..1f922c3a10 100644 --- a/src/packages/picker/picker.taro.tsx +++ b/src/packages/picker/picker.taro.tsx @@ -385,6 +385,7 @@ const InternalPicker: ForwardRefRenderFunction< afterClose={() => { afterClose?.(setSelectedOptions(), innerValue, pickerRef) }} + className={`${classPrefix}-popup`} > {renderTitleBar()} diff --git a/src/packages/picker/picker.tsx b/src/packages/picker/picker.tsx index 2c780b6a96..9fee4989ac 100644 --- a/src/packages/picker/picker.tsx +++ b/src/packages/picker/picker.tsx @@ -327,6 +327,7 @@ const InternalPicker: ForwardRefRenderFunction< afterClose={() => { afterClose?.(setSelectedOptions(), innerValue, pickerRef) }} + className={`${classPrefix}-popup`} >
{renderTitleBar()}