diff --git a/src/packages/picker/picker.scss b/src/packages/picker/picker.scss index 6516efc1b..ba0ef96e9 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 0eae715b2..1f922c3a1 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 2c780b6a9..9fee4989a 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()}