-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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: validate message not display, fix #5034 #5038
Conversation
|
Warning Rate limit exceeded@anncwb has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 28 minutes and 21 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughThe changes in this pull request focus on the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
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 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue (1)
Line range hint
339-341
: Consider improving the validation message transition.The current implementation might cause layout shifts during the transition. Consider these improvements:
- Add a fixed height container for the validation message
- Use transform-based transitions for better performance
- <Transition name="slide-up"> - <FormMessage class="absolute -bottom-[22px]" /> - </Transition> + <div class="h-6 relative"> + <Transition + enter-active-class="transform transition duration-200 ease-out" + enter-from-class="opacity-0 translate-y-1" + enter-to-class="opacity-100 translate-y-0" + leave-active-class="transform transition duration-200 ease-in" + leave-from-class="opacity-100 translate-y-0" + leave-to-class="opacity-0 translate-y-1" + > + <FormMessage class="absolute" /> + </Transition> + </div>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue
(1 hunks)
🔇 Additional comments (1)
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue (1)
301-301
: LGTM! This change fixes the validation message visibility issue.
The removal of overflow-hidden
from the wrapper div allows the absolutely positioned validation message to be visible outside its container. This directly addresses issue #5034 where validation messages were not being displayed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还是会存在 #5029 的问题
并且 验证错误提示很长的话,也会又样式问题, 并非最佳方案
c5bd64a
to
38c831c
Compare
Description
修复表单校验信息不显示的问题, fix #5034 , fix #5056
Type of change
Please delete options that are not relevant.
pnpm-lock.yaml
unless you introduce a new test example.Checklist
pnpm run docs:dev
command.pnpm test
.feat:
,fix:
,perf:
,docs:
, orchore:
.Summary by CodeRabbit
Bug Fixes
div
element.FormControl
component for better clarity.Refactor