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 #2571 #2518 #2645 增加disabled属性及取消上传时cancel请求 #2690
Conversation
@ddcat1115, thanks for your PR! By analyzing the annotation information on this pull request, we identified @afc163, @yiminghe and @benjycui to be potential reviewers |
这里要比较一下新旧 list,消失的文件要 abort。(受控模式下移除文件) |
@@ -66,7 +66,7 @@ | |||
vertical-align: middle; | |||
} | |||
|
|||
&:hover { | |||
&:not(.@{upload-prefix-cls}-disabled):hover { |
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 的 cursor: not-allowed;
样式。
onStart 永远是一个文件维度了,同 onSuccess/onError。不会是数组 |
那需要看下多选的兼容。@ddcat1115 |
果然 multiple 有问题了,onStart 得到的都是单个文件,上传多个调多次 onStart,fileList来不及更新 |
'fileList来不及更新' 2.0.3 应该好了 |
fix ant-design#2645 add `disabled`
rc-upload@2.x
abortdisabled