//定义table配置
export const roleTableColumns = [
    { prop: 'name', label: '角色名称', align: 'center' as const },
    { prop: 'title', label: '角色标题', align: 'center' as const },
    { prop: 'status', slotName: 'status', label: '状态', align: 'center' as const },
    { prop: 'createTime', slotName: 'createTime', label: '创建时间', align: 'center' as const, width: '260px' },
    { prop: 'action', slotName: 'action', label: '操作', align: 'center' as const, width: '260px' },
]

//定义roleForm配置
export const roleFormItem = [
    { prop: 'name', label: '角色名称', type: 'input' as const, placeholder: '请输入角色名称' },
    { prop: 'title', label: '角色标题', type: 'input' as const, placeholder: '请输入角色标题' },
]
export const permissionsFormItem = [
    { prop: 'permissions', label: '', type: 'slot' as const, slotName: 'permissions' },
]