摘要: import { ArrayField, ChipField, Datagrid, Show, SimpleShowLayout, SingleFieldList, TextField } from 'react-admin'; const PostShow = () => ( <Show> <Si 阅读全文
posted @ 2023-08-26 20:13 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: import { useInput } from 'react-admin'; const TitleInput = ({ source, label }) => { const { id, field, fieldState } = useInput({ source }); return ( < 阅读全文
posted @ 2023-08-26 20:13 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: <TranslatableInputs locales={['en', 'fr']}> <TextInput source="name" /> <RichTextInput source="description" /> </TranslatableInputs> 区域设置位置 阅读全文
posted @ 2023-08-26 20:13 前端导师歌谣 阅读(34) 评论(0) 推荐(0)
摘要: <TranslatableInputs locales={['en', 'fr']} defaultLocale="fr"> <TextInput source="name" /> <RichTextInput source="description" /> </TranslatableInputs 阅读全文
posted @ 2023-08-26 20:12 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: <TranslatableInputs locales={['en', 'fr']}> <TextInput source="name" /> <RichTextInput source="description" /> </TranslatableInputs> 翻译软件 阅读全文
posted @ 2023-08-26 20:12 前端导师歌谣 阅读(33) 评论(0) 推荐(0)
摘要: import { TimeInput } from 'react-admin'; <TimeInput source="published_at" /> 运行结果 阅读全文
posted @ 2023-08-26 20:12 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: import { Edit, SimpleForm, TextInput, required } from 'react-admin'; export const PostEdit = () => ( <Edit title={<PostTitle />}> <SimpleForm> <TextIn 阅读全文
posted @ 2023-08-26 20:12 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: const ReOrderButtons = () => { const { index, total, reOrder } = useSimpleFormIteratorItem(); return ( <> <IconButton size="small" onClick={() => reOr 阅读全文
posted @ 2023-08-26 20:11 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: SimpleFormIterator removeButton={<Button>Remove</Button>}> <TextInput source="name" /> <NumberInput source="price" /> <NumberInput source="quantity" / 阅读全文
posted @ 2023-08-26 20:11 前端导师歌谣 阅读(12) 评论(0) 推荐(0)
摘要: <SimpleFormIterator inline> <TextInput source="name" /> <NumberInput source="price" /> <NumberInput source="quantity" /> </SimpleFormIterator> 运行结果 每行 阅读全文
posted @ 2023-08-26 20:11 前端导师歌谣 阅读(11) 评论(0) 推荐(0)