摘要:
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)
摘要:
<SimpleFormIterator getItemLabel={index => `#${index + 1}`}> <TextInput source="name" /> <NumberInput source="price" /> <NumberInput source="quantity" 阅读全文
posted @ 2023-08-26 20:10
前端导师歌谣
阅读(12)
评论(0)
推荐(0)
摘要:
<SimpleFormIterator fullWidth> <TextInput source="name" /> <NumberInput source="price" /> <NumberInput source="quantity" /> </SimpleFormIterator> 行操作出 阅读全文
posted @ 2023-08-26 20:10
前端导师歌谣
阅读(11)
评论(0)
推荐(0)
摘要:
<SimpleFormIterator disableReordering> <TextInput source="name" /> <NumberInput source="price" /> <NumberInput source="quantity" /> </SimpleFormIterat 阅读全文
posted @ 2023-08-26 20:10
前端导师歌谣
阅读(13)
评论(0)
推荐(0)
摘要:
SimpleFormIterator disableRemove> <TextInput source="name" /> <NumberInput source="price" /> <NumberInput source="quantity" /> </SimpleFormIterator> 不 阅读全文
posted @ 2023-08-26 20:09
前端导师歌谣
阅读(11)
评论(0)
推荐(0)
摘要:
<SimpleFormIterator disableClear> <TextInput source="name" /> <NumberInput source="price" /> <NumberInput source="quantity" /> </SimpleFormIterator> 限 阅读全文
posted @ 2023-08-26 20:09
前端导师歌谣
阅读(9)
评论(0)
推荐(0)
摘要:
<SimpleFormIterator disableAdd> <TextInput source="name" /> <NumberInput source="price" /> <NumberInput source="quantity" /> </SimpleFormIterator> 限制添 阅读全文
posted @ 2023-08-26 20:09
前端导师歌谣
阅读(12)
评论(0)
推荐(0)
摘要:
<SimpleFormIterator className="dummy"> <TextInput source="name" /> <NumberInput source="price" /> <NumberInput source="quantity" /> </SimpleFormIterat 阅读全文
posted @ 2023-08-26 20:08
前端导师歌谣
阅读(10)
评论(0)
推荐(0)
摘要:
<SimpleFormIterator> <TextInput source="name" /> <NumberInput source="price" /> <NumberInput source="quantity" /> </SimpleFormIterator> 在每一行上面呈现的输入元素列 阅读全文
posted @ 2023-08-26 20:08
前端导师歌谣
阅读(12)
评论(0)
推荐(0)
摘要:
<SimpleFormIterator addButton={<Button>Add</Button>}> <TextInput source="name" /> <NumberInput source="price" /> <NumberInput source="quantity" /> </S 阅读全文
posted @ 2023-08-26 20:08
前端导师歌谣
阅读(14)
评论(0)
推荐(0)
摘要:
import { Edit, SimpleForm, TextInput, DateInput, ArrayInput, NumberInput, SimpleFormIterator } from 'react-admin'; const OrderEdit = () => ( <Edit> <S 阅读全文
posted @ 2023-08-26 20:07
前端导师歌谣
阅读(9)
评论(0)
推荐(0)

浙公网安备 33010602011771号