사이드 프로젝트

쇼핑몰 사이트 만들기24(Product Info 컴포넌트 만들기)

귀요미찰쓰 2022. 3. 11. 10:26
728x90
반응형

저번에는 ProductImage 부분을 처리해줬는데 요번에는 ProductInfo 부분을 처리해줄 것입니다. 

ProductInfo 부분을 antdesign에서 descriptions라는 것을 이용하여 ui 부분을 해결해주겠습니다.

 

https://ant.design/components/descriptions/

 

Descriptions - Ant Design

The number of span Description.Item. Span={2} takes up the width of two DescriptionItems. When both style and labelStyle(or contentStyle) configured, both of them will work. And next one will overwrite first when conflict.

ant.design

 

descriptions에 나오는 예제 부분을 활용하여 ProductInfo 부분을 표 형식으로 처리해주겠습니다.

 

 

결과:

반응형