Popconfirm
단순하고 간결한 동작 확인 대화상자 컴포넌트예요.
출처: 문서
본문
언제 사용하나요
사용자의 확인을 요청하기 위한 단순하고 간결한 대화상자예요.
'confirm' 모달 대화상자와의 차이점은 정적으로 전체 화면을 덮는 confirm 모달보다 더 가볍다는 점이에요.
API
| 매개변수 | 설명 | 타입 | 기본값 | 버전 |
|---|---|---|---|---|
| cancelButton | 취소 버튼 커스텀 렌더링 | slot | - | 3.0 |
| cancelButtonProps | 취소 버튼의 props | ButtonProps | - | |
| cancelText | Cancel 버튼의 텍스트 | string|slot | Cancel |
|
| disabled | 하위 노드를 클릭했을 때 popconfirm 표시 여부 | boolean | false | |
| icon | 확인 메시지의 아이콘 커스터마이즈 | vNode|slot | <Icon type="exclamation-circle" /> | |
| okButton | 확인 버튼 커스텀 렌더링 | slot | - | 3.0 |
| okButtonProps | 확인 버튼의 props | ButtonProps | - | |
| okText | Confirm 버튼의 텍스트 | string|slot | Confirm |
|
| okType | Confirm 버튼의 type |
string | primary |
|
| showCancel | 취소 버튼 표시 | boolean | true | 3.0 |
| title | 확인 상자의 제목 | string|slot | - | |
| description | 확인 상자 제목의 설명 | string|slot | - | 4.0 |
| visible (v-model) | 숨김/표시 | boolean | - |
events
| 이벤트 이름 | 설명 | 인자 | 버전 |
|---|---|---|---|
| cancel | 취소 콜백 | function(e) | - |
| confirm | 확인 콜백 | function(e) | - |
| openChange | 툴팁 카드의 표시 여부가 변경될 때 실행되는 콜백 | function(open) | - |
더 많은 API는 Tooltip 문서를 참고해 주세요.
참고
Popconfirm의 하위 노드가 mouseenter, mouseleave, focus, click 이벤트를 받아들일 수 있는지 확인해 주세요.