mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 15:19:58 +08:00
3e32364dc0
* add new component: DescriptionList * add warning message * docs: fix doc typo * feat: implement the size attribute * docs: fix doc typo * refactor: use new name Descriptions * test: snapshots updated * feat: support react15 * style: fix code style warring * style: better var name * style: better code style * style: merge css class * feat: add responsive config * fix: fix error title * style: use @border-radius-base * update snapshot * feat: set default column * test: add test script * style: fix property defaultProps is useless error * style: more robust code * style: fix codereview warning * style: fix review warning * use responsiveObserveserve * fix review warning * bug: add childrenArray copy,prevent changes to incoming parameters * fix dom error * fix typo * fix test * don't use this * snapshot updated * prettier md * remove descriptions md text * new rendering method * doc :add dot * style: add right border
1012 B
1012 B
category | type | title | cols |
---|---|---|---|
Components | Data Display | Description List | 1 |
Display multiple read-only fields in groups.
When To Use
Commonly displayed on the details page.
API
Descriptions
Property | Description | Type | Default |
---|---|---|---|
title | The title of the description list, placed at the top | ReactNode | - |
bordered | whether to display the border | boolean | false |
column | the number of DescriptionItems in a row,could be a number or a object like { xs: 8, sm: 16, md: 24} ,(Only set bordered={true} to take effect) |
number | 3 |
size | set the size of the list. Can be set to middle ,small , or not filled |
`default | middle |
DescriptionItem
Property | Description | Type | Default |
---|---|---|---|
label | description of the content | ReactNode | - |
span | The number of columns included | number | 1 |