<template>
  <div class="header-bar">

    <sider-trigger :collapsed="collapsed" icon="md-menu" @on-change="handleCollpasedChange"></sider-trigger>
    <!-- <custom-bread-crumb show-icon style="margin-left: 30px;" :list="breadCrumbList"></custom-bread-crumb> -->
    <div class="custom-content-con">
      <slot></slot>
      <!-- <div class="boshiLogo" >
        <img :src="url" alt=""  style="display:block;height:40px" v-show="show==1">
      </div> -->
    </div>
  </div>
</template>
<script>
import siderTrigger from './sider-trigger'
import customBreadCrumb from './custom-bread-crumb'
import './header-bar.less'
export default {
    name: 'HeaderBar',
    components: {
        siderTrigger,
        customBreadCrumb
    },
    props: {
        collapsed: Boolean
    },
    data () {
        return {
            url: require('@/assets/images/boshi.png')
        }
    },
    computed: {
        breadCrumbList () {
            return this.$store.state.app.breadCrumbList
        },
        show () {
            return this.$store.state.user.showRainbow
        }
    },
    methods: {
        handleCollpasedChange (state) {
            this.$emit('on-coll-change', state)
        }
    }
}
</script>
