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.

68 lines
1.1 KiB

  1. <template>
  2. <v-dialog
  3. v-model="dialog"
  4. width="800px"
  5. >
  6. <v-card>
  7. <v-card-title class="grey lighten-2">
  8. {{ title }}
  9. </v-card-title>
  10. <v-container grid-list-sm>
  11. <v-layout
  12. wrap
  13. >
  14. <v-flex xs12>
  15. <slot />
  16. </v-flex>
  17. </v-layout>
  18. </v-container>
  19. <v-card-actions>
  20. <v-spacer />
  21. <v-btn
  22. class="text-capitalize"
  23. text
  24. color="primary"
  25. @click="dialog = false"
  26. >
  27. Cancel
  28. </v-btn>
  29. <v-btn
  30. class="text-none"
  31. text
  32. @click="dialog = false"
  33. >
  34. {{ button }}
  35. </v-btn>
  36. </v-card-actions>
  37. </v-card>
  38. </v-dialog>
  39. </template>
  40. <script>
  41. export default {
  42. props: {
  43. title: {
  44. type: String,
  45. default: ''
  46. },
  47. button: {
  48. type: String,
  49. default: 'Yes'
  50. }
  51. },
  52. data: () => ({
  53. dialog: false
  54. }),
  55. methods: {
  56. open() {
  57. this.dialog = true
  58. },
  59. agree() {
  60. this.dialog = false
  61. },
  62. cancel() {
  63. this.dialog = false
  64. }
  65. }
  66. }
  67. </script>