我是歌谣 放弃很容易 但是坚持一定很酷 微信公众号关注前端小歌谣 带你加入前端巅峰人才交流群
<Resource name='t_order' list={OrderList} create={OrderCreate} edit={OrderEdit} />
OrderEdit
import React from 'react'
import { Edit, SimpleForm, TextInput, DateInput } from 'react-admin'
const OrderEdit = (props: any) => {
return (
<Edit title="修改订单" {...props}>
<SimpleForm>
<TextInput disabled source='id'></TextInput>
<TextInput source='orderid'></TextInput>
<TextInput source='clientname'></TextInput>
<TextInput source='clientaddr'></TextInput>
<TextInput source='clientcontact'></TextInput>
</SimpleForm>
</Edit>
)
}
export default OrderEdit
运行结果