摘要: 阅读全文
posted @ 2023-08-25 09:57 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-08-25 09:57 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: import { SelectArrayInput } from 'react-admin'; const UserCreate = () => ( <Create> <SimpleForm> <SelectArrayInput source="roles" choices={[ { id: 'ad 阅读全文
posted @ 2023-08-25 09:56 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: import { SelectInput } from 'react-admin'; <SelectInput source="category" choices={[ { id: 'tech', name: 'Tech' }, { id: 'lifestyle', name: 'Lifestyle 阅读全文
posted @ 2023-08-25 09:56 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: import { Edit, SimpleForm, TextInput } from 'react-admin'; import { RichTextInput } from 'ra-input-rich-text'; export const PostEdit = () => ( <Edit> 阅读全文
posted @ 2023-08-25 09:56 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: import { Edit, SimpleForm, TextInput, ReferenceArrayInput } from 'react-admin'; const PostEdit = () => ( <Edit> <SimpleForm> <TextInput source="title" 阅读全文
posted @ 2023-08-25 09:56 前端导师歌谣 阅读(12) 评论(0) 推荐(0)
摘要: import { Edit, SimpleForm, TextInput } from 'react-admin'; import { ReferenceNodeInput } from '@react-admin/ra-tree'; const ProductEdit = () => ( <Edi 阅读全文
posted @ 2023-08-25 09:55 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: <ReferenceInput source="company_id" reference="companies" /> 资源 阅读全文
posted @ 2023-08-25 09:55 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: <ReferenceInput source="company" reference="companies" sort={{ field: 'name', order: 'ASC' }} /> 按照某数据进行排序 阅读全文
posted @ 2023-08-25 09:55 前端导师歌谣 阅读(19) 评论(0) 推荐(0)
摘要: <ReferenceInput source="company_id" reference="companies" queryOptions={{ meta: { foo: 'bar' } }} /> 获取可能得查询数据 阅读全文
posted @ 2023-08-25 09:54 前端导师歌谣 阅读(14) 评论(0) 推荐(0)