- 前端项目实战壹佰柒拾贰react-admin+material ui-react-admin之Create之transform
我是歌谣微信公众号关注前端小歌谣import*asReactfrom'react';import{Button,Typography,Box}from'@mui/material';import{Create,useNotify,SimpleForm,TextInput,DateInput,required,TopToolbar}from'react-admin';constPostCreateActio......
- 前端项目实战壹佰柒拾肆react-admin+material ui-react-admin之Create之meta传递到Dat
我是歌谣微信公众号关注前端小歌谣import*asReactfrom'react';import{Button,Typography,Box}from'@mui/material';import{Create,useNotify,SimpleForm,TextInput,DateInput,required,TopToolbar}from'react-admin';constPostCreateActio......
- 前端项目实战壹佰柒拾叁react-admin+material ui-react-admin之Create之transform
我是歌谣微信公众号关注前端小歌谣exportconstUserCreate=(props)=>{consttransform=(data)=>{constsanitizedData={};for(constkeyindata){if(typeofdata[key]==="string"&&data[key].length===0)......
- 前端项目实战壹佰柒拾柒react-admin+material ui-react-admin之Create之保存并构建另
我是歌谣微信公众号关注前端小歌谣import*asReactfrom'react';import{Button,Typography,Box}from'@mui/material';import{Create,useNotify,Toolbar,SaveButton,SimpleForm,TextInput,DateInput,required,TopToolbar}from'react-admin';im......
- 前端项目实战壹佰柒拾伍react-admin+material ui-react-admin之Create之更改通知消息
我是歌谣微信公众号关注前端小歌谣import*asReactfrom'react';import{useNotify,useRedirect,Create,SimpleForm}from'react-admin';constPostCreate=()=>{constnotify=useNotify();constredirect=useRedirect();conston......
- 前端项目实战壹佰柒拾陆react-admin+material ui-react-admin之Create之构建自定义字
我是歌谣微信公众号关注前端小歌谣import{useRecordContext,Show,SimpleShowLayout}from'react-admin';constBookAuthor=()=>{constrecord=useRecordContext();if(!record)returnnull;return<span>{record.author}</span>;};......
- 前端项目实战壹佰柒拾捌react-admin+material ui-react-admin之Create之CreateBase基
我是歌谣微信公众号关注前端小歌谣import*asReactfrom"react";import{CreateBase,SimpleForm,TextInput,SelectInput}from"react-admin";import{Card}from"@mui/material";exportconstBookCreate=()=>(<CreateBase>......
- 前端项目实战壹佰柒拾玖react-admin+material ui-react-admin之Edit之基本用法
我是歌谣微信公众号关注前端小歌谣import*asReactfrom"react";import{Edit,SimpleForm,TextInput,DateInput,ReferenceManyField,Datagrid,TextField,DateField,EditButton,required}from'react-admin';exportconstReditEdit=()=>(......
- 前端项目实战壹佰捌拾react-admin+material ui-react-admin之Edit之actions
我是歌谣微信公众号关注前端小歌谣import*asReactfrom"react";import{Button}from'@mui/material';import{Edit,ListButton,ShowButton,SimpleForm,TextInput,TopToolbar,DateInput,ReferenceManyField,Datagrid,TextField,DateField,EditButton,......
- 前端项目实战壹佰捌拾壹react-admin+material ui-react-admin之Edit之ShowButton和Lis
我是歌谣微信公众号关注前端小歌谣import*asReactfrom"react";import{Button}from'@mui/material';import{Edit,ListButton,ShowButton,SimpleForm,TextInput,TopToolbar,DateInput,ReferenceManyField,Datagrid,TextField,DateField,EditButton,......