import { RenderScope } from "@/components/ProTable/interface";
export const COLUMNS = [
    {
        align: "center",
        fixed: true,
        label: "ID",
        prop: "id",
        width: 80
    },

    {
        align: "center",
        fixed: true,
        label: "角色名",
        prop: "name"
    },
    {
        align: "center",
        label: "角色描述",
        prop: "desc"
    },
    {
        align: "center",
        label: "权限",
        prop: "authority",
        render: (scope: RenderScope<any>): VNode | string | any => {
            return Object.values(scope.row.authority).join("/");

            // return scope.row.authority ? scope.row.authority.join(",") : "";
        }
    },
    { prop: "operation", label: "操作", fixed: "right", width: 200 }
];
