From 4fa96b4705dda72e0636ab97fc5617f929c49157 Mon Sep 17 00:00:00 2001 From: expdsn <18111002318@163.com> Date: Fri, 15 Nov 2024 14:47:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E7=BD=AE-=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E6=A0=8F-=E8=87=AA=E5=8A=A8=E9=9A=90=E8=97=8F=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/dock/index.tsx | 10 +++------- src/layout/grid/Reset.tsx | 4 +--- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/layout/dock/index.tsx b/src/layout/dock/index.tsx index 6d6fe2d..290592d 100644 --- a/src/layout/dock/index.tsx +++ b/src/layout/dock/index.tsx @@ -33,11 +33,7 @@ export default defineComponent(() => {
{ @@ -58,8 +54,8 @@ export default defineComponent(() => { style={ current.value >= 0 ? { - transform: `translateY(${current.value === i - 1 || current.value === i + 1 ? '-5%' : current.value === i ? '-10%' : '0'}) scale(${current.value === i - 1 || current.value === i + 1 ? 1.1 : current.value === i ? 1.2 : 1})` - } + transform: `translateY(${current.value === i - 1 || current.value === i + 1 ? '-5%' : current.value === i ? '-10%' : '0'}) scale(${current.value === i - 1 || current.value === i + 1 ? 1.1 : current.value === i ? 1.2 : 1})` + } : {} } id={block?.id || ''} diff --git a/src/layout/grid/Reset.tsx b/src/layout/grid/Reset.tsx index f2bd9ff..25c5591 100644 --- a/src/layout/grid/Reset.tsx +++ b/src/layout/grid/Reset.tsx @@ -1,13 +1,11 @@ import SettingItem from '@/settings/SettingItem' -import useSettingsStore from '@/settings/useSettingsStore' -import { Button, Modal, Switch } from 'ant-design-vue' +import { Button } from 'ant-design-vue' import clsx from 'clsx' import { computed, defineComponent, ref } from 'vue' import useLayoutStore from '../useLayoutStore' export default defineComponent({ setup() { - const settings = useSettingsStore() const open = ref(false) const layout = useLayoutStore() const isGame = computed(() => {