From da481078e4f5b1477961398f4722e446df0fa56b Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 03 十一月 2023 16:17:17 +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