Popconfirm

A simple confirmation dialog of an element click action.

Placement

popconfirm has 9 placements.

Basic usage

Popconfirm is similar to Popover. So for some duplicated attributes, please refer to the documentation of Popover.

Customize

You can customize Popconfirm like:

Trigger event

Click the button to trigger the event

API

Attributes

NameDescriptionTypeDefault
titleTitlestring
effect 2.11.2Tooltip theme, built-in theme: dark / lightenum / stringlight
confirm-button-textConfirm button textstring
cancel-button-textCancel button textstring
confirm-button-typeConfirm button typeenumprimary
cancel-button-typeCancel button typeenumtext
iconIcon Componentstring / ComponentQuestionFilled
icon-colorIcon colorstring#f90
hide-iconis hide Iconbooleanfalse
hide-afterdelay of disappear, in millisecondnumber200
teleportedwhether popconfirm is teleported to the bodybooleantrue
persistentwhen popconfirm inactive and persistent is false , popconfirm will be destroyedbooleanfalse
widthpopconfirm width, min width 150pxstring / number150
tooltipInherits all attributes from Tooltip, except: popper-class, popper-style, fallback-placements

Events

NameDescriptionType
confirmtriggers when click confirm buttonFunction
canceltriggers when click cancel buttonFunction

Slots

NameDescriptionType
referenceHTML element that triggers Popconfirm
actions 2.8.1content of the Popconfirm footerobject

Exposes

NameDescriptionType
popperRef 2.10.7el-popper component instanceobject
hide 2.10.7hide popconfirmFunction

Source

ComponentStyleDocs

Contributors