Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. //Modal.vue
  2.  
  3. <template>
  4. <v-layout row justify-center>
  5. <v-dialog v-model="dialog" persistent max-width="290">
  6. <template v-slot:activator="{ on }">
  7. <v-btn class="modal-btn" color="primary" dark v-on="on">Open Dialog</v-btn>
  8. </template>
  9. <v-card>
  10. <v-card-title class="headline">Use Google's location service?</v-card-title>
  11. <v-card-text>Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.</v-card-text>
  12. <v-card-actions>
  13. <v-spacer></v-spacer>
  14. <v-btn color="green darken-1" flat @click="dialog = false">Disagree</v-btn>
  15. <v-btn color="green darken-1" flat @click="dialog = false">Agree</v-btn>
  16. </v-card-actions>
  17. </v-card>
  18. </v-dialog>
  19. </v-layout>
  20. </template>
  21.  
  22. <script>
  23. export default {
  24. data () {
  25. return {
  26. dialog: false
  27. }
  28. }
  29. }
  30. </script>
  31.  
  32. <style>
  33. </style>
  34.  
  35. //Body.vue
  36.  
  37. <template>
  38. <div class="body">
  39. <full-page :options="options" id="fullpage">
  40. <div class="section">
  41. <Modal></Modal>
  42. </div>
  43. <div class="section">
  44. <h3>Section 2</h3>
  45. </div>
  46. <div class="section">
  47. <h3>Section 3</h3>
  48. </div>
  49. </full-page>
  50.  
  51. </div>
  52. </template>
  53.  
  54. <script>
  55. import Modal from './Modal'
  56. export default {
  57. name: 'Body',
  58. Components: {
  59. Modal
  60. },
  61. data () {
  62. return {
  63. options: {
  64. afterLoad: this.afterLoad,
  65. scrollOverflow: true,
  66. scrollBar: false,
  67. menu: '#menu',
  68. navigation: true,
  69. anchors: ['page1', 'page2', 'page3'],
  70. sectionsColor: ['#fec401', '#1bcee6', '#ee1a59']
  71. },
  72. logo: { width: 500 },
  73. dialog: false
  74. }
  75. }
  76. }
  77. </script>
  78.  
  79. <style>
  80. .jumbotron {
  81. margin: 0 200px;
  82. }
  83.  
  84. button {
  85. margin: 5px;
  86. border-radius: 10px;
  87. }
  88.  
  89. .modal-text-container p {
  90. text-align: left;
  91. }
  92. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement