我正在使用Ant Design。我希望我的卡片封面图像自动调整大小并填充容器,但我无法做到这一点。 下面是我想要实现的一个例子。 This is what I have This is what I am trying to achieve. 我现在使用的代码如下: <Card
hoverable={true}
size="small"
style={{ width: '200px', backgroundColor: 'transparent'}}
cover={<img alt="images"
当我尝试显示{props.child}.The page remains blank.The detailed时出现上述错误
index.js:1 Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.
in div (at CustomLayo