当前位置:网站首页>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
- 一篇文章带你走进cookie,session,Token的世界
- Composition of applet code
- Newton iterative method (solving nonlinear equations)
- 基于宽表的数据建模应用
- MYSQL 对字符串类型排序不生效问题
- 太不好用了,长文章加图文,今后只写小短文
- Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning
- 【对象数组的排序】
- [ManageEngine] how to make good use of the report function of OpManager
猜你喜欢

Lepton 无损压缩原理及性能分析

Unity SKFramework框架(二十三)、MiniMap 小地图工具

Svgo v3.9.0+

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

Applet (use of NPM package)

Kotlin introductory notes (V) classes and objects, inheritance, constructors

nodejs_ 01_ fs. readFile

植物大战僵尸Scratch

LeetCode 31. Next spread

OpenGL - Model Loading
随机推荐
使用el-upload封装得组件怎么清空已上传附件
Nodejs modularization
C # image difference comparison: image subtraction (pointer method, high speed)
Using request headers to develop multi terminal applications
一题多解,ASP.NET Core应用启动初始化的N种方案[上篇]
Wxml template syntax
Svgo v3.9.0+
【饿了么动态表格】
Applet customization component
Applet global style configuration window
微信小程序获取住户地区信息
SQL learning group by multi table grouping scenario
Kotlin introductory notes (II) a brief introduction to kotlin functions
Composition of applet code
Wechat applet obtains household area information
Driver's license physical examination hospital (114-2 hang up the corresponding hospital driver physical examination)
Principle and performance analysis of lepton lossless compression
图神经网络+对比学习,下一步去哪?
Kotlin introductory notes (VII) data class and singleton class
Unity skframework framework (24), avatar controller third person control