ztplz
6ad23c370e
Fix CI
6 years ago
zombiej
1883996943
no need to use let
6 years ago
zombiej
273fd2ea1b
fix #10953 . Dedup of file onStart upload
6 years ago
张聪
8a9fbcb5e4
Migrate lifecycle method: Upload, CheckboxGroup, Layout.Sider, Tooltip, Popconfirm ( #11682 )
* Upload lifecycle method migrate
* CheckboxGroup lifecycle method migrate
* Layout.Sider lifecycle method migrate
* Tooltip lifecycle method migrate
* Popconfirm lifecycle method migrate
* test Spin as a controlled component
6 years ago
afc163
7d038d1aee
revert 4d5d3c142e
6 years ago
afc163
763d32ac68
Fix tslint
6 years ago
afc163
4d5d3c142e
fix fileList in onChange when uid is 0, close #11089
6 years ago
Junbin Huang
e1ba74e5fc
fix: still keep order when upload fails ( #10794 )
7 years ago
afc163
89ed0dcb35
fix autoUpdateProgress percent and add test case
7 years ago
afc163
e97977b891
Fix upload onChange arg type when beforeUpload return false, close #10293
7 years ago
Wu Haotian
7eb2792072
fix typing for `Upload.beforeUpload` ( #10059 )
* fix typing for `Upload.beforeUpload`
fix #9775
* add RcFile interface, fix tests
* fix typing of `Upload.onStart`
7 years ago
Ed Moore
31e50e50b6
Fix types ( #10063 )
* Fix types
Fix https://github.com/ant-design/ant-design/issues/8796
* Fix exported types
7 years ago
Wei Zhu
5ab1c4ce53
Revert "Convert file object"
This reverts commit ee0bf41672
.
7 years ago
Wei Zhu
ee0bf41672
Convert file object
Close #9775
7 years ago
afc163
e071002fae
use lodash
7 years ago
afc163
626ebf2063
Fix upload list update logic when beforeUpload return false
close #8020 #8779 #9248 #9191
ref #8036
7 years ago
Wei Zhu
179528af50
Don't change fileList when beforeUpload returns false ( #8299 )
Close #8036
7 years ago
Wei Zhu
cbaf54415e
style: Use single quote
7 years ago
Wei Zhu
45135e4ec8
Improve upload type definition.
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
Wei Zhu
0c7ce9db17
Use props
Related #7706
7 years ago
Benjy Cui
e5699aff68
fix: should not import moment while useless, close : #8013
7 years ago
Benjy Cui
7ea572bfc8
refactor: extract common locale logic ( #7915 )
7 years ago
偏右
43362de756
Fix beforeUpload will stop uploading when return ( #7870 )
value is undefined
it should be same as rc-upload
7 years ago
afc163
9a5894c46e
data should be call when beforeUpload promise resolved, close #7833
7 years ago
niko
9dc4102cdd
fix: should trigger onChange before beforeUpload
7 years ago
Benjy Cui
829b5f87bf
feat: make default locale to enUS ( #7553 )
* feat: make default locale to enUS
* test: fix CI
* docs: update getting started
7 years ago
Wei Zhu
047f62e9b4
Mark refs to private ( #7600 )
7 years ago
Wei Zhu
8c0c6ecf6e
refactor: upload string refs to callback ( #7496 )
7 years ago
paranoidjk
ba168b826f
refactor: use spread operator replace object-assign ( #6677 )
8 years ago
shlice
38a7a87690
feat: enhance handleRemove in Upload ( #5974 )
onRemove will be executed when removing file button is clicked, remove event will be prevented when return value is false.
But, if we want't to popup a confirm dialog, it can't block the execution of onRemove.
So, I add Promise support for onRemove. The return value of onRemove now can be a Promise, and the handleRemove function in Upload can wait for the non-blocking confirm dialog.
8 years ago
Manjit Kumar
4e055ed5d0
use PropTypes from 'prop-types' mdoule instead of React
- as React.PropTypes is being deprecated
- Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
- Solution: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
8 years ago
偏右
0308138974
[WIP] upgrade deps ( #5455 )
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
8 years ago
偏右
674255bd14
[WIP] upgrade deps ( #5455 )
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
8 years ago
natergj
c2cb111f7b
fix: Upload should work with LocaleProvider ( #5388 )
8 years ago
Benjy Cui
be13831d92
Fix upload ( #5358 )
* docs: add demo to re-produce bug
* fix: dragger should work with form decorator, close : #5334
* test: update snapshot
8 years ago
afc163
b271a94e0a
Fix Upload progress not showing, close #5323
8 years ago
afc163
89ace33480
Upload onChang(file) argument should be immutable, close #5280
8 years ago
afc163
7290e1070b
update code style
8 years ago
Minwe LUO
bbe294e96c
feat: allow override onProgress on Upload ( #5260 )
@see https://github.com/react-component/upload/issues/33#issuecomment-284644039
8 years ago
afc163
23415a062f
fix upload progressTimer
8 years ago
afc163
a82ab5fc4b
Fix setState on unmounted Upload, close #5162
8 years ago
Wei Zhu
6eca8b4ad1
Add locale support to Upload ( #5094 )
8 years ago
afc163
5603fa0088
Fix upload error file style, close #4810
8 years ago
偏右
aa89addcc2
Improve upload list ( #4516 )
* support prevent removing when return value is false, close #4456
* Add showRemoveIcon & showPreviewIcon into showUploadList
close #4384 & #4351
* fix typo
8 years ago
Andrey G
a307a7acf7
refactor: remove unnecessary computed props for classNames ( #4055 )
* remove unnecessary computed props for classNames
* rollback autocomplete optimization for possible css style order issue
* update snapshots
* remove more unnecessary computed props at Input
8 years ago
Benjy Cui
f5cc937c8f
fix: Upload should work without children
8 years ago
afc163
f77d568322
fix upload prefixCls
8 years ago
Wei Zhu
d20572bdab
test: demo snapshot testing ( #3916 )
* Run snapshot testing against all demos
* Split demo tests
* ignore coverage folder
* Upgrade antd-demo-jest
* enable cache
* intergate with coveralls.io
* Add node test
* Set worker to 2
https://github.com/facebook/jest/issues/1742
* config coverage
* Set default supportServerRender to true
8 years ago
Benjy Cui
08e21e0a2f
refactor: close : #3490
8 years ago