摘要:
import * as React from 'react'; import {Button,Typography,Box} from '@mui/material'; import { Create,useNotify,useRedirect,Toolbar,SaveButton, SimpleF 阅读全文
posted @ 2023-08-17 19:45
前端导师歌谣
阅读(12)
评论(0)
推荐(0)
摘要:
const PostCreate = () => ( <Create> <SimpleForm sanitizeEmptyValues> ... </SimpleForm> </Create> ); React-admin 输入会自动将这些空值转换为null 阅读全文
posted @ 2023-08-17 19:44
前端导师歌谣
阅读(18)
评论(0)
推荐(0)
摘要:
import * as React from 'react'; import {Button,Typography,Box} from '@mui/material'; import { Create,useNotify,Toolbar,SaveButton, SimpleForm, TextInp 阅读全文
posted @ 2023-08-17 19:44
前端导师歌谣
阅读(10)
评论(0)
推荐(0)
摘要:
const PostCreate = () => ( <Create> <SimpleForm noValidate> <TextInput source="title" /> <RichTextInput source="body" /> <NumberInput source="nb_views 阅读全文
posted @ 2023-08-17 19:44
前端导师歌谣
阅读(10)
评论(0)
推荐(0)
摘要:
export const PostCreate = () => ( <Create> <SimpleForm toolbar={false} id="post_create_form"> <TextInput source="title" /> <RichTextInput source="body 阅读全文
posted @ 2023-08-17 19:44
前端导师歌谣
阅读(10)
评论(0)
推荐(0)
摘要:
import React from 'react' import { List,Datagrid,TextField,EditButton,DeleteButton,BooleanField } from 'react-admin' const postDefaultValue = () => ({ 阅读全文
posted @ 2023-08-17 19:43
前端导师歌谣
阅读(5)
评论(0)
推荐(0)
摘要:
import * as React from 'react'; import {Button,Typography,Box} from '@mui/material'; import { Create,useNotify,Toolbar,SaveButton, SimpleForm, TextInp 阅读全文
posted @ 2023-08-17 19:43
前端导师歌谣
阅读(9)
评论(0)
推荐(0)
摘要:
import { Create, SimpleForm, TextInput, RichTextInput, NumberInput } from 'react-admin'; export const PostCreate = () => ( <Create> <SimpleForm> <Text 阅读全文
posted @ 2023-08-17 19:43
前端导师歌谣
阅读(9)
评论(0)
推荐(0)
摘要:
import React from 'react' import { List,Datagrid,TextField,EditButton,DeleteButton,BooleanField } from 'react-admin' const RSimpleFormFirst = (props: 阅读全文
posted @ 2023-08-17 19:43
前端导师歌谣
阅读(8)
评论(0)
推荐(0)
摘要:
<Grid style={{ flexGrow: "1", margin: "24px 0 0 24px" }} > <Admin dataProvider={dataProvider} basename='/createlist' layout={appLayout} > <Resource na 阅读全文
posted @ 2023-08-17 19:42
前端导师歌谣
阅读(7)
评论(0)
推荐(0)