import { SelectArrayInput } from 'react-admin';
const UserCreate = () => (
<Create>
<SimpleForm>
<SelectArrayInput source="roles" choices={[
{ id: 'admin', name: 'Admin' },
{ id: 'u001', name: 'Editor' },
{ id: 'u002', name: 'Moderator' },
{ id: 'u003', name: 'Reviewer' },
]} />
</SimpleForm>
</Create>
);
前端项目实战贰佰玖拾壹react-admin+material ui-react-admin-admin中SelectInput
最新推荐文章于 2024-08-22 17:38:39 发布