Skip to content

Commit

Permalink
fix: 将LightSelect组件中,popupMatchSelectWidth={false}注释掉,变成灵活多变的动态配置,供用户…
Browse files Browse the repository at this point in the history
…自行配置。否则,popupMatchSelectWidth写死false会关闭虚拟滚动,数量量过大时,影响组件性能
  • Loading branch information
gongbei-wps committed Apr 25, 2024
1 parent 0f478fd commit 989ca2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/field/src/components/Select/LightSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ const LightSelect: React.ForwardRefRenderFunction<
}}
>
<Select
popupMatchSelectWidth={false}
/**
* popupMatchSelectWidth写死false会关闭虚拟滚动,数量量过大时,影响组件性能
* 将此属性注释掉,变成灵活的动态配置
*/
// popupMatchSelectWidth={false}
{...restProps}
allowClear={allowClear}
value={value}
Expand Down

0 comments on commit 989ca2c

Please sign in to comment.