Descriptions
Descriptions (설명 목록)
읽기 전용 필드 여러 개를 그룹으로 표시해요.
출처: 문서
본문
언제 사용하나요 (When To Use)
보통 상세 페이지에서 사용해요.
API
Descriptions props
| 속성 | 설명 | 타입 | 기본값 | 버전 | ||
|---|---|---|---|---|---|---|
| bordered | 테두리를 표시할지 여부 | boolean | false | |||
| colon | Descriptions.Item의 기본 props colon 값을 변경 |
boolean | true | |||
| column | 한 줄에 표시할 DescriptionItems의 개수. 숫자 또는 { xs: 8, sm: 16, md: 24} 같은 객체. (bordered={true}일 때만 적용) |
number | 3 | |||
| contentStyle | 콘텐츠 스타일 커스터마이즈 | CSSProperties | - | 2.2.0 | ||
| extra | 설명 목록의 동작 영역. 오른쪽 위에 배치 | string | VNode | slot | - | 2.0.0 | ||
| labelStyle | 라벨 스타일 커스터마이즈 | CSSProperties | - | 2.2.0 | ||
| layout | 설명 레이아웃 정의 | horizontal | vertical |
horizontal |
|||
| size | 목록의 크기. middle,small 또는 미지정 |
default | middle | small |
default |
|||
| title | 설명 목록의 제목. 위쪽에 배치 | string | VNode | slot | - |
Item props
| 속성 | 설명 | 타입 | 기본값 | 버전 |
|---|---|---|---|---|
| contentStyle | 콘텐츠 스타일 커스터마이즈 | CSSProperties | - | 2.2.0 |
| label | 콘텐츠의 설명 | string | VNode | slot | - | |
| labelStyle | 라벨 스타일 커스터마이즈 | CSSProperties | - | 2.2.0 |
| span | 포함되는 열의 개수 | number | 1 |
Descriptions.Item의 span 개수. span={2}는 DescriptionsItem 두 개의 너비를 차지해요.
더 알아보기 (Learn more)
- Descriptions 컴포넌트 문서 — 공식 API 문서
- Ant Design Vue 시작하기 — 프로젝트 설정