<template>
  <div :class="`${namespace}-header`">
    <div class="title">
      <AddressComponent/>
    </div>
    <div class="weather">
      <WeatherComponent />
    </div>
  </div>
</template>

<script>
import AddressComponent from './AddressComponent'
import WeatherComponent from './WeatherComponent.vue'

export default {
  inject: ['namespace'],
  components: {
    AddressComponent,
    WeatherComponent
  },
  props: {
    title: {
      type: String,
      default: '重庆市消防远程监控',
    },
  },
  created() {
  },
  methods: {
  }
}
</script>

<style scoped lang="less">
  @import "@/assets/styles/config.less";

  .@{namespace}-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    background: url("@/assets/images/header-bg.png") no-repeat;
    background-size: 100% 100%;
    height: 112px;
    .title {
      height: 100%;
      font-size: 23px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-left: 500px;
    }
  }
</style>
