-
Notifications
You must be signed in to change notification settings - Fork 80
refactor hook and support ref #47
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
Conversation
@afc163 这个ci是配置有问题把 |
都没有hsx的文件吧 |
jsx |
需要加上 tsx |
改成这样吧,再把出现的问题顺便修掉。 - "lint": "eslint src/ --ext .jsx,.js,.md",
+ "lint": "eslint .", |
Codecov Report
@@ Coverage Diff @@
## master #47 +/- ##
============================================
+ Coverage 89.28% 100.00% +10.71%
============================================
Files 1 1
Lines 56 43 -13
Branches 13 12 -1
============================================
- Hits 50 43 -7
+ Misses 6 0 -6
Continue to review full report at Codecov.
|
覆盖率也顺便提上来吧,应该就两三行没覆盖到。 |
eslint ignore 掉就行 |
发个版本 |
|
2.x 理论上 React 15 还能用。react-component/progress#82 |
if (autoFocus && !disabled) { | ||
this.focus(); | ||
focus(); |
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.
这个 focus
是无源之水……
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.
我处理下 ,批量替换了this,... 竟然不报错
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.
单元测试 覆盖到了,为什么会通过
} | ||
} | ||
}, [props.autoFocus, props.disabled]); |
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.
disabled
切换会反复 autoFocus
.
准备移除废弃api ant-design/ant-design#22493