摘要: ​ 目录 前言 题目 ​编辑 核心代码 总结 前言 我是歌谣 歌谣的意志是永恒的 放弃很容易 但是坚持一定很酷 本题目源自于牛客网 题目 请写出具有表格标题为"nowcoder"的2行3列表格结构。 ​编辑 核心代码 <body> <!-- 表格标题为"nowcoder"的2行3列表格结构。 --> 阅读全文
posted @ 2023-08-24 09:20 前端导师歌谣 阅读(19) 评论(0) 推荐(0)
摘要: ​ 目录 前言 题目 ​编辑 核心代码 总结 前言 我是歌谣 歌谣的意志是永恒的 放弃很容易 但是坚持一定很酷 本题目源自于牛客网 题目 请依次写出以下类型的输入框。 1. 类型为密码,默认值为"nowcoder" 2. 类型为复选框,且状态为已勾选 ​编辑 核心代码 ``` ``` 总结 根据题意 阅读全文
posted @ 2023-08-24 09:19 前端导师歌谣 阅读(13) 评论(0) 推荐(0)
摘要: <ReferenceInput source="company_id" reference="companies" perPage={100} /> 设置分页得值 阅读全文
posted @ 2023-08-24 09:16 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: import { ReferenceInput, AutocompleteInput } from 'react-admin'; <ReferenceInput source="company_id" reference="companies"> <AutocompleteInput format= 阅读全文
posted @ 2023-08-24 09:16 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: <ReferenceInput source="company_id" reference="companies" filter={{ is_published: true }} /> 设置过滤得条件 阅读全文
posted @ 2023-08-24 09:15 前端导师歌谣 阅读(12) 评论(0) 推荐(0)
摘要: <ReferenceInput source="company_id" reference="companies" enableGetChoices={({ q }) => q && q.length >= 2} /> 查询两个字符获取选项 阅读全文
posted @ 2023-08-24 09:15 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: import { ReferenceInput, AutocompleteInput } from 'react-admin'; <ReferenceInput source="company_id" reference="companies"> <AutocompleteInput label=" 阅读全文
posted @ 2023-08-24 09:15 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: import { Edit, SimpleForm, TextInput, ReferenceInput } from 'react-admin'; const ContactEdit = () => ( <Edit> <SimpleForm> <TextInput source="first_na 阅读全文
posted @ 2023-08-24 09:14 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: import { useGetList, RadioButtonGroupInput } from 'react-admin'; const UserCountry = () => { const { data, isLoading } = useGetList('countries'); // d 阅读全文
posted @ 2023-08-24 09:14 前端导师歌谣 阅读(12) 评论(0) 推荐(0)
摘要: import { RadioButtonGroupInput } from 'react-admin'; <RadioButtonGroupInput source="category" choices={[ { id: 'tech', name: 'Tech' }, { id: 'lifestyl 阅读全文
posted @ 2023-08-24 09:13 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: import { PasswordInput } from 'react-admin'; <PasswordInput source="password" /> 运行结果 阅读全文
posted @ 2023-08-24 09:13 前端导师歌谣 阅读(29) 评论(0) 推荐(0)
摘要: import { NumberInput } from 'react-admin'; <NumberInput source="nb_views" /> 运行结果 阅读全文
posted @ 2023-08-24 09:12 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: import { NullableBooleanInput } from 'react-admin'; <NullableBooleanInput label="Commentable" source="commentable" /> 运行结果 阅读全文
posted @ 2023-08-24 09:12 前端导师歌谣 阅读(17) 评论(0) 推荐(0)
摘要: import { ImageInput, ImageField } from 'react-admin'; <ImageInput source="pictures" label="Related pictures"> <ImageField source="src" title="title" / 阅读全文
posted @ 2023-08-24 09:11 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: import { DateTimeInput } from 'react-admin'; <DateTimeInput source="published_at" /> 运行结果 阅读全文
posted @ 2023-08-24 09:11 前端导师歌谣 阅读(9) 评论(0) 推荐(0)
摘要: import { DateTimeInput } from 'react-admin'; <DateTimeInput source="published_at" /> 运行结果 阅读全文
posted @ 2023-08-24 09:11 前端导师歌谣 阅读(11) 评论(0) 推荐(0)
摘要: import { DateInput, minValue } from 'react-admin'; // requires dates after October 10th, 2022 <DateInput source="published" validate={minValue('2022-1 阅读全文
posted @ 2023-08-24 09:10 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: import { DateInput } from 'react-admin'; <DateInput source="published_at" /> 运行结果 阅读全文
posted @ 2023-08-24 09:10 前端导师歌谣 阅读(10) 评论(0) 推荐(0)
摘要: <CheckboxGroupInput source="options" choices={choices} row={false} /> 更改默认显示在一行 阅读全文
posted @ 2023-08-24 09:09 前端导师歌谣 阅读(16) 评论(0) 推荐(0)
摘要: const choices = [ { _id: 'admin', name: 'Admin' }, { _id: 'u001', name: 'Editor' }, { _id: 'u002', name: 'Moderator' }, { _id: 'u003', name: 'Reviewer 阅读全文
posted @ 2023-08-24 09:09 前端导师歌谣 阅读(10) 评论(0) 推荐(0)