feat: issue-2563 - #2606
Conversation
|
@ceilf6/repo-guard CR |
代码评审报告: feat: issue-2563风险等级: 中 级联分析
问题发现
行级发现
Karpathy 评审
缺失覆盖
|
There was a problem hiding this comment.
Pull request overview
This PR adds “round” and “line” shape styling for the Switch component in both web and mobile common styles, and updates the Switch API docs to include the corresponding shape demo sections (issue #2563).
Changes:
- Add new Switch shape-related LESS variables for web and mobile.
- Implement
round/lineshape modifier styles for Switch in web and mobile stylesheets. - Add “shape” demo entries/sections to web and mobile Switch API docs (CN/EN).
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| style/web/components/switch/_var.less | Adds web LESS tokens for round/line shape styling. |
| style/web/components/switch/_index.less | Adds web shape-round and shape-line modifier styles for Switch. |
| style/mobile/components/switch/_var.less | Adds mobile CSS var-backed tokens for round/line shape styling. |
| style/mobile/components/switch/_index.less | Adds mobile --round and --line modifier styles for Switch. |
| docs/web/api/switch.md | Adds a “shape” demo section to the CN web Switch API doc. |
| docs/web/api/switch.en-US.md | Adds a “shape” demo section to the EN web Switch API doc. |
| docs/mobile/api/switch.md | Adds a “shape” demo section to the CN mobile Switch API doc. |
| docs/mobile/api/switch.en-US.md | Adds a “shape” demo section to the EN mobile Switch API doc. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ### Switches of Different Shapes | ||
|
|
||
| Three shapes are provided: circle, round and line. |
| } | ||
|
|
||
| .@{prefix}-switch { | ||
| &--shape-round { |
| } | ||
| } | ||
|
|
||
| &--shape-line { |
|
谢谢参与犀牛鸟活动,讨论后这个issue 决定采纳 #2604 继续推进 |
Summary
Related Issue
Checks