From 01ceba2e231a329d43a667589326cc784cc41a88 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Tue, 19 Mar 2024 19:02:46 +0800
Subject: [PATCH] 更新

---
 components/caption/caption.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/components/caption/caption.vue b/components/caption/caption.vue
index e2ffbcb..6aceefa 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()">
@@ -25,6 +25,10 @@
 			fontSize: {
 				type: String,
 				value: '32rpx'
+			},
+			bgColor: {
+				type: String,
+				value: '#017BFC'
 			}
 		},
 		methods: {
@@ -45,7 +49,7 @@
 		.line {
 			width: 6rpx;
 			height: 28rpx;
-			background-color: #017BFC;
+			// background-color: #017BFC;
 			margin-right: 14rpx;
 		}
 

--
Gitblit v1.9.3