-
-
Notifications
You must be signed in to change notification settings - Fork 253
feat: support classNames and styles #770
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
Walkthrough此次变更更新了多个菜单组件,增强了样式定制能力。组件内部现在能够从上下文中获取额外的样式属性( Changes
Sequence Diagram(s)sequenceDiagram
participant S as SubMenu
participant C as MenuContextProvider
participant G as MenuItemGroup
participant T as 测试用例
T->>S: 传入 classNames 与 styles 属性
S->>C: 将样式属性传递给上下文
C->>G: 提供定制的 classNames 和 styles
G->>C: 获取样式信息
G->>S: 渲染时应用更新的类名与样式
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/SubMenu/index.tsxOops! Something went wrong! :( ESLint: 8.57.1 Error: Cannot read config file: /.eslintrc.js
src/MenuItemGroup.tsxOops! Something went wrong! :( ESLint: 8.57.1 Error: Cannot read config file: /.eslintrc.js
src/context/MenuContext.tsxOops! 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 Definitions (3)src/context/MenuContext.tsx (2)
tests/SubMenu.spec.tsx (2)
src/MenuItemGroup.tsx (2)
🔇 Additional comments (12)
✨ 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 #770 +/- ##
=======================================
Coverage 99.72% 99.72%
=======================================
Files 27 27
Lines 734 734
Branches 198 198
=======================================
Hits 732 732
Misses 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit