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

인디케이터

원문 보기 위키 갱신

인디케이터 (Indicator)

작업이나 프로세스가 몇 단계 중 어디쯤 진행됐는지 보여 주는 컴포넌트예요. 주로 프로세스를 열 때 쓰이고, 일반 모드와 블록 모드 두 가지 모양으로 쓸 수 있어요.

출처: 문서

설치 (Install)

import { createApp } from 'vue'
import { Indicator } from '@nutui/nutui'

const app = createApp()
app.use(Indicator)

사용 예제 (Usage)

기본 사용법 (Basic Usage)

demo: indicator basic

블록 레이아웃 (Block usage)

demo: indicator block

0으로 채우지 않기 (Do not make up 0)

demo: indicator zero

API

Props

Attribute Description Type Default
current Current step number 1
size Step length number 3
block Enable block level layout boolean false
align Alignment, which takes effect only when block is true. optional value left, right, center string left
fill-zero Whether to add 0 before singular number boolean true

Types v4.3.4

이 컴포넌트는 다음 타입 정의를 함께 내보내요:

import type {
  IndicatorAlign,
  IndicatorProps,
  IndicatorInstance
} from '@nutui/nutui'

테마 (Theming)

CSS 변수 (CSS Variables)

컴포넌트는 스타일을 커스터마이징할 때 쓸 수 있는 CSS 변수를 제공해요. 자세한 사용법은 ConfigProvider 컴포넌트 문서를 참고하세요.

Name Default Value
--nut-indicator-bg-color var(--nut-primary-color)
--nut-indicator-dot-color var(--nut-disable-color)
--nut-indicator-color var(--nut-white)
--nut-indicator-size 18px
--nut-indicator-dot-size calc(var(--nut-indicator-size) / 3)
--nut-indicator-border-size calc(var(--nut-indicator-size)+ 2)
--nut-indicator-number-font-size 10px

더 알아보기 (Learn more)

이 글은 NutUI 공식 문서의 영문 원문을 한국어로 번역한 내용이에요. 최신 내용과 전체 문서는 아래 링크에서 확인할 수 있어요: