index.vue 742 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <div
  3. class="app-player"
  4. ref="layer"
  5. :class="{showPlayer:$route.meta.hasPreviewArea}"
  6. :style="{
  7. left: $route.meta.previewAreaExtraLeft + 58 + 'px',
  8. }"
  9. >
  10. <pano />
  11. </div>
  12. </template>
  13. <script>
  14. import config from "@/config";
  15. import pano from "./pano";
  16. export default {
  17. components:{
  18. pano
  19. },
  20. data() {
  21. return {
  22. number: config.projectNum,
  23. };
  24. },
  25. };
  26. </script>
  27. <style lang="less" scoped>
  28. .app-player {
  29. position: absolute;
  30. top: 0;
  31. height: 100%;
  32. left: 58px;
  33. right: 274px;
  34. z-index: -100;
  35. opacity: 0;
  36. pointer-events: none;
  37. > iframe {
  38. width: 100%;
  39. height: 100%;
  40. }
  41. &.showPlayer{
  42. opacity: 1;
  43. z-index: 999;
  44. pointer-events: auto;
  45. }
  46. }
  47. </style>