Skip to content

xtf-popup ​

组件说明 ​

xtf-popup 是 反馈 类组件。


基础用法 ​

vue
<template>
  <xtf-popup />
</template>

属性一览 ​

属性类型默认值
showBooleanfalse
positionString'center'
overlayBooleantrue
closeOnClickOverlay[Booleantrue
closeOnClickBlank[Booleanfalse
overlayCloseOnlyVisibleRegion[Booleantrue
safeAreaInsetBottom[Booleannull
zIndex[String``
duration[String``
enterAnimationString``
leaveAnimationString``
beforeCloseFunctionnull
offsetX[String0
offsetY[String0
overlayInsetTop[String0
overlayInsetRight[String0
overlayInsetBottom[String0
overlayInsetLeft[String0
customGapX[String0
customGapY[String0
customTop[String``
customLeft[String``
width[String``
height[String``
overlayStyle[String``
roundBooleantrue
showClose[Booleanfalse
closeIconPositionString'top-right'
closeIconString'×'
showHandle[Booleanfalse
lockScroll[Booleantrue
destroyOnCloseBooleanfalse
customClassString``
customStyle[String``

事件 ​

事件名说明
update:show—
open—
opened—
close—
closed—
click-overlay—
click-close—
blocked-close—

主题说明 ​

该组件使用 var(--xtf-*) CSS 变量体系。

MIT Licensed