摘要: ​ 目录 前言 题目 核心代码 总结 前言 我是歌谣 歌谣的意志是永恒的 放弃很容易 但是坚持一定很酷 本题目源自于牛客网 题目 请写出可以在新窗口打开文档的a标签 ​编辑 核心代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF 阅读全文
posted @ 2023-08-25 10:06 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: ​ 目录 前言 题目 ​编辑 核心代码 总结 前言 我是歌谣 歌谣的意志是永恒的 放弃很容易 但是坚持一定很酷 本题目源自于牛客网 题目 请写出具有标题属性和代替文本属性的图片标签。 ​编辑 核心代码 ``` 图像标签属性 ``` 总结 根据题解合理解答即可 没什么过多要说的地方 ​ 阅读全文
posted @ 2023-08-25 10:05 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: import { ReferenceArrayInput, AutocompleteArrayInput } from 'react-admin'; <ReferenceArrayInput source="tags_ids" reference="tags"> <AutocompleteArray 阅读全文
posted @ 2023-08-25 10:00 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: import { ReferenceArrayInput, AutocompleteArrayInput } from 'react-admin'; <ReferenceArrayInput source="tags_ids" reference="tags"> <AutocompleteArray 阅读全文
posted @ 2023-08-25 09:59 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: <ReferenceArrayInput source="tags_ids" reference="tags" filter={{ is_published: true }} /> filter作为过滤条件的选项 阅读全文
posted @ 2023-08-25 09:59 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: <ReferenceArrayInput source="tags_ids" reference="tags" enableGetChoices={({ q }) => q && q.length >= 2} /> 以上实例要有两个字符就可以获取该选项 阅读全文
posted @ 2023-08-25 09:59 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: import { ReferenceArrayInput, AutocompleteArrayInput } from 'react-admin'; <ReferenceArrayInput source="tags_ids" reference="tags"> <AutocompleteArray 阅读全文
posted @ 2023-08-25 09:59 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: import { Edit, SimpleForm, TextInput, ReferenceArrayInput } from 'react-admin'; const PostEdit = () => ( <Edit> <SimpleForm> <TextInput source="title" 阅读全文
posted @ 2023-08-25 09:58 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-08-25 09:58 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-08-25 09:58 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-08-25 09:57 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-08-25 09:57 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: import { SelectArrayInput } from 'react-admin'; const UserCreate = () => ( <Create> <SimpleForm> <SelectArrayInput source="roles" choices={[ { id: 'ad 阅读全文
posted @ 2023-08-25 09:56 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: import { SelectInput } from 'react-admin'; <SelectInput source="category" choices={[ { id: 'tech', name: 'Tech' }, { id: 'lifestyle', name: 'Lifestyle 阅读全文
posted @ 2023-08-25 09:56 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: import { Edit, SimpleForm, TextInput } from 'react-admin'; import { RichTextInput } from 'ra-input-rich-text'; export const PostEdit = () => ( <Edit> 阅读全文
posted @ 2023-08-25 09:56 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: import { Edit, SimpleForm, TextInput, ReferenceArrayInput } from 'react-admin'; const PostEdit = () => ( <Edit> <SimpleForm> <TextInput source="title" 阅读全文
posted @ 2023-08-25 09:56 前端导师歌谣 阅读(12) 评论(0) 推荐(0)
摘要: import { Edit, SimpleForm, TextInput } from 'react-admin'; import { ReferenceNodeInput } from '@react-admin/ra-tree'; const ProductEdit = () => ( <Edi 阅读全文
posted @ 2023-08-25 09:55 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: <ReferenceInput source="company_id" reference="companies" /> 资源 阅读全文
posted @ 2023-08-25 09:55 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: <ReferenceInput source="company" reference="companies" sort={{ field: 'name', order: 'ASC' }} /> 按照某数据进行排序 阅读全文
posted @ 2023-08-25 09:55 前端导师歌谣 阅读(19) 评论(0) 推荐(0)
摘要: <ReferenceInput source="company_id" reference="companies" queryOptions={{ meta: { foo: 'bar' } }} /> 获取可能得查询数据 阅读全文
posted @ 2023-08-25 09:54 前端导师歌谣 阅读(14) 评论(0) 推荐(0)