【问题标题】:Translation issue with admin-on-rest FormTabadmin-on-rest FormTab 的翻译问题
【发布时间】:2018-01-19 09:05:28
【问题描述】:

我遇到了关于 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" />
)

我做错了吗?

【问题讨论】:

    标签: reactjs admin-on-rest


    【解决方案1】:

    FormTab 组件必须是 TabbedForm 组件的直接子级。

    【讨论】:

    • 感谢您的宝贵时间。不可以绕过吗?为了便于维护,我已经拆分了我的 TabbedForm,因为它很大。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-19
    • 1970-01-01
    • 1970-01-01
    • 2013-05-03
    • 2021-06-26
    • 2012-10-27
    相关资源
    最近更新 更多