-
Notifications
You must be signed in to change notification settings - Fork 273
更新必填标签样式,支持左右位置 #3221
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: next
Are you sure you want to change the base?
更新必填标签样式,支持左右位置 #3221
Conversation
fix(calendar): 修正范围选择测试中的日期 style(formitem): 更新必填标签样式,支持左右位置
Walkthrough本次变更主要调整了表单项组件中必填星号的渲染方式和样式,使其根据 starPosition 属性动态切换左右样式。相应的测试用例和样式文件也进行了同步更新。此外,修正了日历组件测试用例中日期的期望值,package.json 文件仅添加了结尾换行符。 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Form
participant FormItem
User->>Form: 渲染 Form,设置 starPosition
Form->>FormItem: 传递 starPosition
FormItem->>FormItem: 根据 starPosition 渲染必填星号(左/右类名)
Suggested reviewers
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
🔇 Additional comments (9)
✨ 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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
fix(calendar): 修正范围选择测试中的日期
style(formitem): 更新必填标签样式,支持左右位置
🤔 这个变动的性质是?
🔗 相关 Issue
issue地址:#3212
💡 需求背景和解决方案
Open
☑️ 请求合并前的自查清单
Summary by CodeRabbit
新功能
starPosition
属性自定义必填星号的位置,可选择左侧或右侧显示。样式
测试