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
3340c8a7
Commit
3340c8a7
authored
Mar 06, 2019
by
刘鹏龙
Committed by
hetech
Mar 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: rename variable in Upload docs (#14593)
parent
ad861242
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
20 deletions
+20
-20
examples/docs/en-US/upload.md
examples/docs/en-US/upload.md
+5
-5
examples/docs/es/upload.md
examples/docs/es/upload.md
+5
-5
examples/docs/fr-FR/upload.md
examples/docs/fr-FR/upload.md
+5
-5
examples/docs/zh-CN/upload.md
examples/docs/zh-CN/upload.md
+5
-5
No files found.
examples/docs/en-US/upload.md
View file @
3340c8a7
...
@@ -163,7 +163,7 @@ Use `list-type` to change the fileList style.
...
@@ -163,7 +163,7 @@ Use `list-type` to change the fileList style.
action=
"https://jsonplaceholder.typicode.com/posts/"
action=
"https://jsonplaceholder.typicode.com/posts/"
:on-preview=
"handlePreview"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:on-remove=
"handleRemove"
:file-list=
"fileList
2
"
:file-list=
"fileList"
list-type=
"picture"
>
list-type=
"picture"
>
<el-button
size=
"small"
type=
"primary"
>
Click to upload
</el-button>
<el-button
size=
"small"
type=
"primary"
>
Click to upload
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
jpg/png files with a size less than 500kb
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
jpg/png files with a size less than 500kb
</div>
...
@@ -172,7 +172,7 @@ Use `list-type` to change the fileList style.
...
@@ -172,7 +172,7 @@ Use `list-type` to change the fileList style.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
fileList
2
:
[{
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
name
:
'
food2.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
}]
fileList
:
[{
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
name
:
'
food2.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
}]
};
};
},
},
methods
:
{
methods
:
{
...
@@ -198,7 +198,7 @@ Use `on-change` hook function to control upload file list
...
@@ -198,7 +198,7 @@ Use `on-change` hook function to control upload file list
class=
"upload-demo"
class=
"upload-demo"
action=
"https://jsonplaceholder.typicode.com/posts/"
action=
"https://jsonplaceholder.typicode.com/posts/"
:on-change=
"handleChange"
:on-change=
"handleChange"
:file-list=
"fileList
3
"
>
:file-list=
"fileList"
>
<el-button
size=
"small"
type=
"primary"
>
Click to upload
</el-button>
<el-button
size=
"small"
type=
"primary"
>
Click to upload
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
jpg/png files with a size less than 500kb
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
jpg/png files with a size less than 500kb
</div>
</el-upload>
</el-upload>
...
@@ -206,7 +206,7 @@ Use `on-change` hook function to control upload file list
...
@@ -206,7 +206,7 @@ Use `on-change` hook function to control upload file list
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
fileList
3
:
[{
fileList
:
[{
name
:
'
food.jpeg
'
,
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
},
{
...
@@ -217,7 +217,7 @@ Use `on-change` hook function to control upload file list
...
@@ -217,7 +217,7 @@ Use `on-change` hook function to control upload file list
},
},
methods
:
{
methods
:
{
handleChange
(
file
,
fileList
)
{
handleChange
(
file
,
fileList
)
{
this
.
fileList
3
=
fileList
.
slice
(
-
3
);
this
.
fileList
=
fileList
.
slice
(
-
3
);
}
}
}
}
}
}
...
...
examples/docs/es/upload.md
View file @
3340c8a7
...
@@ -159,7 +159,7 @@ Utilice la propiedad `list-type` para cambiar el estilo a un listado de archivos
...
@@ -159,7 +159,7 @@ Utilice la propiedad `list-type` para cambiar el estilo a un listado de archivos
action=
"https://jsonplaceholder.typicode.com/posts/"
action=
"https://jsonplaceholder.typicode.com/posts/"
:on-preview=
"handlePreview"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:on-remove=
"handleRemove"
:file-list=
"fileList
2
"
:file-list=
"fileList"
list-type=
"picture"
>
list-type=
"picture"
>
<el-button
size=
"small"
type=
"primary"
>
Clic para subir archivo
</el-button>
<el-button
size=
"small"
type=
"primary"
>
Clic para subir archivo
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
Solo archivos jpg/png con un tamaño menor de 500kb
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
Solo archivos jpg/png con un tamaño menor de 500kb
</div>
...
@@ -168,7 +168,7 @@ Utilice la propiedad `list-type` para cambiar el estilo a un listado de archivos
...
@@ -168,7 +168,7 @@ Utilice la propiedad `list-type` para cambiar el estilo a un listado de archivos
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
fileList
2
:
[{
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
name
:
'
food2.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
}]
fileList
:
[{
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
name
:
'
food2.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
}]
};
};
},
},
methods
:
{
methods
:
{
...
@@ -194,7 +194,7 @@ Utilice el _hook_ `on-change` para controlar la funcionalidad de la lista de arc
...
@@ -194,7 +194,7 @@ Utilice el _hook_ `on-change` para controlar la funcionalidad de la lista de arc
class=
"upload-demo"
class=
"upload-demo"
action=
"https://jsonplaceholder.typicode.com/posts/"
action=
"https://jsonplaceholder.typicode.com/posts/"
:on-change=
"handleChange"
:on-change=
"handleChange"
:file-list=
"fileList
3
"
>
:file-list=
"fileList"
>
<el-button
size=
"small"
type=
"primary"
>
Clic para subir archivo
</el-button>
<el-button
size=
"small"
type=
"primary"
>
Clic para subir archivo
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
Solo archivos jpg/png con un tamaño menor de 500kb
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
Solo archivos jpg/png con un tamaño menor de 500kb
</div>
</el-upload>
</el-upload>
...
@@ -202,7 +202,7 @@ Utilice el _hook_ `on-change` para controlar la funcionalidad de la lista de arc
...
@@ -202,7 +202,7 @@ Utilice el _hook_ `on-change` para controlar la funcionalidad de la lista de arc
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
fileList
3
:
[{
fileList
:
[{
name
:
'
food.jpeg
'
,
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
},
{
...
@@ -213,7 +213,7 @@ Utilice el _hook_ `on-change` para controlar la funcionalidad de la lista de arc
...
@@ -213,7 +213,7 @@ Utilice el _hook_ `on-change` para controlar la funcionalidad de la lista de arc
},
},
methods
:
{
methods
:
{
handleChange
(
file
,
fileList
)
{
handleChange
(
file
,
fileList
)
{
this
.
fileList
3
=
fileList
.
slice
(
-
3
);
this
.
fileList
=
fileList
.
slice
(
-
3
);
}
}
}
}
}
}
...
...
examples/docs/fr-FR/upload.md
View file @
3340c8a7
...
@@ -163,7 +163,7 @@ Utilisez `list-type` pour changer le style de la liste de fichiers.
...
@@ -163,7 +163,7 @@ Utilisez `list-type` pour changer le style de la liste de fichiers.
action=
"https://jsonplaceholder.typicode.com/posts/"
action=
"https://jsonplaceholder.typicode.com/posts/"
:on-preview=
"handlePreview"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:on-remove=
"handleRemove"
:file-list=
"fileList
2
"
:file-list=
"fileList"
list-type=
"picture"
>
list-type=
"picture"
>
<el-button
size=
"small"
type=
"primary"
>
Cliquer pour envoyer
</el-button>
<el-button
size=
"small"
type=
"primary"
>
Cliquer pour envoyer
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
Fichiers jpg/png avec une taille inférieure à 500kb
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
Fichiers jpg/png avec une taille inférieure à 500kb
</div>
...
@@ -172,7 +172,7 @@ Utilisez `list-type` pour changer le style de la liste de fichiers.
...
@@ -172,7 +172,7 @@ Utilisez `list-type` pour changer le style de la liste de fichiers.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
fileList
2
:
[{
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
name
:
'
food2.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
}]
fileList
:
[{
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
name
:
'
food2.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
}]
};
};
},
},
methods
:
{
methods
:
{
...
@@ -198,7 +198,7 @@ Utilisez `on-change` pour contrôler le comportement de la liste de fichiers.
...
@@ -198,7 +198,7 @@ Utilisez `on-change` pour contrôler le comportement de la liste de fichiers.
class=
"upload-demo"
class=
"upload-demo"
action=
"https://jsonplaceholder.typicode.com/posts/"
action=
"https://jsonplaceholder.typicode.com/posts/"
:on-change=
"handleChange"
:on-change=
"handleChange"
:file-list=
"fileList
3
"
>
:file-list=
"fileList"
>
<el-button
size=
"small"
type=
"primary"
>
Cliquer pour envoyer
</el-button>
<el-button
size=
"small"
type=
"primary"
>
Cliquer pour envoyer
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
Fichiers jpg/png avec une taille inférieure à 500kb
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
Fichiers jpg/png avec une taille inférieure à 500kb
</div>
</el-upload>
</el-upload>
...
@@ -206,7 +206,7 @@ Utilisez `on-change` pour contrôler le comportement de la liste de fichiers.
...
@@ -206,7 +206,7 @@ Utilisez `on-change` pour contrôler le comportement de la liste de fichiers.
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
fileList
3
:
[{
fileList
:
[{
name
:
'
food.jpeg
'
,
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
},
{
...
@@ -217,7 +217,7 @@ Utilisez `on-change` pour contrôler le comportement de la liste de fichiers.
...
@@ -217,7 +217,7 @@ Utilisez `on-change` pour contrôler le comportement de la liste de fichiers.
},
},
methods
:
{
methods
:
{
handleChange
(
file
,
fileList
)
{
handleChange
(
file
,
fileList
)
{
this
.
fileList
3
=
fileList
.
slice
(
-
3
);
this
.
fileList
=
fileList
.
slice
(
-
3
);
}
}
}
}
}
}
...
...
examples/docs/zh-CN/upload.md
View file @
3340c8a7
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
action=
"https://jsonplaceholder.typicode.com/posts/"
action=
"https://jsonplaceholder.typicode.com/posts/"
:on-preview=
"handlePreview"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:on-remove=
"handleRemove"
:file-list=
"fileList
2
"
:file-list=
"fileList"
list-type=
"picture"
>
list-type=
"picture"
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过500kb
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过500kb
</div>
...
@@ -172,7 +172,7 @@
...
@@ -172,7 +172,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
fileList
2
:
[{
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
name
:
'
food2.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
}]
fileList
:
[{
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
name
:
'
food2.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
}]
};
};
},
},
methods
:
{
methods
:
{
...
@@ -198,7 +198,7 @@
...
@@ -198,7 +198,7 @@
class=
"upload-demo"
class=
"upload-demo"
action=
"https://jsonplaceholder.typicode.com/posts/"
action=
"https://jsonplaceholder.typicode.com/posts/"
:on-change=
"handleChange"
:on-change=
"handleChange"
:file-list=
"fileList
3
"
>
:file-list=
"fileList"
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过500kb
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过500kb
</div>
</el-upload>
</el-upload>
...
@@ -206,7 +206,7 @@
...
@@ -206,7 +206,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
fileList
3
:
[{
fileList
:
[{
name
:
'
food.jpeg
'
,
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
},
{
...
@@ -217,7 +217,7 @@
...
@@ -217,7 +217,7 @@
},
},
methods
:
{
methods
:
{
handleChange
(
file
,
fileList
)
{
handleChange
(
file
,
fileList
)
{
this
.
fileList
3
=
fileList
.
slice
(
-
3
);
this
.
fileList
=
fileList
.
slice
(
-
3
);
}
}
}
}
}
}
...
...
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