<template>
  <div class="my-head">
    <div class="my-menu" @click="setAsideMenu">
      <Icon type="md-menu" size='28'/>
    </div>
    <div class="user-info">
      <Icon  type="md-contact" size="28"/>
        <Dropdown  trigger="click">
          <a href="javascript:void(0)">
              <span>登录名称</span>
              <Icon type="ios-arrow-down" size='20'></Icon>
          </a>
          <DropdownMenu slot="list">
              <DropdownItem>密码修改</DropdownItem>
              <DropdownItem>退出</DropdownItem>
          </DropdownMenu>
      </Dropdown>
      <!-- <span>登录名称</span>
      <Icon type="ios-arrow-down" size='20'/> -->
    </div>
  </div>
</template>

<script>
// import axios from 'axios'
export default {
  components: {

  },

  mixins: [],

  props: {

  },

  data () {
    return {
      showAside: false
    }
  },

  computed: {

  },

  mounted () {
  },

  methods: {
    setAsideMenu () {
      this.showAside = !this.showAside
      this.$emit('setAsideMenu', this.showAside)
    }

  }

}
</script>

<style scoped lang="less" >
.my-head{
  display:flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 2px 0 rgba(11,13,17,0.05);
  width: 100%;
  font-size: 20px;
  background: #393E47;
  z-index:999999;
  .my-menu{
    width: 80px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background:#728DEE;
    color:#fff;
  }
  .user-info{
     color: #DFE0E1;
     margin-right: 20px;
     a, span{
       font-size: 14px;
       color: #DFE0E1;
       text-decoration:none;
     }
  }
}
</style>
