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
chore: use father #268
chore: use father #268
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/upload/5oh00dkmo |
This pull request introduces 2 alerts and fixes 2 when merging 5da11b7 into 472a3d6 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 2 alerts and fixes 2 when merging e9eaa8e into 472a3d6 - view on LGTM.com new alerts:
fixed alerts:
|
@kermit-xuan could you help to review? |
@xrkffgg please install it. |
@zombieJ 是不是考虑加个 |
需要的,迁移 father 都要加一个~ |
This pull request introduces 2 alerts and fixes 2 when merging f018c70 into 472a3d6 - view on LGTM.com new alerts:
fixed alerts:
|
@kermit-xuan PTAL |
可以在 CI 的 lint 后面加个 compile 的检查么?防止编译出错 |
This pull request introduces 2 alerts and fixes 2 when merging 8eb6da1 into 472a3d6 - view on LGTM.com new alerts:
fixed alerts:
|
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.
测试不需要改造的话,我感觉OK了。
examples/customRequest.tsx
Outdated
import axios from 'axios'; | ||
import Upload from '../src/index'; |
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.
import Upload from '../src/index'; | |
import Upload from '..'; |
覆盖率的 ci 是不是没生效。 |
运行了,但是好像没有打印出来。 |
This pull request introduces 2 alerts and fixes 2 when merging 972147f into 472a3d6 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 2 alerts and fixes 2 when merging 225ce2b into 472a3d6 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 3 when merging d32f18b into bb07467 - view on LGTM.com new alerts:
fixed alerts:
|
应该差不多了,review 的时候最好在本地编辑器看,改动有点大(类型定义)。 |
@@ -1,4 +1,3 @@ | |||
// export this package's api | |||
import Upload from './Upload'; |
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.
多加一个 UploadProps export.
src/AjaxUploader.tsx
Outdated
}, | ||
{}, | ||
); | ||
const dataOrAriaAttributeProps = (props: React.AriaAttributes | React.DataHTMLAttributes<any>) => { |
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.
等一下这个:react-component/util#142
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.
done:
+ rc-util@5.2.0
pickerAttrs(props, { aria: true, data: true });
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.
这个是改啥了?
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.
就是直接用 rc-util
里面的 pickerAttrs
,这个方法可以删掉了。
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.
这个怎么用呢?😂
src/AjaxUploader.tsx
Outdated
|
||
componentDidMount() { | ||
this._isMounted = true; | ||
} | ||
|
||
componentWillUnmount() { | ||
this._isMounted = false; | ||
this.abort(); | ||
this.abort(''); |
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.abort(null)
?
下面的 abort 定义让 file 变成 optional 的即可~
我在考虑要不要加个 |
This pull request introduces 1 alert and fixes 3 when merging 1e515ba into bb07467 - view on LGTM.com new alerts:
fixed alerts:
|
👍 的确 any 有点蛋疼 |
This pull request introduces 1 alert and fixes 3 when merging ef2ebbc into bb07467 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 3 when merging cfcf2d2 into bb07467 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request fixes 3 alerts when merging a58f859 into bb07467 - view on LGTM.com fixed alerts:
|
This pull request fixes 3 alerts when merging b8538d6 into bb07467 - view on LGTM.com fixed alerts:
|
No description provided.