User {
id: number;
firstName: string;
LastName: string;
department: string;
status: number;
}这是一条记录。数据列来自API调用。对于搜索,我为字段"department“输入了文本。要求是在搜索中使用select for department from remote API调用。
部门不需要显示在结果表中。
{
title: 'department',
dataIndex: 'department',
hideInTable: true,
hideInForm: true,
hideInSearch: false,
valueType: 'select',
}我不确定如何将数据放入select选项。以前有人试过这个吗?非常感谢!
发布于 2021-06-30 21:27:15
我认为你可以,你所需要做的就是将valueEnum添加到专栏中
{
title: 'department',
dataIndex: 'department',
hideInTable: true,
hideInForm: true,
hideInSearch: false,
valueType: 'select',
valueEnum: {
value:"label",
},
}https://stackoverflow.com/questions/68138460
复制相似问题