-
-
Notifications
You must be signed in to change notification settings - Fork 326
feat: support semantic for time panel #926
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本次修改在多个组件中扩展了对自定义样式和 CSS 类名的支持。主要通过引入额外的上下文属性(如 Changes
Sequence Diagram(s)sequenceDiagram
participant Test as 测试用例
participant Picker as Picker 组件
participant Context as 上下文 (PickerContext / PickerHackContext)
participant Child as 子组件 (Icon, Input, 等)
Test->>Picker: 渲染 Picker 并传入自定义样式参数
Picker->>Context: 获取 classNames 与 styles
Context-->>Picker: 返回自定义样式数据
Picker->>Child: 传递 classNames 与 styles 参数
Child-->>Picker: 使用自定义样式渲染元素
Possibly related PRs
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/PickerInput/Selector/Input.tsxOops! Something went wrong! :( ESLint: 8.57.1 Error: Cannot read config file: /.eslintrc.js
src/PickerInput/Selector/RangeSelector.tsxOops! Something went wrong! :( ESLint: 8.57.1 Error: Cannot read config file: /.eslintrc.js
docs/examples/time.tsxOops! Something went wrong! :( ESLint: 8.57.1 Error: Cannot read config file: /.eslintrc.js
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (9)
🧰 Additional context used🧬 Code Graph Analysis (2)src/PickerPanel/TimePanel/TimePanelBody/TimeColumn.tsx (1)
tests/picker.spec.tsx (2)
🔇 Additional comments (20)
✨ 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 #926 +/- ##
=======================================
Coverage 98.79% 98.79%
=======================================
Files 64 64
Lines 2652 2656 +4
Branches 711 740 +29
=======================================
+ Hits 2620 2624 +4
Misses 29 29
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
新增功能
测试