feat: 优化移动端学习与证书体验
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
dd233e102b
commit
680e8b97d7
55 files changed
+513
-230
No files matched your search
@@ -16,13 +16,10 @@
|
||||
:style="alignStyle"
|
||||
>
|
||||
<GuideDragon
|
||||
:show-skip="currentStep < totalSteps"
|
||||
:current-step="currentStep"
|
||||
:total-steps="totalSteps"
|
||||
:position-offset-y="currentPositionOffsetY"
|
||||
@next="handleNext"
|
||||
@skip="handleSkip"
|
||||
@complete="handleComplete"
|
||||
>
|
||||
<template #default>
|
||||
<!-- 支持插槽形式的步骤内容 -->
|
||||
@@ -101,7 +98,6 @@ interface Props {
|
||||
|
||||
interface Emits {
|
||||
(e: 'complete'): void
|
||||
(e: 'skip'): void
|
||||
(e: 'close'): void
|
||||
(e: 'step-change', step: GuideStep | null, index: number): void
|
||||
}
|
||||
@@ -233,11 +229,6 @@ const handleNext = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const handleSkip = () => {
|
||||
emit('skip')
|
||||
handleComplete()
|
||||
}
|
||||
|
||||
const handleComplete = () => {
|
||||
internalShow.value = false
|
||||
emit('complete')
|
||||
@@ -288,10 +279,6 @@ const handleKeydown = (event: KeyboardEvent) => {
|
||||
emit('step-change', currentStepData.value, currentStepIndex.value)
|
||||
}
|
||||
break
|
||||
case 'Escape':
|
||||
event.preventDefault()
|
||||
handleSkip()
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user