Demo:修复导入弹窗选择了一个文件后再把它删除实际上并没有删掉的问题
This commit is contained in:
parent
798591f6f9
commit
70b6b0052f
@ -8,10 +8,12 @@
|
|||||||
<el-upload
|
<el-upload
|
||||||
ref="upload"
|
ref="upload"
|
||||||
action="x"
|
action="x"
|
||||||
|
accept=".smm,.json,.xmind,.xlsx,.md"
|
||||||
:file-list="fileList"
|
:file-list="fileList"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:multiple="false"
|
:multiple="false"
|
||||||
:on-change="onChange"
|
:on-change="onChange"
|
||||||
|
:on-remove="onRemove"
|
||||||
:limit="1"
|
:limit="1"
|
||||||
:on-exceed="onExceed"
|
:on-exceed="onExceed"
|
||||||
>
|
>
|
||||||
@ -117,6 +119,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 移除文件
|
||||||
|
onRemove(file, fileList) {
|
||||||
|
this.fileList = fileList
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: 王林
|
* @Author: 王林
|
||||||
* @Date: 2021-08-03 22:48:47
|
* @Date: 2021-08-03 22:48:47
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user