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

前端项目实战壹佰陆拾叁react-admin+material ui-react-admin之Create之基本用法

来源:互联网 收集:自由互联 发布时间:2023-08-26
我是歌谣 微信公众号关注前端小歌谣 import * as React from 'react';import { Create, SimpleForm, TextInput, DateInput, required } from 'react-admin';export const RcreateAdd = () = ( Create SimpleForm TextInput source="name" val


我是歌谣 微信公众号关注前端小歌谣

import * as React from 'react';
import { Create, SimpleForm, TextInput, DateInput, required } from 'react-admin';


export const RcreateAdd = () => (
    <Create>
        <SimpleForm>
            <TextInput source="name" validate={[required()]} fullWidth />
            <TextInput source="sex" multiline={true} label="Short description" />
            <TextInput source="salary" multiline={true} label="Short description" />
        </SimpleForm>
    </Create>
);

运行结果

 

前端项目实战壹佰陆拾叁react-admin+material ui-react-admin之Create之基本用法_react.js

网友评论