Showroom.vue 857 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <article class="showroom">
  3. <header>
  4. <h1 v-html="item.name" />
  5. </header>
  6. <section class="images">
  7. <figure v-html="item.field_visuels"></figure>
  8. </section>
  9. <section class="content">
  10. <address v-html="item.field_public_address" />
  11. <div class="phone" v-html="item.field_public_phone" />
  12. <div class="email" v-html="item.field_public_email" />
  13. </section>
  14. </article>
  15. </template>
  16. <script>
  17. // import { JSONAPI } from 'vuejs/api/json-axios'
  18. import router from 'vuejs/route'
  19. let basePath = drupalSettings.path.baseUrl + drupalSettings.path.pathPrefix;
  20. export default {
  21. name: "Showroom",
  22. router,
  23. props: ['item'],
  24. // data(){
  25. // return {
  26. // alias: this.item.view_node.replace(/^.?\/showroom\//g, '')
  27. // }
  28. // },
  29. // methods:{}
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. </style>