5
5
<!-- 左侧 -->
6
6
<div class =" flex items-center" >
7
7
<NuxtLink
8
- class =" clickable-item"
9
- data-tippy-content =" 课程列表"
8
+ class =" clickable-item flex items-center justify-center"
10
9
:href =" `/course-pack/${courseStore.currentCourse?.coursePackId}`"
11
- @mouseenter =" $lazyTippy"
12
10
>
13
- <IconsExpand class =" h-7 w-7" />
11
+ <UTooltip text =" 课程列表" >
12
+ <IconsExpand class =" h-7 w-7" />
13
+ </UTooltip >
14
14
</NuxtLink >
15
15
<div
16
16
class =" clickable-item ml-4"
17
- data-tippy-content =" 课程题目列表"
18
17
@click =" toggleContents"
19
- @mouseenter =" $lazyTippy"
20
18
>
21
- {{ currentCourseInfo }}
19
+ <UTooltip text =" 课程题目列表" >
20
+ {{ currentCourseInfo }}
21
+ </UTooltip >
22
22
</div >
23
23
<MainStudyVideoLink :video =" courseStore.currentCourse?.video" />
24
24
</div >
27
27
<div class =" flex items-center gap-4" >
28
28
<div
29
29
v-if =" isAuthenticated()"
30
- :data-tippy-content =" `暂停游戏 (${shortcutKeys.pause})`"
31
30
@click =" pauseGame"
32
- @mouseenter =" $lazyTippy"
33
31
>
34
- <UIcon
35
- name =" i-ph-pause"
36
- class =" clickable-item h-6 w-6"
37
- />
32
+ <UTooltip
33
+ text =" 暂停游戏"
34
+ :shortcuts =" parseShortcut(shortcutKeys.pause)"
35
+ >
36
+ <UIcon
37
+ name =" i-ph-pause"
38
+ class =" clickable-item h-6 w-6"
39
+ />
40
+ </UTooltip >
38
41
</div >
39
- <div
40
- data-tippy-content =" 重置当前课程进度"
41
- @click =" handleDoAgain"
42
- @mouseenter =" $lazyTippy"
43
- >
44
- <UIcon
45
- name =" i-ph-arrow-counter-clockwise"
46
- class =" clickable-item h-6 w-6"
47
- />
42
+
43
+ <div @click =" handleDoAgain" >
44
+ <UTooltip text =" 重置当前课程进度" >
45
+ <UIcon
46
+ name =" i-ph-arrow-counter-clockwise"
47
+ class =" clickable-item h-6 w-6"
48
+ />
49
+ </UTooltip >
48
50
</div >
49
- <div
50
- data-tippy-content =" 排行榜"
51
- @click =" rankingStore.showRankModal"
52
- @mouseenter =" $lazyTippy"
53
- >
54
- <UIcon
55
- name =" i-ph-ranking"
56
- class =" clickable-item h-6 w-6"
57
- />
51
+ <div @click =" rankingStore.showRankModal" >
52
+ <UTooltip text =" 排行榜" >
53
+ <UIcon
54
+ name =" i-ph-ranking"
55
+ class =" clickable-item h-6 w-6"
56
+ />
57
+ </UTooltip >
58
58
</div >
59
59
</div >
60
60
@@ -79,7 +79,7 @@ import { useGameMode } from "~/composables/main/game";
79
79
import { clearQuestionInput } from " ~/composables/main/question" ;
80
80
import { useGamePause } from " ~/composables/main/useGamePause" ;
81
81
import { useRanking } from " ~/composables/rank/rankingList" ;
82
- import { useShortcutKeyMode } from " ~/composables/user/shortcutKey" ;
82
+ import { parseShortcut , useShortcutKeyMode } from " ~/composables/user/shortcutKey" ;
83
83
import { isAuthenticated } from " ~/services/auth" ;
84
84
import { useCourseStore } from " ~/store/course" ;
85
85
import { useContent } from " ./Contents/useContents" ;
0 commit comments