mand-mobile/components/popup
Shawn Xu 85b0fad3c6 fix(popup): display popup box synchronously (#342)
support for toast show and hide synchronous calls

#341
2019-03-08 13:35:44 +08:00
..
demo example(popup): remove prevet-scroll 2018-11-19 21:13:41 +08:00
mixins fix(popup, picker, date-picker, tab-picker, selector, cashier): extract props to mixins 2018-12-12 14:11:25 +08:00
test test: update cases & snapshots 2019-01-26 22:26:26 +08:00
component.js Initial commit 2018-03-26 16:04:04 +08:00
index.vue fix(popup): display popup box synchronously (#342) 2019-03-08 13:35:44 +08:00
README.en-US.md doc: update preview links 2019-01-29 16:31:24 +08:00
README.md doc: update preview links 2019-01-29 16:31:24 +08:00
title-bar.vue fix(popup, picker, date-picker, tab-picker, selector, cashier): extract props to mixins 2018-12-12 14:11:25 +08:00

title preview
Popup https://didi.github.io/mand-mobile/examples/#/popup

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

Import

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

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

Code Examples

API

Popup Props

Props Description Type Default Note
v-model display popup or not Boolean false -
has-mask has mask or not Boolean true -
mask-closable if the popup will be closed when clicking mask Boolean true -
position the position of popup String center center, top, bottom, left, right
transition the animation effect of popup String - fade, fade-bounce, fade-slide, fade-zoom
slide-up, slide-down, slide-left, slide-right

PopupTitleBar Props

Props Description Type Default Note
title title of popup String - -
describe description of popup String - -
ok-text confirmation text String - no confirmation button if empty
cancel-text cancellation text String - no cancellation button if empty

Popup Events

@beforeShow()

Popup will be shown

@show()

Show popup

@beforeHide()

Popup will be hiden

@hide()

Hide popup

PopupTitleBar Events

@confirm()

Confirm selection

@cancel()

Cancel selection