翻译问题与管理员休息FormTab(Translation issue with admin

编程入门 行业动态 更新时间:2024-10-28 16:18:34
翻译问题与管理员休息FormTab(Translation issue with admin-on-rest FormTab)

我有一个关于admin-on-rest的翻译问题。 当FormTab直接位于Edit组件的内部时,我的选项卡具有标签。

标签标题仅对第三个标签为空。 我有一个错误(MyCustomFormTab):

警告:密钥的翻译缺失:“未定义”

const EditComponent = props => ( <Edit {...props}> <TabbedForm> <FormTab label="tab Title" /> <FormTab label="Other Tab Title" /> <MyCustomFormTab /> </TabbedForm> </Edit> ) const MyCustomFormtab = props => ( <FormTab label="My Custom tab Title" /> )

难道我做错了什么 ?

I've got a translation issue on admin-on-rest. My tabs have labels when FormTab are directly inside the Edit component.

The tab title is empty for the third one only. I've got an error (MyCustomFormTab) :

Warning: Missing translation for key: "undefined"

const EditComponent = props => ( <Edit {...props}> <TabbedForm> <FormTab label="tab Title" /> <FormTab label="Other Tab Title" /> <MyCustomFormTab /> </TabbedForm> </Edit> ) const MyCustomFormtab = props => ( <FormTab label="My Custom tab Title" /> )

Am I doing something wrong ?

最满意答案

FormTab组件必须是FormTab组件的直接子项。

FormTab components must be direct children of the TabbedForm component.

更多推荐

本文发布于:2023-07-30 02:04:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1321645.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:管理员   FormTab   Translation   issue   admin

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!