Popconfirm ​

Un cuadro de diálogo de confirmación simple de una acción.

Placement ​

popconfirm has 9 placements.

Use attribute title to set the display content when click the reference element. The attribute placement determines the position of the popconfirm. Its value is [orientation]-[alignment] with four orientations top, left, right, bottom and three alignments start, end, null, and the default alignment is null. Take placement="left-end" for example, popconfirm will display on the left of the element which you are hovering and the bottom of the popconfirm aligns with the bottom of the element.

Uso básico ​

Popconfirm es similar a Popover. Así que para algunos atributos duplicados, por favor consulte la documentación de Popover.

Solo el atributo title está disponible en Popconfirm, content será ignorado.

Personalizar ​

Puede personalizar Popconfirm así:

Evento disparador ​

Haga clic en el botón para activar el evento

API ​

Atributos ​

NombreDescripciónTipoPor defecto
titleTítulostring—
effect 2.11.2Popover tiene dos temas: dark y lightenum / stringlight
confirm-button-textTexto del botón de confirmarstring—
cancel-button-textTexto del botón de cancelarstring—
confirm-button-typeTipo de botón para confirmarenumprimary
cancel-button-typeTipo de botón para cancelarenumtext
iconComponente de iconostring / ComponentQuestionFilled
icon-colorColor del iconostring#f90
hide-iconsi se oculta el iconobooleanfalse
hide-afterretraso de la desaparición, en milisegundosnumber200
teleportedsi el popconfirm se teletransporta al bodybooleantrue
persistentcuando el popconfirm este inactivo y persistent es false, el popconfirm será destruidobooleanfalse
widthpopconfirm ancho, ancho mínimo 150pxstring / number150
tooltipInherits all attributes from Tooltip, except: popper-class, popper-style, fallback-placements——

Eventos ​

NombreDescripciónTipo
confirmse dispara cuando se hace clic en el botón confirmarFunction
cancelactiva cuando se hace clic en el botón cancelarFunction

Slots ​

NombreDescripciónType
referenceElemento HTML que activa Popconfirm—
actions 2.8.1content of the Popconfirm footerobject

Expuesto ​

NombreDescriciónTipo
popperRef 2.10.7instancia del componente el-popperobject
hide 2.10.7hide popconfirmFunction

Fuente ​

Componentes • Style • Documentación

Contribuidores ​