HeskeyBaozi
0a8f964935
update test snap shot
6 years ago
afc163
f2ce60cb6c
fix test case failed often
6 years ago
JamesYin
583abe8dbb
compatible with thumbnail which url has no extension ( #11684 )
* compatible with thumbnail which url has no extension
* restore newline #11684
6 years ago
afc163
7f78cc9753
Fix detete x missing in Upload, close #10454
6 years ago
Dmitriy Mironov
a270597d63
Fix a typo
6 years ago
Benoît Latinier
2b72149a50
Add strokeLinecap attribute to progress component
6 years ago
Wu Haotian
57646f24db
fix: correct typing of RcFile. close #10331
6 years ago
afc163
2f81349c21
fix error in typescript@3.x
6 years ago
Ilan Hasanov
6cecc9a0ea
💬 fixing upload component typos and capitalization consistency for en-US
6 years ago
HeskeyBaozi
ee16585b6d
update test cases
6 years ago
HeskeyBaozi
4a553a2006
upgrade test cases
6 years ago
HeskeyBaozi
8df086f022
update test cases
6 years ago
HeskeyBaozi
9338f33c1c
update test cases
6 years ago
afc163
7d038d1aee
revert 4d5d3c142e
7 years ago
afc163
763d32ac68
Fix tslint
7 years ago
afc163
4d5d3c142e
fix fileList in onChange when uid is 0, close #11089
7 years ago
zelongc
27c3093487
Typo fix in the upload component demo.
Change 'reponse' to 'response'.
7 years ago
afc163
0981ef06a4
fix demo lint
7 years ago
afc163
009ed08580
upgrade eslint-config-airbnb
7 years ago
愚道
653ec40b30
update test snapshot
7 years ago
afc163
9f16d066af
Fix lint problems from eslint-config-airbnb@17
7 years ago
sliwey
450a497412
fix: upload preview can't show image when the image file use uppercase extension
1.fix: upload preview can't show image when the image file use uppercase extension.
2.improve: remove unnecessary escape character.
7 years ago
afc163
fd96967c87
upgrade rc-upload to 2.5
- support `directory` close #7315
- action can be a function return Promise
7 years ago
Junbin Huang
e1ba74e5fc
fix: still keep order when upload fails ( #10794 )
7 years ago
Wei Zhu
87163dfcd6
tests: mock xhr request
Close #10342
7 years ago
afc163
89ed0dcb35
fix autoUpdateProgress percent and add test case
7 years ago
afc163
0fc5a0ece5
site: add alt to images
7 years ago
afc163
70a42545e3
fix fileToObject, close #10319
7 years ago
Daniel Gomez
3a5fce7256
Fix UploadFile's lastModifiedDate property name ( #10315 )
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
刘红
ee4f788ae0
添加BMP的支持 ( #10110 )
7 years ago
afc163
3b00cf8971
Fix image when file.url has query or hash
close #10102
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
afc163
e1a5063daf
test: fix ci warning
7 years ago
偏右
a9376ef1ca
Fix image url display with non-image extention in Upload ( #9936 )
now we treat url following below rules:
1. `data:image..` => image
2. `http://xxx.com/xxxx .(webp|svg|png|gif|jpg|jpeg)` => image
3. `http://xxx.com/xxx.zip ` other extensions => non-image
4. `data:application..` other minetypes in base64 text => non-image
5. `http://xxx.com/xxx ` without any extensions => image
close #9835
close #9681
ref #9621
7 years ago
afc163
e6b3490a8e
fix test case
7 years ago
Wei Zhu
5336bd688f
Fix type error
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
王集鹄
decb6d8390
Compatible with non-image format file preview in UploadList ( #9621 )
* Compatible with non-image format file preview in UploadList
* Add unit test about Upload List should non-image format file preview
7 years ago
afc163
e071002fae
use lodash
7 years ago
afc163
15e69d09ca
Fix test cases
7 years ago
偏右
8226ede38e
Fix test case for new jsdom ( #9527 )
* Fix test case for new jsdom
* use setTimeout as raf in jest jsdom
* Fix cancelAnimationFrame
* Add comment for facebook/jest#5147
* longer timeout
* fix snap
* upgrade antd-tools
7 years ago
afc163
626ebf2063
Fix upload list update logic when beforeUpload return false
close #8020 #8779 #9248 #9191
ref #8036
7 years ago
afc163
c9b2efc9e8
Add more test cases for Upload
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
03e4411589
Improve upload type definition
7 years ago
Wei Zhu
45135e4ec8
Improve upload type definition.
7 years ago