React does not recognize the `colStyle` prop on a DOM element. If you intent
Posted zqblog1314
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了React does not recognize the `colStyle` prop on a DOM element. If you intent相关的知识,希望对你有一定的参考价值。
在ant的List组件中,使用了其他组件(可以使用其他组件,但要在合适的位置),应该是在List中的List.Item标签中使用其他组件
<List
grid={{
gutter: 16,
xs: 1,
sm: 2,
md: 4,
lg: 4,
xl: 6,
xxl: 3,
}}
// itemLayout="vertical"
size="large"
pagination={{
onChange: page => {
console.log(page);
},
pageSize: 2
}}
dataSource={listData}
footer={
<div>
<b>ant design</b>
</div>
}
renderItem={item => (
<List.Item>
<Card
hoverable
style={{ width: 240 }}
cover={<img alt="example" src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png" />}
>
<Meta title="Europe Street beat" description="www.instagram.com" />
</Card>
</List.Item>
)}
/>
列表加卡片,就完成了
以上是关于React does not recognize the `colStyle` prop on a DOM element. If you intent的主要内容,如果未能解决你的问题,请参考以下文章
typeorm:migration create on New Project Does Not Recognize Entities - “未发现数据库架构更改 - 无法生成迁移。”
LINQ to Entities does not recognize the method 'System.DateTime ToDateTime(System.String)' m
LINQ to Entities does not recognize the method 'Int32 ToInt32(System.String)' method, and th
LINQ to Entities does not recognize the method , and this method cannot be translated into a store e
'react-scripts' is not recognized as an internal or external command