App.vue 795 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div ref="app" id="app">
  3. <heads class="heads"></heads>
  4. <router-view :key="$route.fullPath" />
  5. <foot></foot>
  6. <upwindow></upwindow>
  7. </div>
  8. </template>
  9. <script>
  10. import heads from './components/heads/index.vue';
  11. import foot from './components/foots/index.vue';
  12. import upwindow from './components/upwindow.vue';
  13. export default {
  14. components: {
  15. heads,
  16. foot,
  17. upwindow
  18. },
  19. computed: {},
  20. data() {
  21. return {};
  22. },
  23. mounted() {
  24. window.addEventListener('scroll', this.handlescroll, true);
  25. },
  26. methods: {}
  27. };
  28. </script>
  29. <style lang="scss">
  30. body {
  31. width: 100%;
  32. height: 100%;
  33. }
  34. #app {
  35. // width: 1920px;
  36. // height: 1080px;
  37. // overflow-y: auto;
  38. width: 100%;
  39. height: 100%;
  40. min-width: 1100px;
  41. .heads {
  42. width: 100%;
  43. }
  44. }
  45. </style>