From 5c25fcb355ec8c1aa48663c39610a6782f95a2e8 Mon Sep 17 00:00:00 2001 From: Estee Date: Tue, 13 Aug 2024 14:12:37 +0800 Subject: [PATCH] refactor(App.vue): rename withBackground to includeBackground style(App.vue): inert to only apply to background color option --- src/App.vue | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/App.vue b/src/App.vue index 68584ce..63daae1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -51,9 +51,9 @@ const styledBorderRadiusFormatted = computed(() => `${styleBorderRadius.value}px const styleBackground = ref(defaultPreset.style.background) const lastBackground = ref(defaultPreset.style.background) -const withBackground = ref(true) -watch(withBackground, () => { - if (!withBackground.value) { +const includeBackground = ref(true) +watch(includeBackground, () => { + if (!includeBackground.value) { lastBackground.value = styleBackground.value styleBackground.value = 'transparent' } else { @@ -306,7 +306,7 @@ onMounted(() => {