From 4bbf71b7da8e12c28c6ddaadefc0b1676e6c3ab1 Mon Sep 17 00:00:00 2001 From: shaw Date: Mon, 29 Dec 2025 19:38:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E6=89=8B=E5=BC=95=E5=AF=BC=E4=B8=ADSelect=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=A1=86=E6=97=A0=E6=B3=95=E7=82=B9=E5=87=BB=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 使用 Teleport 将 Select 下拉菜单渲染到 body,避免 driver.js 遮罩层阻挡 - 添加 pointer-events 和 @click.stop 确保下拉选项可点击 - 移除 useOnboardingTour 中无效的 Select 组件处理代码 - 清理未使用的 CSS 样式和 console 调试语句 - 简化 Select 组件在引导期间的交互逻辑 --- frontend/src/components/Guide/steps.ts | 26 +-- frontend/src/components/common/Select.vue | 206 ++++++++++-------- frontend/src/components/layout/AppLayout.vue | 4 - frontend/src/composables/useOnboardingTour.ts | 146 ++++--------- frontend/src/styles/onboarding.css | 46 +--- 5 files changed, 191 insertions(+), 237 deletions(-) diff --git a/frontend/src/components/Guide/steps.ts b/frontend/src/components/Guide/steps.ts index c79db78f..aeb38ab5 100644 --- a/frontend/src/components/Guide/steps.ts +++ b/frontend/src/components/Guide/steps.ts @@ -47,7 +47,7 @@ export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): description: t('onboarding.admin.groupName.description'), side: 'right', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -57,7 +57,7 @@ export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): description: t('onboarding.admin.groupPlatform.description'), side: 'right', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -67,7 +67,7 @@ export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): description: t('onboarding.admin.groupMultiplier.description'), side: 'right', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -77,7 +77,7 @@ export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): description: t('onboarding.admin.groupExclusive.description'), side: 'top', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -119,7 +119,7 @@ export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): description: t('onboarding.admin.accountName.description'), side: 'right', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -129,7 +129,7 @@ export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): description: t('onboarding.admin.accountPlatform.description'), side: 'right', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -139,7 +139,7 @@ export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): description: t('onboarding.admin.accountType.description'), side: 'right', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -149,7 +149,7 @@ export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): description: t('onboarding.admin.accountPriority.description'), side: 'top', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -159,7 +159,7 @@ export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): description: t('onboarding.admin.accountGroups.description'), side: 'top', align: 'center', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -201,7 +201,7 @@ export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): description: t('onboarding.admin.keyName.description'), side: 'right', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -211,7 +211,7 @@ export const getAdminSteps = (t: (key: string) => string, isSimpleMode = false): description: t('onboarding.admin.keyGroup.description'), side: 'right', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -283,7 +283,7 @@ export const getUserSteps = (t: (key: string) => string): DriveStep[] => [ description: t('onboarding.user.keyName.description'), side: 'right', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { @@ -293,7 +293,7 @@ export const getUserSteps = (t: (key: string) => string): DriveStep[] => [ description: t('onboarding.user.keyGroup.description'), side: 'right', align: 'start', - showButtons: ['close'] + showButtons: ['next', 'previous'] } }, { diff --git a/frontend/src/components/common/Select.vue b/frontend/src/components/common/Select.vue index 725aa1f3..2e06b9f9 100644 --- a/frontend/src/components/common/Select.vue +++ b/frontend/src/components/common/Select.vue @@ -29,67 +29,73 @@ - -
- -