liu
liu
这家伙很懒,什么也没写!

注册于 1年前

回答
1
文章
0
关注者
0

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)

发布
问题