docs(date-picker): 收窄 align demo 输入框,清晰展示左中右对齐效果 - #4287
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe date-picker demo wrapper width changes from 360px to 240px. A comment explains that the input is narrower than the panel. ChangesDate-picker demo
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
date-picker的aligndemo 展示了left/center/right三种对齐方式,但 demo 容器宽度为 360px,恰好等于日期面板的默认宽度(主题变量--tv-DatePanel-width: 360px)。当面板与输入框等宽时,三种对齐的偏移校正结果在几何上完全相同(bottom-start、bottom、bottom-end均等于reference.left),用户无法观察到对齐差异,demo 失去展示意义。Issue Number: N/A
What is the new behavior?
将 demo 输入框容器宽度从 360px 收窄到 240px,与面板默认宽度产生 120px 的宽度差,使三种对齐方式清晰可辨:
align="left":面板左边缘与输入框左边缘对齐align="center":面板与输入框水平中线对齐align="right":面板右边缘与输入框右边缘对齐该改动仅影响 demo 展示(docs 站点),使用 scoped 样式,不影响组件库代码、主题样式及既有 E2E 测试(
align.spec.ts仅断言面板的x-placement属性,与宽度无关)。Does this PR introduce a breaking change?
Other information
N/A
Summary by CodeRabbit