Blame view

ant-design-vue-jeecg/src/components/tools/HeadInfo.vue 1.03 KB
肖超群 authored
1
2
3
4
5
6
7
8
9
<template>
  <div class="head-info" :class="center && 'center'">
    <span>{{ title }}</span>
    <p>{{ content }}</p>
    <em v-if="bordered"/>
  </div>
</template>

<script>
肖超群 authored
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export default {
  name: "HeadInfo",
  props: {
    title: {
      type: String,
      default: ''
    },
    content: {
      type: String,
      default: ''
    },
    bordered: {
      type: Boolean,
      default: false
    },
    center: {
      type: Boolean,
      default: true
肖超群 authored
28
29
    }
  }
肖超群 authored
30
}
肖超群 authored
31
32
33
</script>

<style lang="less" scoped>
肖超群 authored
34
35
36
37
38
.head-info {
  position: relative;
  text-align: left;
  padding: 0 32px 0 0;
  min-width: 125px;
肖超群 authored
39
肖超群 authored
40
41
42
43
  &.center {
    text-align: center;
    padding: 0 32px;
  }
肖超群 authored
44
肖超群 authored
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  span {
    color: rgba(0, 0, 0, .45);
    display: inline-block;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 4px;
  }

  p {
    color: rgba(0, 0, 0, .85);
    font-size: 24px;
    line-height: 32px;
    margin: 0;
  }

  em {
    background-color: #e8e8e8;
    position: absolute;
    height: 56px;
    width: 1px;
    top: 0;
    right: 0;
肖超群 authored
67
  }
肖超群 authored
68
}
肖超群 authored
69
</style>