脚本宝典收集整理的这篇文章主要介绍了vue 数据导入加载样式,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
<el-form :inline="true" size="small"> <el-col :span="2"> <el-upload class="margin-left" ref="upload" :action="action" :before-upload="importLoad" :on-success="handleSuccess" :on-error="handleError" :show-file-list="false" :accept="fileAccept"> <el-button type="primary" v-loading.fullscreen.lock="importLoading" :size="size">导入</el-button> </el-upload> </el-col> <el-col :span="2"> <el-button type="primary" class="margin-bottom" :size="size" @click="downloadTemplate">模板下载</el-button> </el-col> </el-form> importLoad() { this.importLoading = true }, handleSuccess(res, file, fileList) { if(res.code === 200) { this.importData = res.data this.importDataTotal = res.data.length this.importDialog = true this.importLoading = false } else { this.importLoading = false this.$message.error(res.message) } }, handleError(res){ this.importLoading = false this.$message.error(res.message) },
v-loading.fullscreen.lock
以上是脚本宝典为你收集整理的vue 数据导入加载样式全部内容,希望文章能够帮你解决vue 数据导入加载样式所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。