Dialog.vue 547 B

123456789101112131415161718192021222324252627282930313233343536
  1. <!-- Fenêtre de dialogue -->
  2. <template>
  3. <v-dialog
  4. v-model="show"
  5. persistent
  6. max-width="800"
  7. >
  8. <v-card>
  9. <slot name="dialogText" />
  10. <v-divider />
  11. <v-card-actions>
  12. <v-spacer />
  13. <slot name="dialogBtn" />
  14. </v-card-actions>
  15. </v-card>
  16. </v-dialog>
  17. </template>
  18. <script lang="ts">
  19. import { defineComponent } from '@nuxtjs/composition-api'
  20. export default defineComponent({
  21. props: {
  22. show: {
  23. type: Boolean,
  24. required: true
  25. }
  26. }
  27. })
  28. </script>
  29. <style scoped>
  30. </style>