page-head.vue 654 字节
Newer Older
Y
init  
yurj26 已提交
1
<template name="page-head">
2 3 4
  <view class="common-page-head">
    <view class="common-page-head-title-box">
      <text class="common-page-head-title">{{title}}</text>
Y
init  
yurj26 已提交
5
    </view>
6
  </view>
Y
init  
yurj26 已提交
7
</template>
8 9 10 11 12 13 14 15
<script lang="uts">
  export default {
    name: "page-head",
    props: {
      title: {
        type: String,
        default: ""
      }
Y
init  
yurj26 已提交
16
    }
17
  }
Y
init  
yurj26 已提交
18 19
</script>
<style>
20
  .common-page-head {
21
    padding: 20px;
22
    align-items: center;
23
  }
Y
init  
yurj26 已提交
24

25
  .common-page-head-title-box {
26 27
    padding: 0 20px;
    border-bottom: 1px solid #D8D8D8;
28
  }
Y
init  
yurj26 已提交
29

30
  .common-page-head-title {
31
    line-height: 40px;
32 33
    color: #BEBEBE;
  }
34
</style>