Descriptions
키-값 형태의 정보를 항목별로 깔끔하게 보여 주는 컴포넌트예요. 라벨 위치, 열 개수, 테두리 표시 여부 등을 조절해 상세 정보 화면을 쉽게 만들 수 있어요.
출처: 문서
본문
콘텐츠 항목을 쉽게 표시해요.
Demos
basic.vue
columns.vue
span.vue
placement.vue
bordered.vue
size.vue
API
Descriptions Props
| 이름 | 타입 | 기본값 | 설명 | 버전 |
|---|---|---|---|---|
| bordered | boolean |
false |
테두리를 표시할지 여부. | |
| column | number |
3 |
전체 열 개수. | |
| content-class | string |
undefined |
항목 콘텐츠의 클래스. | 2.36.0 |
| content-style | Object | string |
undefined |
항목 콘텐츠의 스타일. | |
| label-align | 'center' | 'left' | 'right' |
'left' |
라벨 정렬. | |
| label-placement | 'top' | 'left' |
'top' |
라벨의 위치. | |
| label-class | string |
undefined |
항목 라벨의 클래스. | 2.36.0 |
| label-style | Object | string |
undefined |
항목 라벨의 스타일. | |
| separator | string |
':' |
구분자. label-placement이 left이고 bordered가 false일 때만 동작해요. |
|
| size | 'small' | 'medium' | 'large' |
'medium' |
설명(descriptions)의 크기. | |
| title | string |
undefined |
설명의 제목. |
DescriptionItem Props
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| content-class | string |
undefined |
항목 콘텐츠의 클래스. |
| content-style | Object | string |
undefined |
항목 콘텐츠의 스타일. |
| label | string |
undefined |
항목의 라벨. |
| label-class | string |
undefined |
항목 라벨의 클래스. |
| label-style | Object | string |
undefined |
항목 라벨의 스타일. |
| span | number |
1 |
항목이 차지하는 열(span) 개수. |
Descriptions Slots
| 이름 | 파라미터 | 설명 |
|---|---|---|
| default | () |
콘텐츠. |
| header | () |
헤더 콘텐츠. |
DescriptionItem Slots
| 이름 | 파라미터 | 설명 |
|---|---|---|
| default | () |
항목 콘텐츠. |
| label | () |
항목 라벨. |
더 알아보기 (Learn more)
테두리와 크기 조합은 bordered, size 데모에서 확인할 수 있어요. 항목을 목록 형태로 보여 주고 싶다면 List 컴포넌트 문서도 참고하세요.