摘要: import * as React from "react"; import { Admin } from 'react-admin'; import simpleRestProvider from 'ra-data-simple-rest'; import Dashboard from './Da 阅读全文
posted @ 2023-08-20 20:51 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: import * as React from "react"; import Card from '@mui/material/Card'; import CardContent from '@mui/material/CardContent'; import { Title } from 'rea 阅读全文
posted @ 2023-08-20 20:51 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: import { Admin } from 'react-admin'; import { createBrowserHistory } from 'history'; const history = createBrowserHistory(); const App = () => ( <Admi 阅读全文
posted @ 2023-08-20 20:51 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: const App = () => ( <Admin dataProvider={dataProvider} dashboard={Dashboard}> <Resource name="customers" list={CustomerList} edit={CustomerEdit} /> <R 阅读全文
posted @ 2023-08-20 20:50 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: const dataProvider = { getList: (resource, params) => Promise, getOne: (resource, params) => Promise, getMany: (resource, params) => Promise, getManyR 阅读全文
posted @ 2023-08-20 20:50 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: import { Admin, Resource } from 'react-admin'; import simpleRestProvider from 'ra-data-simple-rest'; import { PostList } from './posts'; const App = ( 阅读全文
posted @ 2023-08-20 20:50 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: setStyleSelect(categoryId) setCategorySelect("") setSelectTitle(false) const url = `StyleListView/${categoryId}` navigate(url) props.handleNavigate&&p 阅读全文
posted @ 2023-08-20 20:49 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: import { Edit, SimpleForm, TextInput } from 'react-admin'; import { useParams } from 'react-router-dom'; export const SongDetail = () => { const { id, 阅读全文
posted @ 2023-08-20 20:49 前端导师歌谣 阅读(4) 评论(0) 推荐(0)
摘要: import { Admin, Resource } from 'react-admin'; import { Route } from 'react-router-dom'; export const App = () => ( <Admin dataProvider={dataProvider} 阅读全文
posted @ 2023-08-20 20:49 前端导师歌谣 阅读(12) 评论(0) 推荐(0)
摘要: <Resource name='t_prod_category' recordRepresentation="category_name" list={CategoryList} show={CategoryShow} create={CategoryAdd} edit={CategoryEdit} 阅读全文
posted @ 2023-08-19 21:55 前端导师歌谣 阅读(8) 评论(0) 推荐(0)