From e3a277c0fbb77dc20dc3d7e783303019a96f35b5 Mon Sep 17 00:00:00 2001 From: ISNing <33572057+ISNing@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:04:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(theme):=20=E4=BD=BF=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E4=B8=8A=E6=96=B9=E7=9A=84=E9=81=AE=E7=BD=A9=E5=8F=AF=E9=80=89?= =?UTF-8?q?=20(#24)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/layouts/center.vue | 6 +++++- theme/layouts/cols.vue | 6 +++++- theme/layouts/cover.vue | 6 +++++- theme/layouts/default.vue | 6 +++++- theme/layouts/fact.vue | 6 +++++- theme/layouts/full.vue | 6 +++++- theme/layouts/fullpage.vue | 2 +- theme/layouts/intro.vue | 6 +++++- theme/layouts/quote.vue | 6 +++++- theme/layouts/section.vue | 6 +++++- theme/layouts/statement.vue | 6 +++++- 11 files changed, 51 insertions(+), 11 deletions(-) diff --git a/theme/layouts/center.vue b/theme/layouts/center.vue index 9eab593..916556d 100644 --- a/theme/layouts/center.vue +++ b/theme/layouts/center.vue @@ -9,9 +9,13 @@ const props = defineProps({ type: String, default: undefined, }, + dim: { + type: Boolean, + default: true, + }, }) -const style = computed(() => handleBackground(props.background, true)) +const style = computed(() => handleBackground(props.background, props.dim))