rowHandle: {
width: 140,
view: {
thin: true,//瘦模式,thin=true 且 text=null 可以设置方形按钮节省位置
// show: true,
text: "",
disabled() {
return !vm.hasPermissions("Retrieve");
// return false
},
show(index,row){
return row.z_status===1
}
},
edit: {
thin: true,
text: "",
disabled() {
return !vm.hasPermissions("Update");
}
},
remove: {
thin: true,
text: "",
disabled() {
return !vm.hasPermissions("Delete");
}
}
},
[输入链接说明](http://d2-crud-plus.docmirror.cn/d2-crud-plus/guide/options.html#crudoptions)
问 如何根据列表中状态,出现对应操作按钮