Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
e45572cc
Commit
e45572cc
authored
Feb 22, 2017
by
baiyaaaaa
Committed by
GitHub
Feb 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix docs upload action (#2963)
parent
5631a49c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
examples/docs/en-US/upload.md
examples/docs/en-US/upload.md
+7
-7
examples/docs/zh-CN/upload.md
examples/docs/zh-CN/upload.md
+7
-7
No files found.
examples/docs/en-US/upload.md
View file @
e45572cc
...
...
@@ -86,7 +86,7 @@ Upload files by clicking or drag-and-drop
```
html
<el-upload
class=
"upload-demo"
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:file-list=
"fileList"
>
...
...
@@ -121,7 +121,7 @@ Use `before-upload` hook to limit the upload file format and size.
```
html
<el-upload
class=
"avatar-uploader"
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
:show-file-list=
"false"
:on-success=
"handleAvatarScucess"
:before-upload=
"beforeAvatarUpload"
>
...
...
@@ -164,7 +164,7 @@ Use `list-type` to change the fileList style.
::: demo
```
html
<el-upload
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
list-type=
"picture-card"
:on-preview=
"handlePictureCardPreview"
:on-remove=
"handleRemove"
>
...
...
@@ -201,7 +201,7 @@ Use `list-type` to change the fileList style.
```
html
<el-upload
class=
"upload-demo"
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:file-list=
"fileList2"
...
...
@@ -237,7 +237,7 @@ Use `on-change` hook function to control upload file list
```
html
<el-upload
class=
"upload-demo"
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
:on-change=
"handleChange"
:file-list=
"fileList3"
>
<el-button
size=
"small"
type=
"primary"
>
Click to upload
</el-button>
...
...
@@ -277,7 +277,7 @@ You can drag your file to a certain area to upload it.
<el-upload
class=
"upload-demo"
drag
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:file-list=
"fileList"
...
...
@@ -296,7 +296,7 @@ You can drag your file to a certain area to upload it.
<el-upload
class=
"upload-demo"
ref=
"upload"
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
:auto-upload=
"false"
>
<el-button
slot=
"trigger"
size=
"small"
type=
"primary"
>
select file
</el-button>
<el-button
style=
"margin-left: 10px;"
size=
"small"
type=
"success"
@
click=
"submitUpload"
>
upload to server
</el-button>
...
...
examples/docs/zh-CN/upload.md
View file @
e45572cc
...
...
@@ -127,7 +127,7 @@
```
html
<el-upload
class=
"upload-demo"
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:file-list=
"fileList"
>
...
...
@@ -162,7 +162,7 @@
```
html
<el-upload
class=
"avatar-uploader"
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
:show-file-list=
"false"
:on-success=
"handleAvatarScucess"
:before-upload=
"beforeAvatarUpload"
>
...
...
@@ -205,7 +205,7 @@
::: demo
```
html
<el-upload
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
list-type=
"picture-card"
:on-preview=
"handlePictureCardPreview"
:on-remove=
"handleRemove"
>
...
...
@@ -242,7 +242,7 @@
```
html
<el-upload
class=
"upload-demo"
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:file-list=
"fileList2"
...
...
@@ -278,7 +278,7 @@
```
html
<el-upload
class=
"upload-demo"
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
:on-change=
"handleChange"
:file-list=
"fileList3"
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
...
...
@@ -316,7 +316,7 @@
<el-upload
class=
"upload-demo"
drag
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
mutiple
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
...
...
@@ -332,7 +332,7 @@
<el-upload
class=
"upload-demo"
ref=
"upload"
action=
"
http://localhost:9000/upload
"
action=
"
//jsonplaceholder.typicode.com/posts/
"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:file-list=
"fileList"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment