reactjs - 打字稿错误:类型中缺少属性“htmlType”
问题描述
升级到 typescript 3.0.1 和 antd 3.8.0 后,我有下一个编译错误:类型 '{ children: Element; 中缺少属性 'htmlType' id:字符串;类名:字符串;形状:“圆形”;}'。
<Button id="goToTopButton" className="scroll-to-top-button" shape="circle">
<i className="material-icons">arrow_upward<i/>
</Button>
以及其他组件(如 Modal 等)的类似错误。有没有人可以帮助解决它?
解决方案
推荐阅读
- python - IntegrityError:music_song.album_id 可能不为 NULL
- javascript - 在没有选中一个 jquery 的情况下禁用表的同一列中的所有复选框
- python - 如何在 django 中创建嵌套模型
- wordpress - 如何在wordpress中设置自定义永久链接
- ios - SecCertificateCopyData 返回可选数据?
- vba - 使用自动筛选后将数据从多个工作簿复制到一个工作簿
- javascript - C3 图表不从 jQuery 数据呈现
- javascript - 通过绘图图移动
- javascript - 使用 JS 计算 PHP while 循环中的元素
- tensorflow - 将 2d 张量转换为 3d 以用于 LSTM 层