Skip to content
On this page

VPopup

A customized content area pops up on the screen.

Import

js
import { VPopup } from 'vui-vc-next'

app.component(VPopup.name, VPopup)

API

PropsDescriptionTypeDefaultNote
v-modeldisplay popup or notBooleanfalse-
has-maskhas mask or notBooleantrue-
mask-closableif the popup will be closed when clicking maskBooleantrue-
positionthe position of popupStringcentercenter, top, bottom, left, right
transitionthe animation effect of popupString-fade, fade-bounce, fade-slide, fade-zoom
slide-up, slide-down, slide-left, slide-right

PopupTitleBar Props

PropsDescriptionTypeDefaultNote
titleThe title of popup title barString--
describeThe description of popup title barString--
ok-textThe confirmation textString-no confirmation button if empty
cancel-textThe cancellation textString-no cancellation button if empty
large-radiusWhether display large radiusBooleanfalse-
only-closeWhether display right close button onlyBooleanfalse-
title-alignThe position of title and descriptionStringcenternote that left and right will hide the left and right buttons respectively
@mask-click()

Click upon mask

@before-show()

Popup will be shown

@show()

Show popup

@before-hide()

Popup will be hiden

@hide()

Hide popup