fix(picker): 修复第一次modalValue值为空,打开面板后直接点击确认按钮,beforeConfirm回调中value参数为空串的问题#1455
Conversation
✅ Deploy Preview for wot-design-uni ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
概览wd-picker.vue 中的 onConfirm 流程现在在调用 beforeConfirm 之前从 pickerView 检索当前值,而不是使用之前存储的 pickerValue,以确保当初始 modelValue 未定义且用户确认时不滑动选择器时使用最新的选择器视图状态。 变更
预估代码审查工作量🎯 2 (简单) | ⏱️ ~10 分钟 可能相关的 PR
建议审查人员
诗歌
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Tip 🧪 Unit Test Generation v2 is now available!We have significantly improved our unit test generation capabilities. To enable: Add this to your reviews:
finishing_touches:
unit_tests:
enabled: trueTry it out by using the Have feedback? Share your thoughts on our Discord thread! 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 |
|
@NeverGiveUp1995 is attempting to deploy a commit to the weisheng's projects Team on Vercel. A member of the Team first needs to authorize it. |
🤔 这个 PR 的性质是?(至少选择一个)
🔗 相关 Issue
💡 需求背景和解决方案
示例代码
演示效果
534490691-d6d8e270-e7b0-46de-9c8a-4cf54bef80c2.mp4
☑️ 请求合并前的自查清单
Summary by CodeRabbit
发布说明
✏️ Tip: You can customize this high-level summary in your review settings.