当前位置 : 主页 > 手机开发 > harmonyos >

前端项目实战贰佰捌拾捌react-admin+material ui-react-admin-admin中ReferenceArrayInput

来源:互联网 收集:自由互联 发布时间:2023-08-26
import { Edit, SimpleForm, TextInput, ReferenceArrayInput } from 'react-admin';const PostEdit = () = ( Edit SimpleForm TextInput source="title" / ReferenceArrayInput source="tags_ids" reference="tags" / /SimpleForm /Edit); 运行结果


import { Edit, SimpleForm, TextInput, ReferenceArrayInput } from 'react-admin';

const PostEdit = () => (
    <Edit>
        <SimpleForm>
            <TextInput source="title" />
            <ReferenceArrayInput source="tags_ids" reference="tags" />
        </SimpleForm>
    </Edit>
);

运行结果

前端项目实战贰佰捌拾捌react-admin+material ui-react-admin-admin中ReferenceArrayInput_react.js

网友评论