当前位置:网站首页>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;
});
},
},
};
边栏推荐
- Introduction Guide to stereo vision (5): dual camera calibration [no more collection, I charge ~]
- Thermometer based on STM32 single chip microcomputer (with face detection)
- Kotlin introductory notes (I) kotlin variables and non variables
- uni-app---uni.navigateTo跳转传参使用
- 【sourceTree配置SSH及使用】
- Nodemon installation and use
- LeetCode 31. 下一个排列
- np. allclose
- [team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
- Rebuild my 3D world [open source] [serialization-3] [comparison between colmap and openmvg]
猜你喜欢
C语言-从键盘输入数组二维数组a,将a中3×5矩阵中第3列的元素左移到第0列,第3列以后的每列元素行依次左移,原来左边的各列依次绕到右边
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
22-07-04 西安 尚好房-项目经验总结(01)
初识结构体
Introduction Guide to stereo vision (4): DLT direct linear transformation of camera calibration [recommended collection]
Nodejs modularization
【ManageEngine】如何利用好OpManager的报表功能
[ManageEngine] how to make good use of the report function of OpManager
Lepton 无损压缩原理及性能分析
Global configuration tabbar
随机推荐
OpenGL - Lighting
一篇文章带你走进cookie,session,Token的世界
Applet (subcontracting)
【饿了么动态表格】
2311. Longest binary subsequence less than or equal to K
Kotlin introductory notes (VIII) collection and traversal
AUTOSAR from getting started to mastering 100 lectures (103) -dbc file format and creation details
mysql安装配置以及创建数据库和表
Svg optimization by svgo
【el-table如何禁用】
SQL learning alter add new field
VS Code问题:长行的长度可通过 “editor.maxTokenizationLineLength“ 进行配置
Hosting environment API
MySQL does not take effect in sorting string types
Unity skframework framework (24), avatar controller third person control
Applet customization component
C # compare the differences between the two images
阿里十年测试带你走进APP测试的世界
OpenGL - Coordinate Systems
L'information et l'entropie, tout ce que vous voulez savoir est ici.