react-component / react-component/select
notFoundContent 为空且无选项时,dropdown 层能否提供一个特殊的类名?
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 938
- Forks
- 482
- Avg merge
- 15h 8m
- Merged PRs (30d)
- 2
Description
目前一些场景上希望无选项的时候,下拉框消失,notFoundContent 为空的情况下可以大致做到,但因为还有最外面一层 dropdown,如果这个 dropdown 设置过边框的话,就会留下一个边框没法去掉,所以能够有个特殊的类名进行区分?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the Select dropdown rendering path that handles empty options and an empty notFoundContent. Trace how the outer dropdown wrapper receives its classes; done means the empty state has a distinct class that lets consumers remove the otherwise remaining border.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100