愚道
653ec40b30
update test snapshot
7 years ago
afc163
9f16d066af
Fix lint problems from eslint-config-airbnb@17
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
70a42545e3
fix fileToObject, close #10319
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
afc163
3b00cf8971
Fix image when file.url has query or hash
close #10102
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
王集鹄
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
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
afc163
d30e398859
Fix upload.test.js
7 years ago
ddcat1115
c9bc8d7095
fix Upload ci
7 years ago
afc163
c5ffc3b4f0
Fix upload and badge styles
7 years ago
afc163
dfb3b4136b
Fix snap
7 years ago
Wei Zhu
e6b1ba6a28
Mock requests
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
偏右
b77cc6392e
Improve upload status test case ( #7869 )
* Add some companies
* test: generate snapshot in upload onChange
* change action
* upgrade travis node version
* fix ci
7 years ago
偏右
9053192ae9
Fix component style ( #7848 )
* fix components style
* fix snapshot
* update travis node version
* change upload action in ci
7 years ago
afc163
278ae9b9c7
Fix upload ci
7 years ago
afc163
064afd9b85
fix upload ci
7 years ago
偏右
2b7a60224b
Fix upload ci ( #7849 )
* Fix upload test case
* update delay time for uploading status
7 years ago
afc163
fd7c90fb5a
update upload snap file
7 years ago
afc163
8feaf83003
fix upload test
7 years ago
afc163
190bebd65f
Fix upload snapshot
7 years ago
afc163
5a5bb9c3a0
Fix upload snapshot
7 years ago
afc163
c3f1d0bba6
Add test case for upload
7 years ago
Wei Zhu
0d572c72a9
Add test for 9a5894c
9a5894c46e
7 years ago
Wei Zhu
c5487ad1eb
React 16 + Enzyme 3
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
250c7a9c68
Revert "Mock rc-trigger"
This reverts commit 9d2c91598b
.
7 years ago
Wei Zhu
9d2c91598b
Mock rc-trigger
Ref #5522
7 years ago
afc163
84e561b237
Fix removing wrong item when uid is 0, close #7269
7 years ago
Benjy Cui
2413c6af61
fix: make loading work with icon only button in button group, close : #6822
7 years ago
Wei Zhu
4960f711c3
docs: Add manual upload demo ( #6823 )
7 years ago
afc163
224c46ded9
fix typo
8 years ago
afc163
dbbf09ae95
fix createClass in test
8 years ago
Wei Zhu
f6b1e942e3
Jest 19 ( #5361 )
* Upgeade to jest 19
* Use jest.spyOn
8 years ago
jiang
8ca2bfd12a
upload ( #5210 )
* fix upload firefox delete anim, update list animate
* update picture cssName
* remove note
* update animate Name
* refactor upload animation code
* refactor upload dom structure
* update upload demo snapshots
8 years ago
afc163
29adc0a85e
fix upload snapshot
8 years ago
Wei Zhu
6eca8b4ad1
Add locale support to Upload ( #5094 )
8 years ago
afc163
61a3d66a02
Add test case for upload
8 years ago