|
@@ -159,7 +159,7 @@ Utilice la propiedad `list-type` para cambiar el estilo a un listado de archivos
|
|
|
action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
:on-preview="handlePreview"
|
|
|
:on-remove="handleRemove"
|
|
|
- :file-list="fileList2"
|
|
|
+ :file-list="fileList"
|
|
|
list-type="picture">
|
|
|
<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>
|
|
@@ -168,7 +168,7 @@ Utilice la propiedad `list-type` para cambiar el estilo a un listado de archivos
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- fileList2: [{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: {
|
|
@@ -194,7 +194,7 @@ Utilice el _hook_ `on-change` para controlar la funcionalidad de la lista de arc
|
|
|
class="upload-demo"
|
|
|
action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
:on-change="handleChange"
|
|
|
- :file-list="fileList3">
|
|
|
+ :file-list="fileList">
|
|
|
<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>
|
|
|
</el-upload>
|
|
@@ -202,7 +202,7 @@ Utilice el _hook_ `on-change` para controlar la funcionalidad de la lista de arc
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- fileList3: [{
|
|
|
+ fileList: [{
|
|
|
name: 'food.jpeg',
|
|
|
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
|
|
|
},
|
|
|
methods: {
|
|
|
handleChange(file, fileList) {
|
|
|
- this.fileList3 = fileList.slice(-3);
|
|
|
+ this.fileList = fileList.slice(-3);
|
|
|
}
|
|
|
}
|
|
|
}
|