From 5fe8687e4d99a7b7906e541e3dd59ea76c684d83 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Mon, 5 Jan 2026 18:10:17 +0800 Subject: [PATCH] =?UTF-8?q?style(=E8=83=8C=E6=99=AF=E5=9B=BE=E7=BB=84?= =?UTF-8?q?=E4=BB=B6):=20=E4=BC=98=E5=8C=96=E5=B9=B6=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BackgroundLayer.vue | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/components/BackgroundLayer.vue b/src/components/BackgroundLayer.vue index f57feb0..da0a268 100644 --- a/src/components/BackgroundLayer.vue +++ b/src/components/BackgroundLayer.vue @@ -26,26 +26,13 @@ const props = defineProps({ // 层级样式 layerStyle: { type: Object, - default: () => ({ - width: '100vw', - minHeight: '100vh', - position: 'absolute', - top: '0', - left: '0', - zIndex: 0, - pointerEvents: 'none', - }), + default: () => ({}), }, // 图片样式 imageStyle: { type: Object, - default: () => ({ - width: '100vw', - objectFit: 'cover', - objectPosition: 'center top', - display: 'block', - }), + default: () => ({}), }, // 图片类名