Navbar.vue 1.02 KB
<template>
  <div class="navbar" :class="slideClass">
    <!-- <span class="navbar-platform">快速开发平台</span> -->
    <NavbarRight />
  </div>
</template>

<script>
import { mapState } from 'vuex'
import NavbarRight from '../components/NavbarRight'

export default {
  components: { NavbarRight },
  computed: {
    ...mapState({
      slideClass: state => state.settings.slideClass,
    })
  }
}
</script>

<style lang="scss" scoped>
@import "~@/styles/variables.scss";

.navbar {
  height: $headerHeight;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #dcdfe6;
  box-sizing: border-box;
  display: flex;
  align-items: center;

  &.lightWhite {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  &.dark {
    background: #161618;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    ::v-deep .right-menu .right-menu-item {
      color: rgba(255, 255, 255, 0.85);
    }
  }

  ::v-deep .right-menu {
    margin-left: auto;
    float: none;
    height: $headerHeight;
  }
}
</style>