Blame view

src/components/Dec/index.vue 720 Bytes
be966eff   jack   1.添加文件
1
2
3
4
5
6
7
8
9
  <template>
    <div class="dec">
      <span class="title">{{ title }}</span>
      {{ content }}
    </div>
  </template>
  <script>
  export default {
    name: 'Dec',
8510e248   jack   1.增加公告交互
10
11
12
13
14
15
    props: {
      content: {
        type: String,
        default: ''
      }
    },
be966eff   jack   1.添加文件
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
    computed: {
      title() {
        return document.title.split('-')[0]
      }
    }
  }
  </script>
  <style lang='scss' scoped>
  .dec {
    width: 100%;
    height: 50px;
    line-height: 50px;
    border-top: 1px solid #ccc;
    background: #fff;
    padding-left: 10px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    .title {
      font-size: 16px;
      color: rgb(64, 158, 255);
      border-left: 4px solid rgb(64, 158, 255);
      padding-left: 10px;
      margin-right: 15px;
      font-weight: 600;
    }
  }
  </style>