index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <div class="d-f f-d-c w-h-100" >
  3. <div ref="appContentRef" class="f-1-h">
  4. <router-view></router-view>
  5. </div>
  6. </div>
  7. </template>
  8. <script lang="ts">
  9. import { defineComponent} from 'vue'
  10. export default defineComponent({
  11. name: 'App',
  12. components: {},
  13. setup () {
  14. }
  15. })
  16. </script>
  17. <style lang="scss" scoped>
  18. @import "../../common";
  19. .header {
  20. position: relative;
  21. padding: 0 20px 0 32px;
  22. background-color: $darken;
  23. }
  24. .header-logo {
  25. width: auto;
  26. height: 42px;
  27. margin: 19px 0;
  28. }
  29. .header-center {
  30. position: absolute;
  31. left: 50%;
  32. transform: translateX(-50%);
  33. div {
  34. cursor: pointer;
  35. padding: 0 28px;
  36. font-size: 14px;
  37. color: $white;
  38. transition: background-color 0.15s;
  39. background-color: $darken-lighten;
  40. &.active {
  41. background-color: $darkener;
  42. }
  43. }
  44. img {
  45. width: auto;
  46. height: 28px;
  47. margin-bottom: 4px;
  48. }
  49. }
  50. .header-right {
  51. div {
  52. cursor: pointer;
  53. padding: 0 20px;
  54. font-size: 14px;
  55. color: $white;
  56. border-left: 1px solid $grey;
  57. }
  58. img {
  59. width: auto;
  60. height: 20px;
  61. margin-right: 6px;
  62. }
  63. }
  64. </style>