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
| <template>
| <view>
| <view style="display: flex;align-items: center;width: 100%;">
| <view class="decorate"></view>
| <view class="title">{{titleText}}</view>
| </view>
| </view>
| </template>
|
| <script>
| export default {
| name:"y-title",
| props: {
| title: {
| type: [String,Number],
| default: '标题'
| },
| },
| computed: {
| titleText() {
| return this.title
| },
| },
| data() {
| return {
|
| };
| }
|
| }
| </script>
|
| <style>
| .decorate {
| width: 8rpx;
| height: 24rpx;
| margin: 2%;
| border-radius: 5rpx;
| background-color: #409EFF;
| }
| .title {
| width: 100%;
| height: 50rpx;
| line-height: 55rpx;
| font-size: 32rpx;
| font-weight: 900;
| font-family: Helvetica;
| letter-spacing: 3rpx;
| color: #303133;
| }
| </style>
|
|