From 3c738f4fe2762bba8087e5a22fc0dc06560eab0e Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 08 Aug 2024 10:01:17 +0800
Subject: [PATCH] 三色任务与自查任务

---
 components/caption/caption.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/components/caption/caption.vue b/components/caption/caption.vue
index e2ffbcb..e5a5c39 100644
--- a/components/caption/caption.vue
+++ b/components/caption/caption.vue
@@ -1,7 +1,7 @@
 <template>
 	<view class="caption flex a-i-c j-c-s-b">
 		<view class="flex a-i-c">
-			<view class="line"></view>
+			<view class="line" :style="{backgroundColor:bgColor}"></view>
 			<text class=" fw" :style="{fontSize:fontSize}">{{title}}</text>
 		</view>
 		<view class="caption-right" v-if="isLink" @click="navTo()">
@@ -24,7 +24,11 @@
 			url: String, //点击后跳转的URL地址
 			fontSize: {
 				type: String,
-				value: '32rpx'
+				default: '32rpx'
+			},
+			bgColor: {
+				type: String,
+				default: '#017BFC'
 			}
 		},
 		methods: {
@@ -45,7 +49,7 @@
 		.line {
 			width: 6rpx;
 			height: 28rpx;
-			background-color: #017BFC;
+			// background-color: #017BFC;
 			margin-right: 14rpx;
 		}
 

--
Gitblit v1.9.3