Popup

A customized content area slides out or pops up on the screen, triggered by other controls.

Import

import { Popup, PopupTitleBar } from  'mand-mobile-next'

Vue.createApp().component(Popup.name, Popup)
Vue.createApp().component(PopupTitleBar.name, PopupTitleBar)

Code Examples

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
titletitle of popupString--
describedescription of popupString--
ok-textconfirmation textString-no confirmation button if empty
cancel-textcancellation textString-no cancellation button if empty
only-closeonly right close buttonBooleanfalse-
title-aligntitle and description positionStringcenternote that left and right will hide the left and right buttons respectively

@beforeShow()

Popup will be shown

@show()

Show popup

@beforeHide()

Popup will be hiden

@hide()

Hide popup

PopupTitleBar Events

@confirm()

Confirm selection

@cancel()

Cancel selection