mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
Added maxWidth minWidth
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<template>
|
||||
<modal name="conditional-modal"
|
||||
:adaptive="true"
|
||||
:max-width="1000"
|
||||
:max-height="400"
|
||||
width="80%"
|
||||
height="50%"
|
||||
@before-open="beforeOpen">
|
||||
<div style="padding:30px; text-align: center">
|
||||
Hello!
|
||||
@@ -11,14 +15,14 @@
|
||||
export default {
|
||||
name: 'ConditionalModal',
|
||||
methods: {
|
||||
beforeOpen (event) {
|
||||
beforeOpen(event) {
|
||||
console.log('Event:', event)
|
||||
console.log('Params:', event.params)
|
||||
|
||||
if (event.params.show === false) {
|
||||
event.stop()
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user