Created
November 21, 2018 06:46
-
-
Save lesonky/4ba2dc63683aca37f618408ad24b7879 to your computer and use it in GitHub Desktop.
vuetify dialog component #vuetify #dialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<v-dialog class="card-create-dialog__dialog" | |
v-model="$_show" | |
scrollable | |
persistent | |
:overlay="false" | |
max-width="800px" | |
transition="dialog-transition" | |
:fullscreen="$vuetify.breakpoint.xsOnly"> | |
</v-dialog> | |
</template> | |
<script> | |
export default { | |
name: 'Banner', | |
props: { | |
show: { | |
type: Boolean, | |
default: false, | |
}, | |
}, | |
computed: { | |
$_show: { | |
get() { | |
return this.show; | |
}, | |
set(nval) { | |
this.$emit('update:show', nval); | |
}, | |
}, | |
}, | |
}; | |
</script> | |
<style lang="scss" scoped> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment