Newer
Older
shipFront / src / layout / components / AppHeader.vue
[wangxitong] on 15 Oct 2021 1 KB first commit
<template>
  <el-header class="app-header">
    <div class="block"/>
    <div class="title">{{ title }}</div>
    <div class="block" style="transform: rotatey(-180deg);"/>
    <div class="block1"/>
    <div class="block1" style="transform: rotatey(-180deg);"/>
  </el-header>
</template>

<script>

export default {
  name: 'AppHeader',
  components: {  },
  data() {
    return {
      title: this.baseConfig.title, // 标题
    }
  },
  created() {
  },
  methods: {
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .title{
    display: block;
    font-size: 28px;
    line-height: 45px;
    text-align: center;
    font-weight: bold;
    width: 22%;
    /*background-color: #E6A23C;*/
  }
  .block{
    background: url("../../assets/images/title.png") no-repeat;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
    width: 38%;
    height: 45px;

  }
  .block1{
    background: url("../../assets/images/line.png") no-repeat;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
    width: 45%;
    height: 15px;
  }
</style>