List-ListItem 图标渲染两次
Kuntey opened this issue · comments
Kuntey commented
组件
基础库版本
- 1.x
- 2.x
设备机型
手机系统
- iOS
- Android
- HarmonyOS
APP
微信小程序
组件库版本
预期行为
只显示一个图标
复现步骤
- npm 安装 antd-mini 2.25.0
- 构建npm
- 复制示例代码
复现 demo
DiamondYuan commented
https://github.com/ant-design/ant-design-mini/pull/1072/files
感谢反馈,下个版本会修复这个问题。
目前可以用 Slot 来规避这个问题, 不要传 image 参数,使用 slot
<ImageIcon slot="image" image={image} className="ant-list-item-image" />
Kuntey commented
好的