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

Popconfirm

원문 보기 위키 갱신

팝오버 형태로 뜨는 확인(confirm) 컴포넌트예요. 삭제 같은 되돌리기 어려운 동작 앞에 붙여 "정말 진행할까요?"를 물어보는 데 쓰여요. 확인·취소 버튼 텍스트도 바꿀 수 있어요.

출처: 문서

본문

확인(confirm) 창이 팝으로 떠요.

Demos

basic.vue
custom-action.vue
custom-icon.vue
event.vue
no-icon.vue
actions.vue

API

Popconfirm Props

이름 타입 기본값 설명 버전
negative-button-props ButtonProps undefined 취소 버튼의 DOM 속성. 2.27.0
negative-text string | null 'Cancel' 취소 버튼의 텍스트. 2.28.0
positive-button-props ButtonProps undefined 확인 버튼의 DOM 속성. 2.27.0
positive-text string | null 'Confirm' 확인 버튼의 텍스트. 2.28.0
show-icon boolean true 아이콘을 표시할지 여부.
on-positive-click () => boolean | Promise<boolean> | any undefined 확인(confirm) 시의 콜백.
on-negative-click () => boolean | Promise<boolean> | any undefined 취소(cancel) 시의 콜백.

그 외 속성은 popover를 참고하세요.

Popconfirm Slots

이름 파라미터 설명
action () 커스텀 동작 영역.
default () Popconfirm의 콘텐츠.
icon () Popconfirm의 아이콘.

Popconfirm Methods

popover를 참고하세요.

더 알아보기 (Learn more)

위치와 트리거 설정은 Popover 컴포넌트 문서를 참고하세요. 중앙 정렬 모달이 필요하면 Dialog 컴포넌트 문서도 함께 보세요.