pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

ProForm 报错 React does not recognize the `showCount` prop on a DOM element

Open wowsummer opened this issue 1 year ago • 2 comments

🐛 bug 描述

ProForm 报错 React does not recognize the showCount prop on a DOM element

📷 复现步骤

  1. ProForm 设置readonly、initialValues
  2. ProFormTextArea 添加 showCount,如:fieldProps={{ maxLength: 500, showCount: true }}
  3. 控制台报错了 image

🏞 期望结果

不要报错

💻 复现代码

<ProForm readonly initialValues={{ remark: 'test' }}>
    <ProFormTextArea
        label="备注"
        name="remark"
        fieldProps={{ maxLength: 500, showCount: true }}
     />
</ProForm>

© 版本信息

  • ProComponents 版本:最新版本
  • umi 版本:4.2.15
  • 浏览器环境:谷歌
  • 开发环境:mac OS

🚑 其他信息

wowsummer avatar Aug 09 '24 13:08 wowsummer

以下的 Issues 可能会帮助到你 / The following issues may help you

  • [#8634][🐛[BUG] ProTable 开启虚拟列表后报错”React does not recognize the offsetX prop on a DOM element“][64%]

github-actions[bot] avatar Aug 09 '24 13:08 github-actions[bot]

我也遇到了这个问题 这个 issue 还没解决嘛

zbw-zbw avatar Apr 21 '25 03:04 zbw-zbw