摘要: 代码部分 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>歌谣居中 阅读全文
posted @ 2023-08-22 21:09 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: 第一步 注册github账号 首先打开自己得github网址 https://github.com/ 用自己常用得邮箱注册一个个人得github账号 不多赘述 第二步 安装git工具 账号注册完毕之后需要安装git工具 紧接着就是下一步下一步程序得安装 注意不要安装再c盘即可 当本地出现以上图标 w 阅读全文
posted @ 2023-08-22 21:08 前端导师歌谣 阅读(39) 评论(0) 推荐(0)
摘要: <AutocompleteInput source="category" choices={choices} shouldRenderSuggestions={(val) => { return val.trim().length > 2 }} /> 什么时候呈现建议的条件 阅读全文
posted @ 2023-08-22 21:05 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: const choices = [ { _id: 'tech', name: 'Tech' }, { _id: 'lifestyle', name: 'Lifestyle' }, { _id: 'people', name: 'People' }, ]; <AutocompleteInput sou 阅读全文
posted @ 2023-08-22 21:05 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: <AutocompleteInput source="category" optionText="label" choices={[ { id: 'tech', label: 'Tech' }, { id: 'lifestyle', label: 'Lifestyle' }, { id: 'peop 阅读全文
posted @ 2023-08-22 21:04 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: import { AutocompleteInput, Create, SimpleForm, TextInput } from 'react-admin'; const PostCreate = () => { const categories = [ { name: 'Tech', id: 't 阅读全文
posted @ 2023-08-22 21:04 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: import { useGetList, AutocompleteInput } from 'react-admin'; const UserCountry = () => { const { data, isLoading } = useGetList('countries'); // data 阅读全文
posted @ 2023-08-22 21:04 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: import { useGetList } from 'react-admin'; const LatestNews = () => { const { data, total, isLoading, error } = useGetList( 'posts', { pagination: { pa 阅读全文
posted @ 2023-08-22 21:03 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: const filterToQuery = searchText => ({ name_ilike: `%${searchText}%` }); <ReferenceInput label="Author" source="author_id" reference="authors"> <Autoc 阅读全文
posted @ 2023-08-22 21:03 前端导师歌谣 阅读(5) 评论(0) 推荐(0)
摘要: <AutocompleteInput source="author_id" choices={choices} emptyValue={0} /> 设置空选项 阅读全文
posted @ 2023-08-22 21:03 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: <AutocompleteInput source="author_id" choices={choices} validate={required()} /> <AutocompleteInput source="author_id" choices={choices} emptyText="No 阅读全文
posted @ 2023-08-22 21:03 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: <ReferenceInput label="Author" source="author_id" reference="authors"> <AutocompleteInput debounce={500} /> </ReferenceInput> 保证不会频繁调用api 阅读全文
posted @ 2023-08-22 21:02 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: import { CreateCategory } from './CreateCategory'; const PostCreate = () => ( <Create> <SimpleForm> <TextInput source="title" /> <ReferenceInput sourc 阅读全文
posted @ 2023-08-22 21:02 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: const choices = [ { _id: 'tech', label: 'Tech' }, { _id: 'lifestyle', label: 'Lifestyle' }, { _id: 'people', label: 'People' }, ]; <AutocompleteInput 阅读全文
posted @ 2023-08-22 21:02 前端导师歌谣 阅读(12) 评论(0) 推荐(0)
摘要: const choices = [ { id: 'tech', name: 'Tech' }, { id: 'lifestyle', name: 'Lifestyle' }, { id: 'people', name: 'People' }, ]; <AutocompleteInput source 阅读全文
posted @ 2023-08-22 21:01 前端导师歌谣 阅读(7) 评论(0) 推荐(0)
摘要: 数据格式 { "id": 1, "date": "2022-08-30", "customer": "John Doe", "items": [ { "name": "Office Jeans", "price": 45.99, "quantity": 1, }, { "name": "Black 阅读全文
posted @ 2023-08-22 21:01 前端导师歌谣 阅读(5) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-08-22 21:01 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-08-22 21:00 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-08-22 21:00 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-08-22 21:00 前端导师歌谣 阅读(7) 评论(0) 推荐(0)