-
-
Notifications
You must be signed in to change notification settings - Fork 558
Sender 组件增加 Content 语义化部分 #703
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
base: main
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthrough此次修改主要增加了 "content" 属性在两个组件中的支持。第一个改动在语义预览组件中,向中英文本地化对象中添加了 "content" 条目,并将其纳入 Changes
Sequence Diagram(s)sequenceDiagram
participant App
participant SemanticPreview
participant locales
App->>SemanticPreview: 渲染组件
SemanticPreview->>locales: 获取中英文本地化数据
locales-->>SemanticPreview: 返回包含 "content" 的文案
SemanticPreview-->>App: 返回完整语义预览
sequenceDiagram
participant Parent
participant ForwardSender
participant ContextConfig
Parent->>ForwardSender: 传入 SenderProps(含 content 配置)
ForwardSender->>ContextConfig: 获取默认的样式及类名
ForwardSender->>ForwardSender: 合并 content 样式与类名
ForwardSender-->>Parent: 渲染内容区(content div)
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (5)
✨ 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 (
|
Bundle ReportBundle size has no change ✅ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #703 +/- ##
=======================================
Coverage 92.21% 92.21%
=======================================
Files 66 66
Lines 1465 1465
Branches 393 393
=======================================
Hits 1351 1351
Misses 114 114 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
起初看到了文档里的 content,以为是忘记支持了,看过源码才发现是Sender.header的 content, Sender 也可以加一下 Content,方便调整包括prefix input actions 等在内的布局
📝 Change Log
Summary by CodeRabbit