Dialog.vue 562 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"></slot>
  9. <v-divider></v-divider>
  10. <v-card-actions>
  11. <v-spacer></v-spacer>
  12. <slot name="dialogBtn"></slot>
  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>