admin-vben5/apps/web-antd/src/views/system/role-assign/data.tsx
2024-10-17 15:16:22 +08:00

44 lines
785 B
TypeScript

import type { VxeGridProps } from '#/adapter/vxe-table';
import { type FormSchemaGetter } from '#/adapter/form';
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
fieldName: 'userName',
label: '用户账号',
},
{
component: 'Input',
fieldName: 'phonenumber',
label: '手机号码',
},
];
export const columns: VxeGridProps['columns'] = [
{ type: 'checkbox', width: 60 },
{
title: '用户账号',
field: 'userName',
},
{
title: '用户昵称',
field: 'nickName',
},
{
title: '邮箱',
field: 'email',
},
{
title: '手机号',
field: 'phonenumber',
},
{
field: 'action',
fixed: 'right',
slots: { default: 'action' },
title: '操作',
width: 180,
},
];