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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
| <template>
| <view class="cur-container" :style="{color: color}">
| <view class="l">
| <view class="title">
| <view class="line"></view>
| <view>
| {{title}}
| </view>
|
| <view class="title-more">
| <slot name="titleMore"></slot>
| </view>
| </view>
| <view class="bg-box">
|
| </view>
| </view>
| <view class="r">
| <view class="more">
| <slot name="more"></slot>
| </view>
| </view>
| </view>
| </template>
|
| <script>
| export default {
| props: {
| title: {
| type: String,
| default: ''
| },
| color: {
| type: String,
| default: '#000'
| }
| },
|
| methods: {
|
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .cur-container {
| // padding: 0 10rpx;
| height: 60rpx;
| justify-content: space-between;
| align-items: center;
|
| .l {
| height: 100%;
| display: flex;
| justify-content: flex-start;
|
| position: relative;
|
| .title {
| display: flex;
| position: absolute;
| top: 50%;
| left: 0;
| transform: translate(0, -50%);
| z-index: 99;
| align-items: center;
|
| .line {
| width: 6rpx;
| height: 30rpx;
| margin-right: 10rpx;
| background-color: #017BFC;
| }
|
| .title-more {
| margin-left: 20rpx;
| }
| }
|
| .bg-box {
| // position: absolute;
| // top: 50%;
| // bottom: 0;
| // width: 96rpx;
| // background: linear-gradient(to right, #2991faff, #73A2F900);
| // z-index: 1;
| }
| }
|
| .r {
| height: 100%;
| display: flex;
| justify-content: flex-end;
|
| .more {
| display: flex;
| justify-content: center;
| align-items: center;
| }
| }
| }
| </style>
|
|