Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG] 在 ProFormFeild label 属性里使用 FormattedMessage,且 rules 加了 required,报错信息会显示 [object Object] #8389

Open
one-pieces opened this issue May 7, 2024 · 0 comments

Comments

@one-pieces
Copy link

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

如题

📷 复现步骤

用 ProFromSelect 举个例子

<ProFormSelect
          colProps={{ span: 12 }}
          label={<FormattedMessage id="pages.type" />}
          name={['type']}
          allowClear={false}
          fieldProps={{
            popupMatchSelectWidth: false,
          }}
          options={options}
          rules={[{ required: true }]}
        />

🏞 期望结果

应该显示序列化后的字符串

💻 复现代码

© 版本信息

  • ProComponents 版本: 2.6.52
  • umi 版本
  • 浏览器环境 chrome
  • 开发环境 mac OS

🚑 其他信息

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant