-
-
Notifications
You must be signed in to change notification settings - Fork 467
refactor: popup structure #1145
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Walkthrough本次更改对 Select 组件的样式和类名传递方式进行了结构化调整。具体来说,将原本顶层的 list 和 listItem 样式/类名属性,统一嵌套在 popup 属性下,并在类型定义、上下文属性和测试用例中相应调整。这些变更仅涉及样式和类名的结构化管理,没有影响组件的渲染逻辑、事件处理或状态管理。 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Select
participant OptionList
participant Context
User->>Select: 传入 customClassNames/customStyle(含 popup 嵌套)
Select->>Context: 通过 Provider 提供 classNames/styles
OptionList->>Context: 读取 contextClassNames?.popup?.list / listItem
OptionList-->>User: 渲染带嵌套样式的下拉列表
Possibly related PRs
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/OptionList.tsxOops! Something went wrong! :( ESLint: 8.57.1 Error: Cannot read config file: /.eslintrc.js
src/Select.tsxOops! Something went wrong! :( ESLint: 8.57.1 Error: Cannot read config file: /.eslintrc.js
src/SelectContext.tsOops! Something went wrong! :( ESLint: 8.57.1 Error: Cannot read config file: /.eslintrc.js
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code Graph Analysis (2)src/Select.tsx (1)
src/SelectContext.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (9)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1145 +/- ##
=======================================
Coverage 98.26% 98.26%
=======================================
Files 39 39
Lines 1500 1500
Branches 453 453
=======================================
Hits 1474 1474
Misses 26 26 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit