Add data import and export function

This commit is contained in:
zyronon
2023-12-08 01:26:02 +08:00
parent 187735c3a8
commit 297c556de2
15 changed files with 1178 additions and 848 deletions

View File

@@ -209,7 +209,7 @@ const showCollectToggleButton = $computed(() => {
<WordList
class="word-list"
:list="store.wrong.words">
<template v-slot="{item,index}">
<template v-slot:suffix="{item,index}">
<BaseIcon
class="del"
@click="delWrongWord(item)"

View File

@@ -2,9 +2,9 @@
import TypingWord from "@/pages/practice/practice-word/TypingWord.vue";
import {$ref} from "vue/macros";
import {chunk, cloneDeep} from "lodash-es";
import {cloneDeep} from "lodash-es";
import {useBaseStore} from "@/stores/base.ts";
import {onMounted, onUnmounted, watch} from "vue";
import {onMounted, onUnmounted} from "vue";
import {useRuntimeStore} from "@/stores/runtime.ts";
import {ShortcutKey, Word} from "@/types.ts";
import {emitter, EventKey} from "@/utils/eventBus.ts";