-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix: 修复jd下CustomWrapper内的组件className失效问题 #17511
base: main
Are you sure you want to change the base?
Conversation
Walkthrough此次更改在 Changes
Sequence Diagram(s)sequenceDiagram
participant Func as createRecursiveComponentConfig
participant Env as 环境变量 (TARO_ENV)
participant Options as 返回的 options 对象
Func->>Env: 检查 TARO_ENV 的值
alt TARO_ENV 为 'jd'
Env-->>Func: 返回 'jd'
Func->>Func: 添加 {addGlobalClass: true} 至 extraOptions
else
Env-->>Func: 返回其他值
end
Func->>Options: 合并 extraOptions 到 options 对象
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (2)
✨ Finishing Touches
🪧 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 ✅
❌ Your project check has failed because the head coverage (57.70%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #17511 +/- ##
=======================================
Coverage 57.70% 57.70%
=======================================
Files 469 469
Lines 26551 26551
Branches 5859 5840 -19
=======================================
Hits 15321 15321
- Misses 9608 9635 +27
+ Partials 1622 1595 -27
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
这个 PR 做了什么? (简要描述所做更改)
jd下CustomWrapper内的组件className, 添加不带wrapper-- 的原样式名
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
Summary by CodeRabbit