From a734098a615651f35645a1e3d004620c88521d19 Mon Sep 17 00:00:00 2001 From: whycq <you@example.com> Date: 星期五, 23 九月 2022 11:12:19 +0800 Subject: [PATCH] # --- components/y-title/y-title.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/components/y-title/y-title.vue b/components/y-title/y-title.vue index 6504d75..40c1525 100644 --- a/components/y-title/y-title.vue +++ b/components/y-title/y-title.vue @@ -1,7 +1,7 @@ <template> - <view style="display: flex;align-items: center;width: 100%;background-color: #fff;border-radius: 5rpx;"> + <view style="display: flex;align-items: center;width: 100%;border-radius: 5rpx;"> <view class="decorate"></view> - <view>{{titleText}}</view> + <view class="title">{{titleText}}</view> </view> </template> @@ -10,7 +10,7 @@ name:"y-title", props: { title: { - type: String, + type: [String,Number], default: '鏍囬' }, }, @@ -35,4 +35,15 @@ border-radius: 5rpx; background-color: #409EFF; } + .title { + width: 100%; + height: 50rpx; + line-height: 55rpx; + font-size: 32rpx; + font-weight: bold; + font-family: Arial, Helvetica, sans-serif; + text-indent: 1%; + letter-spacing: 4rpx; + color: #303133; + } </style> \ No newline at end of file -- Gitblit v1.9.1