You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
502 B

4 years ago
4 years ago
4 years ago
  1. <template>
  2. <v-dialog
  3. v-model="dialog"
  4. width="800px"
  5. >
  6. <template v-slot:activator="{ }">
  7. <slot name="opener" :open="open" />
  8. </template>
  9. <slot name="content" :close="close" />
  10. </v-dialog>
  11. </template>
  12. <script lang="ts">
  13. import Vue from 'vue'
  14. export default Vue.extend({
  15. data() {
  16. return {
  17. dialog: false as Boolean
  18. }
  19. },
  20. methods: {
  21. close(): void {
  22. this.dialog = false
  23. },
  24. open(): void {
  25. this.dialog = true
  26. }
  27. }
  28. })
  29. </script>