From e6a02c8b09a796e436a501e9b87d19e25c34c9d1 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期日, 07 四月 2024 15:53:37 +0800
Subject: [PATCH] #

---
 components/y-title/y-title.vue |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/components/y-title/y-title.vue b/components/y-title/y-title.vue
index 6504d75..c120ff6 100644
--- a/components/y-title/y-title.vue
+++ b/components/y-title/y-title.vue
@@ -1,7 +1,9 @@
 <template>
-	<view style="display: flex;align-items: center;width: 100%;background-color: #fff;border-radius: 5rpx;">
-		<view class="decorate"></view>
-		<view>{{titleText}}</view>
+	<view>
+		<view style="display: flex;align-items: center;width: 100%;">
+			<view class="decorate"></view>
+			<view class="title">{{titleText}}</view>
+		</view>
 	</view>
 </template>
 
@@ -10,7 +12,7 @@
 		name:"y-title",
 		props: {
 			title: {
-				type: String,
+				type: [String,Number],
 				default: '鏍囬'
 			},
 		},
@@ -24,6 +26,7 @@
 				
 			};
 		}
+		
 	}
 </script>
 
@@ -35,4 +38,14 @@
 		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>
\ No newline at end of file

--
Gitblit v1.9.1