Skip to content

Commit

Permalink
修复一个低级问题
Browse files Browse the repository at this point in the history
  • Loading branch information
bplok20010 committed Jul 5, 2020
1 parent 651ae32 commit 59040b9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"index.css": "static/css/index.fb7f5363.chunk.css",
"index.js": "static/js/index.fb7f5363.chunk.js",
"index.css": "static/css/index.e154e0b3.chunk.css",
"index.js": "static/js/index.e154e0b3.chunk.js",
"runtime-index.js": "static/js/runtime-index.92eae014.js",
"static/js/2.ebf3e006.chunk.js": "static/js/2.ebf3e006.chunk.js",
"index.html": "index.html"
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><meta charset="utf-8"/><title>Upload</title><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1"/><style>.demo{width:80%;margin:100px auto;background:#fff;font-size:12px;overflow:auto}</style><link href="static/css/index.fb7f5363.chunk.css" rel="stylesheet"></head><body style="background:#f5f5f5"><div class="demo" id="demo"></div><script src="static/js/runtime-index.92eae014.js"></script><script src="static/js/2.ebf3e006.chunk.js"></script><script src="static/js/index.fb7f5363.chunk.js"></script></body></html>
<!doctype html><html><head><meta charset="utf-8"/><title>Upload</title><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1"/><style>.demo{width:80%;margin:100px auto;background:#fff;font-size:12px;overflow:auto}</style><link href="static/css/index.e154e0b3.chunk.css" rel="stylesheet"></head><body style="background:#f5f5f5"><div class="demo" id="demo"></div><script src="static/js/runtime-index.92eae014.js"></script><script src="static/js/2.ebf3e006.chunk.js"></script><script src="static/js/index.e154e0b3.chunk.js"></script></body></html>
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-widget-upload",
"version": "1.0.0",
"version": "1.0.1",
"description": "react-widget-upload",
"main": "cjs/index.js",
"module": "esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class Upload extends React.Component<UploadProps> {

const items = e.target.files || [];
const files: RWFile[] = [];
const fileLen = Math.max(maxFiles!, items.length);
const fileLen = Math.min(maxFiles!, items.length);

for (let i = 0; i < fileLen; i++) {
files.push(items[i]);
Expand Down Expand Up @@ -187,7 +187,7 @@ export class Upload extends React.Component<UploadProps> {
}
});
} else {
const fileLen = Math.max(maxFiles!, items.length);
const fileLen = Math.min(maxFiles!, items.length);
for (let i = 0; i < fileLen; i++) {
files.push(items[i]);
}
Expand Down

0 comments on commit 59040b9

Please sign in to comment.