App.vue 847 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <Header v-if="this.$store.state.isLogin"></Header>
  3. <router-view></router-view>
  4. </template>
  5. <script>
  6. import Header from "comps/Header.vue";
  7. import * as echarts from "echarts";
  8. import { provide } from "vue";
  9. export default {
  10. components: {
  11. Header,
  12. },
  13. setup() {
  14. provide("ec", echarts);
  15. return {};
  16. },
  17. };
  18. </script>
  19. <style>
  20. .info-box {
  21. width: 460px;
  22. height: calc(100% - 36px);
  23. padding: 18px 30px;
  24. box-sizing: border-box;
  25. background: linear-gradient(180deg, #20364f 0%, rgba(27, 50, 74, 0.85) 100%);
  26. }
  27. .bar {
  28. overflow: scroll;
  29. overflow-x: hidden;
  30. }
  31. .bar::-webkit-scrollbar-track {
  32. background: #2f4966;
  33. border-radius: 5px;
  34. }
  35. .bar::-webkit-scrollbar {
  36. width: 5px;
  37. background: blue;
  38. border-radius: 5px;
  39. }
  40. .bar::-webkit-scrollbar-thumb {
  41. background: #10ffb9;
  42. border-radius: 5px;
  43. }
  44. </style>