From 76846f1fe771df27a0e81cf2db5cb0c1341b8268 Mon Sep 17 00:00:00 2001 From: zyronon Date: Sun, 1 Oct 2023 03:21:52 +0800 Subject: [PATCH] Perfect selection dictionary pop-up box --- components.d.ts | 2 - package.json | 1 + pnpm-lock.yaml | 14 ++-- src/components/Practice/Practice.vue | 24 +++--- src/components/Toolbar/DictModal.vue | 108 ++++++++++++++++----------- src/stores/base.ts | 32 ++++---- src/stores/setting.ts | 2 +- src/vite-env.d.ts | 18 +++-- 8 files changed, 112 insertions(+), 89 deletions(-) diff --git a/components.d.ts b/components.d.ts index 128d62fb..d546941c 100644 --- a/components.d.ts +++ b/components.d.ts @@ -21,7 +21,6 @@ declare module 'vue' { DictList: typeof import('./src/components/DictList.vue')['default'] DictModal: typeof import('./src/components/Toolbar/DictModal.vue')['default'] EditAbleText: typeof import('./src/components/EditAbleText.vue')['default'] - ElAutoResizer: typeof import('element-plus/es')['ElAutoResizer'] ElInput: typeof import('element-plus/es')['ElInput'] ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElOption: typeof import('element-plus/es')['ElOption'] @@ -32,7 +31,6 @@ declare module 'vue' { ElSelect: typeof import('element-plus/es')['ElSelect'] ElSlider: typeof import('element-plus/es')['ElSlider'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] - ElTableV2: typeof import('element-plus/es')['ElTableV2'] FeedbackModal: typeof import('./src/components/Toolbar/FeedbackModal.vue')['default'] Fireworks: typeof import('./src/components/Fireworks.vue')['default'] Footer: typeof import('./src/components/Practice/Footer.vue')['default'] diff --git a/package.json b/package.json index d19471a9..a0ed5583 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "tesseract.js": "^4.1.1", "uuid": "^9.0.1", "vue": "^3.3.4", + "vue-activity-calendar": "^1.2.2", "vue-virtual-list-v3": "^1.5.1" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 04a767bf..56393cdb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -59,12 +59,12 @@ dependencies: vue: specifier: ^3.3.4 version: 3.3.4 + vue-activity-calendar: + specifier: ^1.2.2 + version: 1.2.2 vue-virtual-list-v3: specifier: ^1.5.1 version: 1.5.1 - vue-virtual-scroll-list: - specifier: ^2.3.5 - version: 2.3.5 devDependencies: '@iconify/vue': @@ -3085,6 +3085,10 @@ packages: fsevents: 2.3.3 dev: true + /vue-activity-calendar@1.2.2: + resolution: {integrity: sha512-HhFfLqmkMB0ylFSjceiJ1b23p/leH6OSXy9iGVkSzndkInG2sh2/F6AG4olFgWRGclxsZXtzIBtE9rm9UwDc+Q==} + dev: false + /vue-demi@0.14.6(vue@3.3.4): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} @@ -3125,10 +3129,6 @@ packages: '@juggle/resize-observer': 3.4.0 dev: false - /vue-virtual-scroll-list@2.3.5: - resolution: {integrity: sha512-YFK6u5yltqtAOfTBcij/KGAS2SoZvzbNIAf9qTULauPObEp53xj22tDuohrrM2vNkgoD5kejXICIUBt2Q4ZDqQ==} - dev: false - /vue@3.3.4: resolution: {integrity: sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==} dependencies: diff --git a/src/components/Practice/Practice.vue b/src/components/Practice/Practice.vue index 0244c588..e0fce07a 100644 --- a/src/components/Practice/Practice.vue +++ b/src/components/Practice/Practice.vue @@ -176,18 +176,18 @@ function test() { - - - - - - - - - - - - + +