feat:修改新概念2
This commit is contained in:
@@ -69,6 +69,7 @@ const searchList = computed<any[]>(() => {
|
||||
v-if="searchList.length "
|
||||
@selectDict="selectDict"
|
||||
:list="searchList"
|
||||
quantifier="篇"
|
||||
:select-id="'-1'"/>
|
||||
<Empty v-else text="没有相关书籍"/>
|
||||
</div>
|
||||
@@ -77,6 +78,7 @@ const searchList = computed<any[]>(() => {
|
||||
v-if="enArticle.length "
|
||||
@selectDict="selectDict"
|
||||
:list="enArticle"
|
||||
quantifier="篇"
|
||||
:select-id="'-1'"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -11,6 +11,7 @@ import PracticeArticle from "@/pages/pc/article/practice-article/index.vue";
|
||||
import {ShortcutKey} from "@/types/types.ts";
|
||||
import {useStartKeyboardEventListener} from "@/hooks/event.ts";
|
||||
import useTheme from "@/hooks/theme.ts";
|
||||
import {ElMessage} from "element-plus";
|
||||
|
||||
const store = useBaseStore()
|
||||
const settingStore = useSettingStore()
|
||||
|
||||
@@ -13,6 +13,7 @@ import {getTranslateText} from "@/hooks/article.ts";
|
||||
import BaseButton from "@/components/BaseButton.vue";
|
||||
import QuestionForm from "@/pages/pc/article/components/QuestionForm.vue";
|
||||
import {getDefaultArticle} from "@/types/func.ts";
|
||||
import {ElMessage} from "element-plus";
|
||||
|
||||
interface IProps {
|
||||
article: Article,
|
||||
@@ -80,6 +81,7 @@ watch([() => sectionIndex, () => sentenceIndex, () => wordIndex, () => stringInd
|
||||
})
|
||||
|
||||
watch(() => props.article, () => {
|
||||
isEnd = false
|
||||
sectionIndex = props.sectionIndex
|
||||
sentenceIndex = props.sentenceIndex
|
||||
wordIndex = props.wordIndex
|
||||
|
||||
@@ -324,7 +324,7 @@ const {playSentenceAudio} = usePlaySentenceAudio()
|
||||
@save="saveArticle"
|
||||
/>
|
||||
</div>
|
||||
<div class="footer " :class="!settingStore.showToolbar && 'hide'">
|
||||
<div class="footer" :class="!settingStore.showToolbar && 'hide'">
|
||||
<div class="bottom">
|
||||
<ElProgress
|
||||
class="flex-1"
|
||||
|
||||
@@ -5,6 +5,7 @@ import Book from "@/pages/pc/components/Book.vue";
|
||||
defineProps<{
|
||||
list?: Partial<Dict>[],
|
||||
selectId?: string
|
||||
quantifier?: string
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
@@ -21,7 +22,7 @@ const emit = defineEmits<{
|
||||
<Book v-for="(dict,index) in list"
|
||||
:is-add="false"
|
||||
@click="emit('selectDict',{dict,index})"
|
||||
quantifier="个词"
|
||||
:quantifier="quantifier"
|
||||
:item="dict"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -23,10 +23,10 @@ const {toggleTheme} = useTheme()
|
||||
<div class="aside anim fixed" :class="{'expand':settingStore.sideExpand}">
|
||||
<div class="top">
|
||||
<Logo v-if="settingStore.sideExpand"/>
|
||||
<div class="row" @click="router.push('/home')">
|
||||
<Icon icon="iconoir:home"/>
|
||||
<span v-if="settingStore.sideExpand">主页</span>
|
||||
</div>
|
||||
<!-- <div class="row" @click="router.push('/home')">-->
|
||||
<!-- <Icon icon="iconoir:home"/>-->
|
||||
<!-- <span v-if="settingStore.sideExpand">主页</span>-->
|
||||
<!-- </div>-->
|
||||
<div class="row" @click="router.push('/word')">
|
||||
<Icon icon="material-symbols-light:dictionary-outline-sharp"/>
|
||||
<!-- <Icon icon="streamline:dictionary-language-book"/>-->
|
||||
|
||||
@@ -96,6 +96,7 @@ const searchList = computed<any[]>(() => {
|
||||
v-if="searchList.length "
|
||||
@selectDict="selectDict"
|
||||
:list="searchList"
|
||||
quantifier="个词"
|
||||
:select-id="'-1'"/>
|
||||
<Empty v-else text="没有相关词典"/>
|
||||
</div>
|
||||
@@ -104,6 +105,7 @@ const searchList = computed<any[]>(() => {
|
||||
v-for="item in groupedByCategoryAndTag"
|
||||
:select-id="store.currentStudyWordDict.id"
|
||||
@selectDict="selectDict"
|
||||
quantifier="个词"
|
||||
:groupByTag="item[1]"
|
||||
:category="item[0]"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user