摘要: ​ 目录 前言 导语 代码部分 运行结果 前言 我是歌谣 歌谣的意志是永恒的 放弃很容易 但是坚持一定很酷 导语 实现两栏布局第三种方式 ​编辑 代码部分 ``` 两栏布局 左侧 右侧 ``` 运行结果 ​编辑 ​ 阅读全文
posted @ 2023-08-17 19:50 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: ​ 目录 前言 导语 代码部分 运行结果 前言 我是歌谣 歌谣的意志是永恒的 放弃很容易 但是坚持一定很酷 导语 实现两栏布局第二种方式 ​编辑 代码部分 ``` 实现两栏布局 左侧 右侧 ``` 运行结果 ​编辑 ​ 阅读全文
posted @ 2023-08-17 19:49 前端导师歌谣 阅读(12) 评论(0) 推荐(0)
摘要: import { AutoSave } from '@react-admin/ra-form-layout'; import { Edit, SimpleForm, TextInput, DateInput, SelectInput, Toolbar } from 'react-admin'; co 阅读全文
posted @ 2023-08-17 19:47 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: import * as React from "react"; import { Button, Typography, Box } from '@mui/material'; import { Edit, ListButton,SimpleFormConfigurable, useRecordCo 阅读全文
posted @ 2023-08-17 19:46 前端导师歌谣 阅读(17) 评论(0) 推荐(0)
摘要: import { usePermissions, Create, SimpleForm, TextInput } from 'react-admin'; export const UserCreate = () => { const { permissions } = useGetPermissio 阅读全文
posted @ 2023-08-17 19:46 前端导师歌谣 阅读(17) 评论(0) 推荐(0)
摘要: import * as React from "react"; import { Button, Typography, Box } from '@mui/material'; import { Edit, ListButton, useRecordContext, Labeled, ShowBut 阅读全文
posted @ 2023-08-17 19:46 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: import * as React from "react"; import {Button,Typography,Box} from '@mui/material'; import { Edit, ListButton,useRecordContext,Labeled, ShowButton, S 阅读全文
posted @ 2023-08-17 19:46 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: import * as React from "react"; import {Button,Typography,Box} from '@mui/material'; import { Edit, ListButton,useRecordContext, ShowButton, SimpleFor 阅读全文
posted @ 2023-08-17 19:45 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: const validateUserCreation = (values) => { const errors = {}; if (!values.firstName) { errors.firstName = 'The firstName is required'; } if (!values.a 阅读全文
posted @ 2023-08-17 19:45 前端导师歌谣 阅读(12) 评论(0) 推荐(0)
摘要: 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 前端导师歌谣 阅读(19) 评论(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 前端导师歌谣 阅读(11) 评论(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 前端导师歌谣 阅读(10) 评论(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)
摘要: import * as React from "react"; import { EditBase, SimpleForm, TextInput, SelectInput } from "react-admin"; import { Card } from "@mui/material"; expo 阅读全文
posted @ 2023-08-17 19:42 前端导师歌谣 阅读(11) 评论(0) 推荐(0)