当前位置:网站首页>How to empty uploaded attachments with components encapsulated by El upload
How to empty uploaded attachments with components encapsulated by El upload
2022-07-05 09:29:00 【Left hand holding * * right hand】
Upload an attachment in the recent project , Clear the list when clicking cancel . Because its attachment upload component has been deleted , The Cancel button does not call the interface . But using component attributes will report errors
, So let him refresh some parts :
<div class="file-info bdr10"
v-if="isRouterAlive">
<!-- 1====== Homework after class -->
<upload-file-flex ref="upload"
v-model="ruleForm.annex"
@getFileList="getFileList"
:accept="'.docx,.pdf'"
:limit="1"></upload-file-flex>
</div>
<div class="text-center"
style="margin-top:10px">
<el-button round
@click="removeFile"
size="mini"> Cancel </el-button>
<el-button type="primary"
size="mini"
:ldstatus="ldstatus"
style="background: #056AFF;"
@click="subMit"
round> preservation </el-button>
</div>
export default {
name: "app",
data() {
return {
isRouterAlive: true,
};
},
provide() {
return {
removeFile: this.removeFile,
};
},
methods: {
removeFile () {
this.isRouterAlive = false;
this.$nextTick(function () {
this.ruleForm.annex = ''
this.isRouterAlive = true;
});
},
},
};
边栏推荐
- My life
- Kotlin introductory notes (VII) data class and singleton class
- nodejs_ 01_ fs. readFile
- Cloud computing technology hotspot
- 2311. Longest binary subsequence less than or equal to K
- VS Code问题:长行的长度可通过 “editor.maxTokenizationLineLength“ 进行配置
- [beauty of algebra] solution method of linear equations ax=0
- Kotlin introductory notes (V) classes and objects, inheritance, constructors
- 【ManageEngine】如何利用好OpManager的报表功能
- OpenGL - Model Loading
猜你喜欢
[ManageEngine] how to make good use of the report function of OpManager
Rebuild my 3D world [open source] [serialization-3] [comparison between colmap and openmvg]
一题多解,ASP.NET Core应用启动初始化的N种方案[上篇]
Unity skframework framework (XXII), runtime console runtime debugging tool
Unity skframework framework (XXIII), minimap small map tool
mysql安装配置以及创建数据库和表
LeetCode 31. Next spread
【数组的中的某个属性的监听】
Generate confrontation network
Huber Loss
随机推荐
Applet (subcontracting)
nodejs_ 01_ fs. readFile
LeetCode 503. 下一个更大元素 II
Transfer learning and domain adaptation
【阅读笔记】图对比学习 GNN+CL
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
Figure neural network + comparative learning, where to go next?
It's too difficult to use. Long articles plus pictures and texts will only be written in short articles in the future
【el-table如何禁用】
MYSQL 对字符串类型排序不生效问题
[reading notes] Figure comparative learning gnn+cl
深入浅出PyTorch中的nn.CrossEntropyLoss
Vs code problem: the length of long lines can be configured through "editor.maxtokenizationlinelength"
STM32简易多级菜单(数组查表法)
植物大战僵尸Scratch
Project practice | excel export function
Hosting environment API
Nodejs modularization
LeetCode 556. 下一个更大元素 III
Unity skframework framework (XXII), runtime console runtime debugging tool