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

🐛[BUG] ProDescriptions 组件使用属性 emptyText={<div></div>} 报错:React does not recognize the `emptyText` prop on a DOM element.

Open tanqin opened this issue 1 year ago • 1 comments

🐛 bug 描述

ProDescriptions 组件使用属性 emptyText={

} 报错:React does not recognize the emptyText prop on a DOM element

📷 复现步骤

ProDescriptions 设置 emptyText 属性

🏞 期望结果

ProDescriptions 设置 emptyText 属性控制台不报错

💻 复现代码

  <ProDescriptions
    bordered
    columns={columns}
    emptyText={<div></div>}
    request={getData}
  />

© 版本信息

  • ProComponents 版本: [2.6.43]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. windows]

🚑 其他信息

image

tanqin avatar Jan 16 '24 01:01 tanqin

同问

bitbw avatar Mar 26 '24 02:03 bitbw