Repository navigation
fix(form): 修复表单示例中 switch 组件无法切换的问题 (#7636) - #7763
Conversation
|
📝 WalkthroughWalkthroughTwo Ant Design Vue Switch component bindings in form examples are updated from generic Changes
Estimated Code Review Effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly Related PRs
Suggested Reviewers
Poem
🚥 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)
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 |
Description
修复表单示例中 switch 组件无法切换的问题。在
/examples/form/merge和/examples/form/scroll-to-error-test两个页面中,switch 组件的切换功能失效,无法正常改变状态。问题原因:switch 组件的 [modelValue]绑定不正确,导致状态无法更新。通过修正绑定逻辑,确保 switch 状态能够正确响应用户操作。
Type of change
Checklist
Summary by CodeRabbit