vue-bgl-popup
v1.0.3
Published
A Vue.JS popup
Downloads
9
Readme
Bagel Popup
a simple popup for Vue.js
install
npm i vue-bgl-popup
Global import to main.js
import Popup from 'vue-bgl-popup'
Vue.component("popup", Popup);
in a component
<popup v-model="open">
<!--YOUR SLOT HERE-->
<div> Popping out</div>
</popup>
<script>
export default {
data() {
return {
open: true
}
}
}
</script>
###Props
| prop | required | default | type |
|---------|----------|---------|---------|
| forced | no | false | Boolean |
| value | yes | | dynamic |
| width | no | 700px | String |
###Events
| Event | options | triggered when |
|----------|----------|---------------------|
| @input | false | the popup is closed |