Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.3k views
in Technique[技术] by (71.8m points)

请问如何使用使用Ant design写一个类似表格功能的纵向的两列的描述列表组件?

就是一列是标题一列是内容,怎样实现column和DataSource一一对应的功能呢,类似下图这种
image.png

使用时可以使用 <组件名 DataSource={} column={}> 这样的方式


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Descriptions 描述列表

antd自带的Descriptions组件就是你所描述的功能。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...