1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <template>
- <router-view />
- </template>
- <script>
- export default {
- mounted() {
- this.$mitt.on('test', e => {
- console.log('test', e)
- })
- }
- }
- </script>
- <style lang="less">
- html, body {
- // overscroll-behavior: none;
- // overflow: hidden;
- height: 100%;
- }
- #app {
- height: 100%;
- }
- // * {
- // user-select: none;
- // -webkit-touch-callout: none;
- // }
- // // 360浏览器不支持not()
- // input, textarea {
- // user-select: initial;
- // }
- // 字体
- // @font-face {
- // font-family: 'Source Han Serif CN';
- // src: url('@/assets/style/SourceHanSerifCN-Regular.otf');
- // }
- // @font-face {
- // font-family: 'Source Han Serif CN-Bold';
- // src: url('@/assets/style/SourceHanSerifCN-Bold.otf');
- // }
- // i {
- // font-style: italic;
- // }
- // 滚动条
- // ::-webkit-scrollbar { background: #dddecc; width: 0.3rem; height: 0.3rem; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
- // ::-webkit-scrollbar-thumb { background: #828a5b; border-radius: 0.15rem; }
- // ::-webkit-scrollbar-corner { background: #dddecc; }
- // // vue组件过渡效果
- // .fade-out-leave-active {
- // transition: opacity 1s;
- // }
- // .fade-out-leave-to {
- // opacity: 0;
- // }
- // // 不断渐变显隐 animation
- // .animation-show-hide {
- // animation: show-hide 1.8s infinite;
- // }
- // @keyframes show-hide {
- // 0% {
- // opacity: 0;
- // }
- // 50% {
- // opacity: 1;
- // }
- // 100% {
- // opacity: 0;
- // }
- // }
- // // vue-viewer
- // .viewer-container {
- // background-color: rgba(0, 0, 0, 80%) !important;
- // }
- // 或者
- // .viewer-backdrop {
- // background-color: rgba(0, 0, 0, 90%) !important;
- // }
- </style>
|