From 4dc8cc349af7e94da405ded138be21bfa8343d0c Mon Sep 17 00:00:00 2001 From: expdsn <18111002318@163.com> Date: Fri, 15 Nov 2024 16:26:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=99=BD=E8=BE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/grid/LinkBlock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/grid/LinkBlock.tsx b/src/layout/grid/LinkBlock.tsx index e0e783a..70c1e56 100644 --- a/src/layout/grid/LinkBlock.tsx +++ b/src/layout/grid/LinkBlock.tsx @@ -31,7 +31,7 @@ export default defineComponent({ jump(props.block.link) }} style={{ - backgroundColor: props.block.background || 'white', + backgroundColor: props.block.text ? props.block.background || 'white' : 'transparent', color: props.block.color || 'black', backgroundImage: props.block.icon ? `url('${props.block.icon}')` : '', fontSize: props.dock ? '16px' : props.brief ? '12px' : 'calc(var(--block-size) / 5)'