Dialog.vue 513 B

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