我想在我的react-admin项目的Edit和Show页面上创建一个自定义的两列网格布局。我想在左栏显示选择框和图像上传区域,在右栏只使用一个<SimpleForm>来显示文本输入。
如果我在<SimpleForm>和<EditController>组件下使用div或<Card>组件,我会收到一个错误。
Warning: React does not recognize the `basePath` prop on a DOM element.
If you intentionally want it to appear in the DO
是否有任何方法可以在DeleteButton中自定义react-admin按钮以添加诸如“您想要删除项吗?”之类的确认消息。目前,在单击DeleteButton时,它直接删除项目,而不需要确认。我尝试添加title属性以删除按钮,但它不会被触发。这是我的密码
//This worked with admin-on-rest, but not working with react-admin
const CategoryDeleteTitle = translate(({ record, translate }) => <span>
{translate(