diff --git a/index.html b/index.html
index 4e00bcec..e9f87ea5 100644
--- a/index.html
+++ b/index.html
@@ -5,6 +5,7 @@
Vite + Vue + TS
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss
index c95da7a5..ea6dd421 100644
--- a/src/assets/css/style.scss
+++ b/src/assets/css/style.scss
@@ -1,6 +1,7 @@
@import "@icon-park/vue-next/styles/index.css";
@import "colors";
@import "anim";
+@import "hover.css";
html, body {
padding: 0;
diff --git a/src/components/PopConfirm.vue b/src/components/PopConfirm.vue
index 73cfb466..71d43aaf 100644
--- a/src/components/PopConfirm.vue
+++ b/src/components/PopConfirm.vue
@@ -22,10 +22,18 @@ export default {
show: false
}
},
+ mounted() {
+ window.addEventListener('click', () => {
+ this.show = false
+ })
+ window.addEventListener('keydown', () => {
+ this.show = false
+ })
+ },
methods: {
showPop(e) {
- // return console.log('sss')
if (this.disabled) return
+ e.stopPropagation()
let rect = e.target.getBoundingClientRect()
this.show = true
nextTick(() => {
diff --git a/src/components/Side.vue b/src/components/Side.vue
index 9388dae4..7795fab9 100644
--- a/src/components/Side.vue
+++ b/src/components/Side.vue
@@ -58,13 +58,12 @@ function changeDict(dict: Dict, i: number) {
:isActive="store.sideIsOpen && tabIndex === 0"
:list="store.dict.chapterList[store.dict.chapterIndex]??[]"
:activeIndex="store.dict.wordIndex"/>
-
-