Commit Graph

179 Commits

Author SHA1 Message Date
Ed Moore
31e50e50b6 Fix types ()
* Fix types

Fix https://github.com/ant-design/ant-design/issues/8796

* Fix exported types
2018-04-16 10:58:17 +08:00
Wei Zhu
5ab1c4ce53 Revert "Convert file object"
This reverts commit ee0bf41672.
2018-03-25 11:40:51 +08:00
Wei Zhu
ee0bf41672 Convert file object
Close 
2018-03-23 11:23:47 +08:00
afc163
e071002fae use lodash 2018-03-08 14:46:47 +08:00
afc163
626ebf2063 Fix upload list update logic when beforeUpload return false
close    

ref 
2018-02-11 16:11:13 +08:00
Wei Zhu
01f4b4e713 Merge branch 'master' into antd-3.0 2017-12-01 11:50:07 +08:00
Wei Zhu
179528af50
Don't change fileList when beforeUpload returns false ()
Close 
2017-11-29 20:28:19 +08:00
Wei Zhu
cbaf54415e style: Use single quote 2017-11-20 16:53:56 +08:00
Wei Zhu
45135e4ec8 Improve upload type definition. 2017-11-20 16:31:41 +08:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports () 2017-11-17 14:38:54 +08:00
afc163
a4faaad810 Merge branch 'master' into antd-3.0 2017-11-13 10:24:58 +08:00
Wei Zhu
0c7ce9db17 Use props
Related 
2017-11-10 09:48:07 +08:00
Benjy Cui
e5699aff68 fix: should not import moment while useless, close: 2017-10-26 10:50:18 +08:00
Benjy Cui
7ea572bfc8 refactor: extract common locale logic () 2017-10-20 14:54:38 +08:00
afc163
94c6c910ff Merge branch 'master' into antd-3.0 2017-10-12 20:07:31 +08:00
偏右
43362de756 Fix beforeUpload will stop uploading when return ()
value is undefined

it should be same as rc-upload
2017-10-12 14:48:35 +08:00
afc163
d3b98d311a Merge branch 'master' into antd-3.0 2017-10-10 14:09:03 +08:00
afc163
9a5894c46e data should be call when beforeUpload promise resolved, close 2017-10-09 19:41:52 +08:00
afc163
7a8a1a8ee3 Merge branch 'master' into antd-3.0 2017-09-30 21:31:29 +08:00
niko
9dc4102cdd fix: should trigger onChange before beforeUpload 2017-09-29 03:52:16 -05:00
Benjy Cui
829b5f87bf feat: make default locale to enUS ()
* feat: make default locale to enUS

* test: fix CI

* docs: update getting started
2017-09-26 23:12:47 +08:00
Wei Zhu
047f62e9b4 Mark refs to private () 2017-09-17 15:48:44 +08:00
Wei Zhu
8c0c6ecf6e refactor: upload string refs to callback () 2017-09-08 09:46:22 +08:00
paranoidjk
ba168b826f refactor: use spread operator replace object-assign () 2017-07-03 16:57:11 +08:00
shlice
38a7a87690 feat: enhance handleRemove in Upload ()
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.
2017-05-02 16:31:39 +08:00
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
2017-04-12 02:22:05 +05:30
偏右
674255bd14 [WIP] upgrade deps ()
* upgrade deps

* autofix some tslint problems

* Fix tslint problems manually
2017-03-23 21:15:49 +08:00
natergj
c2cb111f7b fix: Upload should work with LocaleProvider () 2017-03-20 15:20:15 +08:00
Benjy Cui
be13831d92 Fix upload ()
* docs: add demo to re-produce bug

* fix: dragger should work with form decorator, close: 

* test: update snapshot
2017-03-17 11:47:05 +08:00