Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Select support maxCount #1015

Merged
merged 19 commits into from Jan 2, 2024
Merged

fix: Select support maxCount #1015

merged 19 commits into from Jan 2, 2024

Conversation

li-jia-nan
Copy link
Member

@li-jia-nan li-jia-nan commented Dec 28, 2023

上个 PR 功能不是很完整,缺少一个分词截断功能,补充一下:

Kapture.2023-12-29.at.02.24.48.mp4

Copy link

vercel bot commented Dec 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
select ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 2, 2024 2:06am

Copy link

codecov bot commented Dec 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (312c791) 99.78% compared to head (85e8537) 99.78%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1015   +/-   ##
=======================================
  Coverage   99.78%   99.78%           
=======================================
  Files          38       38           
  Lines        1389     1396    +7     
  Branches      385      390    +5     
=======================================
+ Hits         1386     1393    +7     
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/BaseSelect.tsx Outdated Show resolved Hide resolved
src/BaseSelect.tsx Outdated Show resolved Hide resolved
src/Selector/index.tsx Outdated Show resolved Hide resolved
Co-authored-by: MadCcc <1075746765@qq.com>
src/hooks/useOverMaxCount.ts Outdated Show resolved Hide resolved
src/hooks/useOverMaxCount.ts Outdated Show resolved Hide resolved
Co-authored-by: MadCcc <1075746765@qq.com>
src/hooks/useMaxCount.ts Outdated Show resolved Hide resolved
src/BaseSelect.tsx Outdated Show resolved Hide resolved
Co-authored-by: MadCcc <1075746765@qq.com>
src/BaseSelect.tsx Fixed Show fixed Hide fixed
Comment on lines +402 to +404
if (rawValues?.size >= maxCount) {
return;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里可能会有点怪,不过感觉问题不大,看看用户接受度

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

意思是复制不上去,有点反直觉吗?

@MadCcc MadCcc merged commit 68a909f into master Jan 2, 2024
11 checks passed
@MadCcc MadCcc deleted the f-maxCount branch January 2, 2024 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants