当前位置:网站首页>el-table-column行按钮防重控制loading
el-table-column行按钮防重控制loading
2022-06-29 15:15:00 【*๛ก(ー̀ωー́ก) 】
无需初始化el-table的:data,直接加:loading="scope.row.installBtn"即可!
<el-table-column label="操作">
<template slot-scope="scope">
<el-button
:loading="scope.row.installBtn" size="mini"
@click="handleInstall(scope.row)" type="primary">安装 </el-button> </template> </el-table-column> handleInstall(row){
row.installBtn = true 请求...{
row.installBtn = false
}
如果请求用request.js包裹比较特殊,出错时的row.installBtn = false不生效,则:(el-table的:data=dataList)
<el-table-column label="操作">
<template slot-scope="scope">
<el-button
:loading="scope.row.installBtn" size="mini"
@click="handleInstall(scope.row,scope.$index)" type="primary">安装 </el-button> </template> </el-table-column> handleInstall(row,currentIndex){
this.$set(this.dataList[currentIndex],'installBtn',true) 请求...{
this.$set(this.dataList[currentIndex],'installBtn',false)
}
边栏推荐
- Sofaregistry source code | data synchronization module analysis
- Lumiprobe reactive dye miscellaneous dye: BDP FL ceramide
- NFT链游开发应用:2022年值得关注的6大NFT趋势
- Lumiprobe click chemistry - non fluorescent azide: azide-peg3-oh
- 中序和后序遍历构建二叉树[递归划分区间与回溯拼接子树+中后序和中前序的相似与不同]
- SOFARegistry 源码|数据同步模块解析
- 投资reits基金是靠谱吗,reits基金安全吗
- Lumiprobe 脱氧核糖核酸丨磷酸盐 CPG 1000 固体载体
- 请说下redis命令的时间复杂度??(实际问的是redis底层结构)
- 雷达基本组成
猜你喜欢

又拍云 Redis 的改进之路

SOFARegistry 源码|数据同步模块解析

打造一个 API 快速开发平台,牛逼!

Classe d'outils commune de fichier, application liée au flux (enregistrement)

ROS notes (10) - Launch file startup

Ink drop typesetting

使用自定义注解实现Redis分布式锁

Lumiprobe 脱氧核糖核酸丨磷酸盐 CPG 1000 固体载体

Real software testers = "half product + Half development"?

PyTorch 二维多通道卷积运算方式
随机推荐
.NET程序配置文件操作(ini,cfg,config)
第九章 APP项目测试(4) 测试工具
File常用工具類, 流相關運用 (記錄)
c#Sqlite类库
分页sql(rownum、row_number、dense_rank、rank)
Konva series Tutorial 4: drawing attributes
Excel中构建SQL语句
关于SQL+NoSQL : NewSQL数据库
Informatics Olympiad all in one 2062: movie tickets
雷达发射机
MySQL为什么选择B+树存储索引
第九章 APP项目测试(此章完结)
MySQL development specification pdf
What is the time complexity of the redis command?? (the actual question is about the underlying structure of redis)
Scroll,你玩明白了嘛?
MCS: multivariate random variable - discrete random variable
12.UDP协议-bite
投资reits基金是靠谱吗,reits基金安全吗
Leetcode notes: biweekly contest 81
Abnormal logic reasoning problem of Huawei software test written test [2] Huawei hot interview problem