-
Notifications
You must be signed in to change notification settings - Fork 503
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: control hook #764
fix: control hook #764
Conversation
Size Change: -11 B (0%) Total Size: 665 kB
ℹ️ View Unchanged
|
Size Change: -41 B (0%) Total Size: 665 kB
ℹ️ View Unchanged
|
Codecov Report
@@ Coverage Diff @@
## develop #764 +/- ##
==========================================
Coverage ? 61.52%
==========================================
Files ? 405
Lines ? 14148
Branches ? 2690
==========================================
Hits ? 8704
Misses ? 5190
Partials ? 254 Continue to review full report at Codecov.
|
Size Change: -48 B (0%) Total Size: 665 kB
ℹ️ View Unchanged
|
🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
useVModel
与useDefaultValue
在之前的实现中,通过判断value 是否为undefined来判断组件的非受控与受控,且这个执行时间在组件初始化阶段,当用户传入 value 为 undefined,会进入非受控模式。后续用户从外部对value的变化将不会驱动组件进行innerValue的变化。下面代码可复现问题
修复前
修复后
timePicker 修复
修复前
修复后
📝 更新日志
attrs
注入异常 (issue #671)☑️ 请求合并前的自查清单