小编sel*_*ens的帖子

react-admin 上 SimpleForm 组件中的自定义布局

我想在“编辑”和“显示”页面上的 react-admin 项目上创建自定义的两列网格布局。我想在左列上显示选择框和图像上传区域,而在右列上只使用一个<SimpleForm>.

就这样

如果使用一个div或者一个<Card>部件下<SimpleForm><EditController>部件,收到错误。

Warning: React does not recognize the `basePath` prop on a DOM element. 
If you intentionally want it to appear in the DOM as a custom 
attribute, spell it as lowercase `basepath` instead. If you 
accidentally passed it from a parent component, remove it from the DOM 
element.
Run Code Online (Sandbox Code Playgroud)

有没有办法创建没有这个错误的布局?

reactjs react-admin

6
推荐指数
1
解决办法
6453
查看次数

标签 统计

react-admin ×1

reactjs ×1