fix: 🐛 修复 Button 按钮设置为 block 无效的问题#762
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for wot-design-uni ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Walkthrough此次变更涉及 Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)src/uni_modules/wot-design-uni/components/wd-button/wd-button.vue (1)
新增的 src/uni_modules/wot-design-uni/components/wd-button/index.scss (2)
将基础显示属性从 Also applies to: 289-289
运行以下脚本来检查可能受影响的页面: Also applies to: 155-156 ✅ Verification successfulLet's examine the actual usage of these medium buttons to understand the impact better. Let's check the actual CSS changes to understand if there's any min-width property being added: Let's try a different approach to find the size-related styles: 样式改动影响范围已确认 经过验证,发现:
由于实际业务代码中的使用场景有限,且关键场景都使用了 round 属性规避了最小宽度的限制,这个样式改动的影响范围可控。 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# 描述:查找使用了 medium 尺寸按钮的页面
# 搜索包含 wd-button 且设置了 size="medium" 的文件
rg -l "wd-button.*size=\"medium\""
Length of output: 139 Script: #!/bin/bash
# Check the actual usage context of medium buttons in the found files
rg -A 5 -B 5 "wd-button.*size=\"medium\"" src/pages/button/Index.vue src/components/wd-privacy-popup/wd-privacy-popup.vue docs/component/button.md
Length of output: 2490 Script: #!/bin/bash
# Check the button component's SCSS file for size-related styles
rg -A 10 "@include m\(medium\)" src/uni_modules/wot-design-uni/components/wd-button/index.scss
Length of output: 96 Script: #!/bin/bash
# Check the entire button SCSS file content
cat src/uni_modules/wot-design-uni/components/wd-button/index.scss
Length of output: 6202 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 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 (
|
🤔 这个 PR 的性质是?(至少选择一个)
🔗 相关 Issue
💡 需求背景和解决方案
调整
Button样式,支持block。☑️ 请求合并前的自查清单
Summary by CodeRabbit
新功能
样式