App.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <router-view />
  3. </template>
  4. <script>
  5. export default {
  6. mounted() {
  7. this.$mitt.on('test', e => {
  8. console.log('test', e)
  9. })
  10. }
  11. }
  12. </script>
  13. <style lang="less">
  14. html, body {
  15. // overscroll-behavior: none;
  16. // overflow: hidden;
  17. height: 100%;
  18. }
  19. #app {
  20. height: 100%;
  21. }
  22. // * {
  23. // user-select: none;
  24. // -webkit-touch-callout: none;
  25. // }
  26. // // 360浏览器不支持not()
  27. // input, textarea {
  28. // user-select: initial;
  29. // }
  30. // 字体
  31. // @font-face {
  32. // font-family: 'Source Han Serif CN';
  33. // src: url('@/assets/style/SourceHanSerifCN-Regular.otf');
  34. // }
  35. // @font-face {
  36. // font-family: 'Source Han Serif CN-Bold';
  37. // src: url('@/assets/style/SourceHanSerifCN-Bold.otf');
  38. // }
  39. // i {
  40. // font-style: italic;
  41. // }
  42. // 滚动条
  43. // ::-webkit-scrollbar { background: #dddecc; width: 0.3rem; height: 0.3rem; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  44. // ::-webkit-scrollbar-thumb { background: #828a5b; border-radius: 0.15rem; }
  45. // ::-webkit-scrollbar-corner { background: #dddecc; }
  46. // // vue组件过渡效果
  47. // .fade-out-leave-active {
  48. // transition: opacity 1s;
  49. // }
  50. // .fade-out-leave-to {
  51. // opacity: 0;
  52. // }
  53. // // 不断渐变显隐 animation
  54. // .animation-show-hide {
  55. // animation: show-hide 1.8s infinite;
  56. // }
  57. // @keyframes show-hide {
  58. // 0% {
  59. // opacity: 0;
  60. // }
  61. // 50% {
  62. // opacity: 1;
  63. // }
  64. // 100% {
  65. // opacity: 0;
  66. // }
  67. // }
  68. // // vue-viewer
  69. // .viewer-container {
  70. // background-color: rgba(0, 0, 0, 80%) !important;
  71. // }
  72. // 或者
  73. // .viewer-backdrop {
  74. // background-color: rgba(0, 0, 0, 90%) !important;
  75. // }
  76. </style>