본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

프로그레스

원문 보기 위키 갱신

프로그레스 (Progress)

작업의 현재 진행률을 표시해요.

출처: 문서

본문

언제 사용하나요

작업 완료에 오랜 시간이 걸린다면 Progress로 현재 진행률과 상태를 보여줄 수 있어요.

  • 작업이 현재 인터페이스를 중단시키거나 2초 이상 백그라운드에서 실행되어야 할 때
  • 작업의 완료 비율을 표시해야 할 때

API

nz-progress 컴포넌트

Property Description Type Default Global Config
[nzType] 타입 설정 'line' | 'circle' | 'dashboard' 'line'
[nzFormat] 내용의 템플릿 함수 (percent: number) => string | TemplateRef<{ $implicit: number }> percent => percent + '%'
[nzPercent] 완료 비율 설정 number 0
[nzShowInfo] 진행 값과 상태 아이콘 표시 여부 boolean true ✅
[nzStatus] Progress 상태 설정 'success' | 'exception' | 'active' | 'normal' -
[nzStrokeLinecap] 진행(progress linecap) 스타일 설정 'round' | 'square' 'round' ✅
[nzStrokeColor] 진행 바 색상. 객체를 전달하면 linear-gradient로 렌더링돼요 string | { from: string; to: string: direction: string; [percent: string]: string } - ✅
[nzSuccessPercent] 성공 구간 비율 number 0

nzType="line"

Property Description Type Default
[nzStrokeWidth] 진행 바 너비 설정, 단위: px number 8
[nzSteps] 전체 단계 수 number -

nzType="circle"

Property Description Type Default Global Config
[nzWidth] 원형 진행 바의 캔버스 너비 설정, 단위: px number 132
[nzStrokeWidth] 원형 진행 바의 너비 설정, 단위: 캔버스 너비의 백분율 number 6 ✅

nzType="dashboard"

Property Description Type Default Global Config
[nzWidth] 대시보드 진행 바의 캔버스 너비 설정, 단위: px number 132
[nzStrokeWidth] 대시보드 진행 바의 너비 설정, 단위: 캔버스 너비의 백분율 number 6 ✅
[nzGapDegree] 반원의 갭 각도, 0 ~ 360 number 0 ✅
[nzGapPosition] 갭 위치 'top' | 'right' | 'bottom' | 'left' 'top' ✅

더 알아보기 (Learn more)