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
afc163
1e5264bad7
fix tslint
8 years ago
yiminghe
c2d3f16dfb
update tslint
8 years ago
Benjy Cui
9ac21d010b
docs: add demo for show image in-place, close : #3319
8 years ago
偏右
8bf99b7773
Fix Upload onRemove and style ( #3331 )
* fix onRemove prevent origin behavious, close #3317
* remove onPreview if
* improve upload render props code style
* Fix upload trigger click area, close #3316
8 years ago
Benjy Cui
bd7e9f00c0
style: update code style
8 years ago
Benjy Cui
f04b65b25e
fix: should pass style to upload correctly, close : #3072
8 years ago
马斯特
a25ec29fb8
refactor: 保证所有的tsx和less都正确使用prefix ( #3024 )
* refactor: extract prefix cls as less variable
* refactor: apply ant icon prefix cls in less files
* refactor: all components support prefixCls props
8 years ago
afc163
363f610d8b
Fix tsc errors beside DatePicker
8 years ago
afc163
10e1b8b269
Fix some ts errors
8 years ago
afc163
25b3517cc3
Add types for tree-select and upload ( #1846 )
8 years ago
afc163
ea61aa3cab
upload code style
8 years ago
yiminghe
b140856836
add class
8 years ago
偏右
de359d2cf7
fix tslint problems ( #2360 )
8 years ago
yiminghe
94706f1d2c
fix ts
9 years ago
yiminghe
9a0d751f94
refactor to typescript
9 years ago
Benjy Cui
2144349741
style: enable react/jsx-closing-bracket-location
9 years ago