zhengyiming
2025-02-10 958b79ed89b9e742540f714a80261d222c0fc09b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<template>
  <div :class="['page-title-v2-wrapper', { showLine }]">
    <div class="page-title-inner">
      <div class="page-title">{{ title }}</div>
      <div class="page-sub-title" v-if="subTitle">{{ subTitle }}</div>
    </div>
    <slot name="titleRight"></slot>
  </div>
</template>
 
<script setup lang="ts">
import { PageTitleV2Props } from './pageJJ';
 
defineOptions({
  name: 'PageTitleV2',
});
 
const props = withDefaults(defineProps<PageTitleV2Props>(), {
  showLine: false,
});
</script>
 
<style lang="scss" scoped>
@use '@/style/common.scss' as *;
 
.page-title-v2-wrapper {
  display: flex;
  align-items: center;
  padding-bottom: boleGetCssVar('jj-page', 'page-v');
 
  &.showLine {
    border-bottom: 1px solid #eeeeee;
  }
 
  .page-title-inner {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
  }
 
  .page-title {
    font-size: 16px;
    font-weight: bold;
    color: getCssVar('text-color', 'primary');
    line-height: 22px;
  }
 
  .page-sub-title {
    margin-left: 16px;
    font-size: 12px;
    color: #7a7a7a;
    line-height: 14px;
  }
 
  :deep() {
    .el-button {
      --bole-pro-form-input-height: 32px;
      padding: 8px 25px;
    }
  }
}
</style>