기본 사용법
삭제하기 전에 확인 받기
트리거를 누르면 확인 창이 열립니다. 제목과 설명에 삭제 대상과 영향을 명시하고, 취소와 확인 동작을 배치합니다.
설정과 동작
확인 창 열기 버튼의 아이콘
trigger-icon에 Vue 컴포넌트를 전달해 기본 열기 버튼의 라벨 앞에 표시합니다.
확인한 경우에만 반영
취소하면 결과가 유지되고, 확인하면 변경 사항이 표시됩니다.
저장 중 확인 버튼 잠금
완료 처리를 누르면 저장이 끝날 때까지 확인 버튼에 로딩 상태를 표시합니다.
조합과 확장
확인 창을 포털에 배치
트리거는 현재 영역에 두고 표시되는 확인 창은 포털로 이동합니다.
구성 컴포넌트
팝업과 위치
UIAlertDialogPortal콘텐츠를 현재 DOM 계층 밖의 포털 대상으로 옮깁니다.
확인 창을 포털에 배치 예제UIAlertDialogOverlay열린 창 뒤에서 배경과 활성 영역을 구분합니다.
확인한 경우에만 반영 예제UIAlertDialogContent트리거 또는 현재 값에 연결된 콘텐츠를 담습니다.
확인한 경우에만 반영 예제
탐색과 동작
UIAlertDialogTrigger컨트롤을 실행하거나 콘텐츠를 여는 버튼입니다.
확인한 경우에만 반영 예제UIAlertDialogClose열린 콘텐츠를 닫습니다.
확인한 경우에만 반영 예제
값과 상태 표시
UIAlertDialogTitle콘텐츠의 제목을 표시하고 접근성 이름으로 연결합니다.
확인한 경우에만 반영 예제UIAlertDialogDescription콘텐츠의 목적이나 추가 설명을 연결합니다.
확인한 경우에만 반영 예제
주요 API
속성과 모델
v-model:open확인 창의 열린 상태를 외부 상태와 연결합니다.
저장 중 확인 버튼 잠금 예제label제목에서 이름을 제공하기 어려울 때 사용할 접근성 이름입니다.
trigger-label / title / description열기 버튼, 확인 창 제목과 설명에 표시할 문구를 지정합니다.
확인 창 열기 버튼의 아이콘 예제trigger-icon기본 열기 버튼의 텍스트 앞에 표시할 아이콘입니다.
확인 창 열기 버튼의 아이콘 예제
슬롯
#actions취소와 확인 버튼을 배치하고, 슬롯의 close로 확인 창을 닫습니다.
확인 창 열기 버튼의 아이콘 예제Content #footer-leading하단 왼쪽에 상태나 보조 콘텐츠를 배치합니다.
전체 속성, 이벤트와 슬롯
UIAlertDialog
disabledboolean | undefinedlabelstring | undefinedclose-on-interact-outsideboolean | undefinedopenboolean | undefinedshiftboolean | undefineddefault-openboolean | undefinedunmount-on-exitboolean | undefinedarrow-paddingnumber | undefinedsideRectSide | undefinedalignRectAlign | undefinedside-offsetnumber | undefinedcollision-paddingPositionPadding | undefinedcollision-boundaryPositionBoundary | undefinedavoid-collisionsboolean | undefinedflipboolean | undefinedhide-when-detachedboolean | undefinedstrategyPositionStrategy | undefinedtrackingPositionTracking | undefinedanchorHTMLElement | null | undefinedclose-on-escapeboolean | undefineddescribed-bystring | null | undefinedinitial-focusHTMLElement | undefinedauto-focusboolean | undefinedrestore-focusboolean | undefinedrestore-focus-targetHTMLElement | null | undefinedtrap-focusboolean | undefinedinteract-outside-exclusionsreadonly HTMLElement[] | undefinedtitlestring | undefineddescriptionstring | undefinedtrigger-labelstring | undefinedtrigger-iconComponent | undefinedpanel-classstring | undefined@update:open(open: boolean) => void@close-request(reason: PopupCloseReason) => void@after-close() => void@interact-outsideInteractOutsideHandler#default(state: PopupRootSlotProps) => VNodeChild#triggerPanelSlot#bodyPanelSlot#actionsPanelSlot#footer-leadingPanelSlot
UIAlertDialogContent
asstring | Component | undefinedas-childboolean | undefined#default() => unknown#footer-leading() => unknown#actions() => unknown