Skip to content

Commit cb7e45d

Browse files
author
donglei
committed
Merge branch 'master' of https://github.com/Frank17008/upload
2 parents 8a27632 + c892be5 commit cb7e45d

17 files changed

+372
-51
lines changed

.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: ant-design # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: ant-design # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ React Upload
99
[![bundle size][bundlephobia-image]][bundlephobia-url]
1010
[![dumi][dumi-image]][dumi-url]
1111

12-
[npm-image]: http://img.shields.io/npm/v/rc-select.svg?style=flat-square
13-
[npm-url]: http://npmjs.org/package/rc-select
12+
[npm-image]: http://img.shields.io/npm/v/rc-upload.svg?style=flat-square
13+
[npm-url]: http://npmjs.org/package/rc-upload
1414
[travis-image]: https://img.shields.io/travis/react-component/upload/master?style=flat-square
1515
[travis-url]: https://travis-ci.com/react-component/upload
1616
[github-actions-image]: https://github.com/react-component/upload/workflows/CI/badge.svg
@@ -21,10 +21,10 @@ React Upload
2121
[david-image]: https://david-dm.org/react-component/upload/status.svg?style=flat-square
2222
[david-dev-url]: https://david-dm.org/react-component/upload?type=dev
2323
[david-dev-image]: https://david-dm.org/react-component/upload/dev-status.svg?style=flat-square
24-
[download-image]: https://img.shields.io/npm/dm/rc-select.svg?style=flat-square
25-
[download-url]: https://npmjs.org/package/rc-select
26-
[bundlephobia-url]: https://bundlephobia.com/package/rc-select
27-
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-select
24+
[download-image]: https://img.shields.io/npm/dm/rc-upload.svg?style=flat-square
25+
[download-url]: https://npmjs.org/package/rc-upload
26+
[bundlephobia-url]: https://bundlephobia.com/package/rc-upload
27+
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-upload
2828
[dumi-url]: https://github.com/umijs/dumi
2929
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square
3030

@@ -84,6 +84,7 @@ React.render(<Upload />, container);
8484
|customRequest | function | null | provide an override for the default xhr behavior for additional customization|
8585
|withCredentials | boolean | false | ajax upload with cookie send |
8686
|openFileDialogOnClick | boolean/function():boolean | true | useful for drag only upload as it does not trigger on enter key or click event |
87+
|pastable | boolean | false | support paste upload |
8788

8889
#### onError arguments
8990

docs/demo/asyncAction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nav:
55
path: /demo
66
---
77

8-
<code src="../examples/asyncAction.tsx"/></code>
8+
<code src="../examples/asyncAction.tsx"></code>

docs/demo/beforeUpload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nav:
55
path: /demo
66
---
77

8-
<code src="../examples/beforeUpload.tsx"/></code>
8+
<code src="../examples/beforeUpload.tsx"></code>

docs/demo/customRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nav:
55
path: /demo
66
---
77

8-
<code src="../examples/customRequest.tsx"/></code>
8+
<code src="../examples/customRequest.tsx"></code>

docs/demo/directoryUpload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nav:
55
path: /demo
66
---
77

8-
<code src="../examples/directoryUpload.tsx"/></code>
8+
<code src="../examples/directoryUpload.tsx"></code>

docs/demo/drag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nav:
55
path: /demo
66
---
77

8-
<code src="../examples/drag.tsx"/></code>
8+
<code src="../examples/drag.tsx"></code>

docs/demo/dragDirectory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nav:
55
path: /demo
66
---
77

8-
<code src="../examples/dragDirectory.tsx"/></code>
8+
<code src="../examples/dragDirectory.tsx"></code>

docs/demo/paste.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: paste
3+
nav:
4+
title: Demo
5+
path: /demo
6+
---
7+
8+
<code src="../examples/paste.tsx"></code>

docs/demo/pasteDirectory.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: pasteDirectory
3+
nav:
4+
title: Demo
5+
path: /demo
6+
---
7+
8+
<code src="../examples/pasteDirectory.tsx"></code>

0 commit comments

Comments
 (0)