当前位置:网站首页>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;
});
},
},
};
边栏推荐
- It's too difficult to use. Long articles plus pictures and texts will only be written in short articles in the future
- 浅谈Label Smoothing技术
- The research trend of map based comparative learning (gnn+cl) in the top paper
- Applet (use of NPM package)
- 微信小程序获取住户地区信息
- Node の MongoDB Driver
- Svg optimization by svgo
- Wechat applet obtains household area information
- scipy. misc. imread()
- 【对象数组a与对象数组b取出id不同元素赋值给新的数组】
猜你喜欢
The research trend of map based comparative learning (gnn+cl) in the top paper
OpenGL - Coordinate Systems
nodejs_ 01_ fs. readFile
Applet customization component
LeetCode 496. 下一个更大元素 I
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
C form click event did not respond
3D reconstruction open source code summary [keep updated]
Lepton 无损压缩原理及性能分析
C language - input array two-dimensional array a from the keyboard, and put 3 in a × 5. The elements in the third column of the matrix are moved to the left to the 0 column, and the element rows in ea
随机推荐
LeetCode 503. Next bigger Element II
【两个对象合并成一个对象】
Confusion matrix
干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
STM32 simple multi-level menu (array table lookup method)
Rebuild my 3D world [open source] [serialization-1]
一文详解图对比学习(GNN+CL)的一般流程和最新研究趋势
Using request headers to develop multi terminal applications
Nodemon installation and use
Applet (subcontracting)
Jenkins pipeline method (function) definition and call
【愚公系列】2022年7月 Go教学课程 003-IDE的安装和基本使用
22-07-04 Xi'an Shanghao housing project experience summary (01)
Node の MongoDB Driver
阿里十年测试带你走进APP测试的世界
2311. Longest binary subsequence less than or equal to K
LeetCode 31. Next spread
OpenGL - Coordinate Systems
Wxml template syntax
Talking about the difference between unittest and pytest